1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-16 23:29:25 +00:00

Merge pull request #95 from haiwen/list_file_history

Keep at least 2 revisions (if exists) when listing file history.
This commit is contained in:
cuihaikuo
2017-12-09 10:05:04 +08:00
committed by GitHub
11 changed files with 92 additions and 90 deletions

View File

@@ -4289,10 +4289,9 @@ seafile_list_dir (const char *repo_id,
GList *
seafile_list_file_revisions (const char *repo_id,
const char *commit_id,
const char *path,
int max_revision,
int limit,
int show_days,
GError **error)
{
if (!repo_id || !path) {
@@ -4310,9 +4309,8 @@ seafile_list_file_revisions (const char *repo_id,
GList *commit_list;
commit_list = seaf_repo_manager_list_file_revisions (seaf->repo_mgr,
repo_id, NULL, rpath,
max_revision,
limit, show_days, FALSE, error);
repo_id, commit_id, rpath,
limit, FALSE, FALSE, error);
g_free (rpath);
return commit_list;