ls-files: fix typo in variable name

Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Brandon Williams committed Mar 17, 2017 at 10:22 UTC e4770f67d16c1970fa175bddfd4ca40258e57f22
1 file changed +8 -8
builtin/ls-files.c
+8 -8
@@ -30,7 +30,7 @@ static int line_terminator = '\n';
30 static int debug_mode;
31 static int show_eol;
32 static int recurse_submodules;
33 -static struct argv_array submodules_options = ARGV_ARRAY_INIT;
33 +static struct argv_array submodule_options = ARGV_ARRAY_INIT;
34
35 static const char *prefix;
36 static const char *super_prefix;
@@ -175,17 +175,17 @@ static void show_killed_files(struct dir_struct *dir)
175 static void compile_submodule_options(const struct dir_struct *dir, int show_tag)
176 {
177 if (line_terminator == '\0')
178 - argv_array_push(&submodules_options, "-z");
178 + argv_array_push(&submodule_options, "-z");
179 if (show_tag)
180 - argv_array_push(&submodules_options, "-t");
180 + argv_array_push(&submodule_options, "-t");
181 if (show_valid_bit)
182 - argv_array_push(&submodules_options, "-v");
182 + argv_array_push(&submodule_options, "-v");
183 if (show_cached)
184 - argv_array_push(&submodules_options, "--cached");
184 + argv_array_push(&submodule_options, "--cached");
185 if (show_eol)
186 - argv_array_push(&submodules_options, "--eol");
186 + argv_array_push(&submodule_options, "--eol");
187 if (debug_mode)
188 - argv_array_push(&submodules_options, "--debug");
188 + argv_array_push(&submodule_options, "--debug");
189 }
190
191 /**
@@ -204,7 +204,7 @@ static void show_gitlink(const struct cache_entry *ce)
204 argv_array_push(&cp.args, "--recurse-submodules");
205
206 /* add supported options */
207 - argv_array_pushv(&cp.args, submodules_options.argv);
207 + argv_array_pushv(&cp.args, submodule_options.argv);
208
209 /*
210 * Pass in the original pathspec args. The submodule will be