Skip to content

Commit

Permalink
Including submodules into status
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Schleemilch committed Apr 25, 2019
1 parent 6908990 commit 21b3e06
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/git_repo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,10 @@ void GitRepo::set_status_infos() {
git_status_list *status;
git_status_options statusopt;
git_status_init_options(&statusopt, GIT_STATUS_OPTIONS_VERSION);
statusopt.flags = GIT_STATUS_OPT_EXCLUDE_SUBMODULES;
statusopt.flags |= GIT_STATUS_OPT_INCLUDE_UNTRACKED;

statusopt.flags = GIT_STATUS_OPT_INCLUDE_UNTRACKED;
statusopt.flags |= GIT_STATUS_OPT_NO_REFRESH;

//GIT_STATUS_SHOW_INDEX_ONLY
//GIT_STATUS_SHOW_WORKDIR_ONLY
statusopt.show = GIT_STATUS_SHOW_INDEX_AND_WORKDIR;

git_status_list_new(&status, repo, &statusopt);
Expand Down

0 comments on commit 21b3e06

Please sign in to comment.