mirror of
https://github.com/git/git
synced 2024-08-25 02:35:46 +00:00
Merge branch 'ak/git-done-help-cleanup'
Code simplification. * ak/git-done-help-cleanup: git: make was_alias and done_help non-static
This commit is contained in:
commit
860b05b77b
5
git.c
5
git.c
|
@ -618,6 +618,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;
|
||||
|
||||
|
@ -680,9 +681,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) {
|
||||
|
|
Loading…
Reference in a new issue