mirror of
https://github.com/git/git.git
synced 2026-01-25 10:03:24 +00:00
Merge pull request #1004 from whoisj/nolock-env
Carry non-locking status value in the environment.
This commit is contained in:
@@ -1391,6 +1391,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;
|
||||
|
||||
Reference in New Issue
Block a user