Skip to content

Commit a4f287e

Browse files
committed
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
2 parents 7d6f6e3 + 8fa7975 commit a4f287e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

git.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,7 @@ int main(int argc, char **av)
620620
{
621621
const char **argv = (const char **) av;
622622
const char *cmd;
623+
int done_help = 0;
623624

624625
startup_info = &git_startup_info;
625626

@@ -682,9 +683,7 @@ int main(int argc, char **av)
682683
setup_path();
683684

684685
while (1) {
685-
static int done_help = 0;
686-
static int was_alias = 0;
687-
was_alias = run_argv(&argc, &argv);
686+
int was_alias = run_argv(&argc, &argv);
688687
if (errno != ENOENT)
689688
break;
690689
if (was_alias) {

0 commit comments

Comments
 (0)