2 Commits

Author SHA1 Message Date
IronicallySerious
a21209bf62 Update linux binaries for #6 fix 2019-10-09 18:03:09 +05:30
Twarit
cd9239220a Enforce full file name status listings. Fix #6
libgit2 wasn't showing the full file names and showed just the
directory name in case there were many files being added at once
in a new directory.

Added a libgit2 flag that enforces full names on files
appearing in git status queries.
2019-10-09 17:07:01 +05:30
3 changed files with 5 additions and 5 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -175,7 +175,7 @@ Dictionary GitAPI::_get_modified_files_data() {
git_status_options opts = GIT_STATUS_OPTIONS_INIT;
opts.show = GIT_STATUS_SHOW_INDEX_AND_WORKDIR;
opts.flags = GIT_STATUS_OPT_EXCLUDE_SUBMODULES;
opts.flags |= GIT_STATUS_OPT_INCLUDE_UNTRACKED | GIT_STATUS_OPT_RENAMES_HEAD_TO_INDEX | GIT_STATUS_OPT_SORT_CASE_SENSITIVELY;
opts.flags |= GIT_STATUS_OPT_INCLUDE_UNTRACKED | GIT_STATUS_OPT_RENAMES_HEAD_TO_INDEX | GIT_STATUS_OPT_SORT_CASE_SENSITIVELY | GIT_STATUS_OPT_RECURSE_UNTRACKED_DIRS;
git_status_list *statuses = NULL;
GIT2_CALL(git_status_list_new(&statuses, repo, &opts), "Could not get status information from repository", NULL);