Git fork

stash: refactor private config globals

A subsequent commit will access a new config variable in the stash
subcommand implementations, which requires the variables to be declared
before the relevant functions. Prep with a pure refactoring change to
consolidate config-related globals with the rest of the globals.

Best-viewed-with: --color-moved
Signed-off-by: D. Ben Knoble <ben.knoble+github@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

authored by

D. Ben Knoble and committed by
Junio C Hamano
88b5b8d8 4b2de837

+4 -4
+4 -4
builtin/stash.c
··· 127 127 static const char ref_stash[] = "refs/stash"; 128 128 static struct strbuf stash_index_path = STRBUF_INIT; 129 129 130 + static int show_stat = 1; 131 + static int show_patch; 132 + static int show_include_untracked; 133 + 130 134 /* 131 135 * w_commit is set to the commit containing the working tree 132 136 * b_commit is set to the base commit ··· 844 848 strvec_push(&cp.args, "--"); 845 849 return run_command(&cp); 846 850 } 847 - 848 - static int show_stat = 1; 849 - static int show_patch; 850 - static int show_include_untracked; 851 851 852 852 static int git_stash_config(const char *var, const char *value, 853 853 const struct config_context *ctx, void *cb)