diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-03-23 11:23:35 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-03-23 11:23:35 -0700 |
commit | a4f287e5aa5cffec32bdc94042be58d160fd851e (patch) | |
tree | 634c3d26e5e11f2ec4816c81ae1d6d9276a6464d /git.c | |
parent | 7d6f6e373007553d747b4f0f5083d66fdd0c17c5 (diff) | |
parent | 8fa7975b076ae039f63286601f48e64115e2aba7 (diff) | |
download | git-a4f287e5aa5cffec32bdc94042be58d160fd851e.tar.gz |
Merge branch 'ak/git-done-help-cleanup' into maint
Code simplification.
* ak/git-done-help-cleanup:
git: make was_alias and done_help non-static
Diffstat (limited to 'git.c')
-rw-r--r-- | git.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -620,6 +620,7 @@ int main(int argc, char **av) { const char **argv = (const char **) av; const char *cmd; + int done_help = 0; startup_info = &git_startup_info; @@ -682,9 +683,7 @@ int main(int argc, char **av) setup_path(); while (1) { - static int done_help = 0; - static int was_alias = 0; - was_alias = run_argv(&argc, &argv); + int was_alias = run_argv(&argc, &argv); if (errno != ENOENT) break; if (was_alias) { |