reorder code
This commit is contained in:
parent
d1752c3ac7
commit
6e5d8a1e6a
1 changed files with 1 additions and 1 deletions
2
XD.c
2
XD.c
|
|
@ -189,8 +189,8 @@ has_staged(git_repository *repo)
|
||||||
git_status_options opts = GIT_STATUS_OPTIONS_INIT;
|
git_status_options opts = GIT_STATUS_OPTIONS_INIT;
|
||||||
int i, c, r = 0;
|
int i, c, r = 0;
|
||||||
|
|
||||||
opts.flags = GIT_STATUS_INDEX_NEW;
|
|
||||||
opts.show = GIT_STATUS_SHOW_INDEX_ONLY;
|
opts.show = GIT_STATUS_SHOW_INDEX_ONLY;
|
||||||
|
opts.flags = GIT_STATUS_INDEX_NEW;
|
||||||
|
|
||||||
if (git_status_list_new(&list, repo, &opts) < 0) {
|
if (git_status_list_new(&list, repo, &opts) < 0) {
|
||||||
L("Error checking for staged changes: %s", git_error_last()->message);
|
L("Error checking for staged changes: %s", git_error_last()->message);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue