Skip to content

Commit

Permalink
Merge pull request #1004 from whoisj/nolock-env
Browse files Browse the repository at this point in the history
Carry non-locking status value in the environment.
  • Loading branch information
Git for Windows Build Agent committed Jan 18, 2017
2 parents 6791c63 + 4bd2918 commit 614d955
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions builtin/commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1373,6 +1373,11 @@ int cmd_status(int argc, const char **argv, const char *prefix)
finalize_colopts(&s.colopts, -1);
finalize_deferred_config(&s);

if (no_lock_index)
setenv("GIT_LOCK_INDEX", "false", 1);
else if (!git_parse_maybe_bool(getenv("GIT_LOCK_INDEX")))
no_lock_index = 1;

handle_untracked_files_arg(&s);
if (show_ignored_in_status)
s.show_ignored_files = 1;
Expand Down

0 comments on commit 614d955

Please sign in to comment.