Skip to content

Commit

Permalink
Merge branch 'ak/git-done-help-cleanup' into maint
Browse files Browse the repository at this point in the history
Code simplification.

* ak/git-done-help-cleanup:
  git: make was_alias and done_help non-static
  • Loading branch information
Junio C Hamano committed Mar 23, 2015
2 parents 7d6f6e3 + 8fa7975 commit a4f287e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions git.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit a4f287e

Please sign in to comment.