aboutsummaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorPierre Habouzit <madcoder@debian.org>2006-08-23 12:39:13 +0200
committerJunio C Hamano <junkio@cox.net>2006-08-23 18:47:39 -0700
commitd828f6ddf8bc33f848688655b94c82791edfe0d7 (patch)
tree83f546e7c6d66e735d4ca07272efc0759aae6243 /git.c
parentb5bf7cd6b7dbcbef9181e21bfae21612c75738c4 (diff)
downloadgit-d828f6ddf8bc33f848688655b94c82791edfe0d7.tar.gz
git-d828f6ddf8bc33f848688655b94c82791edfe0d7.tar.xz
remove ugly shadowing of loop indexes in subloops.
builtin-mv.c and git.c has a nested loop that is governed by a variable 'i', but they shadow it with another instance of 'i'. Signed-off-by: Pierre Habouzit <madcoder@debian.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git.c')
-rw-r--r--git.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/git.c b/git.c
index 930998bbe..a01d195c2 100644
--- a/git.c
+++ b/git.c
@@ -292,11 +292,11 @@ static void handle_internal_command(int argc, const char **argv, char **envp)
if (p->option & USE_PAGER)
setup_pager();
if (getenv("GIT_TRACE")) {
- int i;
+ int j;
fprintf(stderr, "trace: built-in: git");
- for (i = 0; i < argc; ++i) {
+ for (j = 0; j < argc; ++j) {
fputc(' ', stderr);
- sq_quote_print(stderr, argv[i]);
+ sq_quote_print(stderr, argv[j]);
}
putc('\n', stderr);
fflush(stderr);