summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9bd94ca)
raw | patch | inline | side by side (parent: 9bd94ca)
author | Junio C Hamano <junkio@cox.net> | |
Sun, 17 Apr 2005 04:29:45 +0000 (21:29 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Sun, 17 Apr 2005 04:29:45 +0000 (21:29 -0700) |
The show-diff command uses a variable "new" but it is always
used to point at the original data recorded in the dircache
before the user started editing in the working file. Rename it
to "old" to avoid confusion.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
used to point at the original data recorded in the dircache
before the user started editing in the working file. Rename it
to "old" to avoid confusion.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
show-diff.c | patch | blob | history |
diff --git a/show-diff.c b/show-diff.c
index f2d352f4e6e36e1a69710ecdd4c2f5e615065781..a00ee72e11edf366a803997e58b822d3b8dab469 100644 (file)
--- a/show-diff.c
+++ b/show-diff.c
int changed;
unsigned long size;
char type[20];
- void *new;
+ void *old;
if (1 <argc &&
! matches_pathspec(ce, argv+1, argc-1))
if (silent)
continue;
- new = read_sha1_file(ce->sha1, type, &size);
- show_differences(ce->name, new, size);
- free(new);
+ old = read_sha1_file(ce->sha1, type, &size);
+ show_differences(ce->name, old, size);
+ free(old);
}
return 0;
}