update-index: move 'uc' var declaration

Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Christian Couder committed Jan 24, 2016 at 16:28 UTC e7c0c5354be01bedb4c6f0ad3b095ff0bfefa272
1 file changed +1 -3
builtin/update-index.c
+1 -3
@@ -1116,8 +1116,6 @@ int cmd_update_index(int argc, const char **argv, const char *prefix)
1116 the_index.cache_changed |= SOMETHING_CHANGED;
1117 }
1118 if (untracked_cache > UC_DISABLE) {
1119 - struct untracked_cache *uc;
1120 -
1119 if (untracked_cache < UC_FORCE) {
1120 setup_work_tree();
1121 if (!test_if_untracked_cache_is_supported())
@@ -1126,7 +1124,7 @@ int cmd_update_index(int argc, const char **argv, const char *prefix)
1124 return 0;
1125 }
1126 if (!the_index.untracked) {
1129 - uc = xcalloc(1, sizeof(*uc));
1127 + struct untracked_cache *uc = xcalloc(1, sizeof(*uc));
1128 strbuf_init(&uc->ident, 100);
1129 uc->exclude_per_dir = ".gitignore";
1130 /* should be the same flags used by git-status */