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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user