Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
builtin/clean.c: reduce scope of variable
author
Elia Pinto
<gitter.spiros@gmail.com>
Wed, 29 Jan 2014 13:36:15 +0000
(
05:36
-0800)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 31 Jan 2014 18:44:05 +0000
(10:44 -0800)
Signed-off-by: Elia Pinto <gitter.spiros@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clean.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
ac39b27
)
diff --git
a/builtin/clean.c
b/builtin/clean.c
index 615cd57caf1d4cbeafc73e7037bae81a6915df59..22ad058c79aa504f79073ce8dc1540b402f61afe 100644
(file)
--- a/
builtin/clean.c
+++ b/
builtin/clean.c
@@
-154,7
+154,7
@@
static int remove_dirs(struct strbuf *path, const char *prefix, int force_flag,
DIR *dir;
struct strbuf quoted = STRBUF_INIT;
struct dirent *e;
- int res = 0, ret = 0, gone = 1, original_len = path->len, len
, i
;
+ int res = 0, ret = 0, gone = 1, original_len = path->len, len;
unsigned char submodule_head[20];
struct string_list dels = STRING_LIST_INIT_DUP;
@@
-242,6
+242,7
@@
static int remove_dirs(struct strbuf *path, const char *prefix, int force_flag,
}
if (!*dir_gone && !quiet) {
+ int i;
for (i = 0; i < dels.nr; i++)
printf(dry_run ? _(msg_would_remove) : _(msg_remove), dels.items[i].string);
}