зеркало из https://github.com/microsoft/git.git
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:
Коммит
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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче