summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f67d2e8)
raw | patch | inline | side by side (parent: f67d2e8)
author | Junio C Hamano <gitster@pobox.com> | |
Wed, 17 Aug 2011 21:30:33 +0000 (14:30 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 22 Aug 2011 18:34:55 +0000 (11:34 -0700) |
The callback to traverse_commit_list() are to take linked name_path and
a string for the last path component.
If the callee used its parameters, it would have seen duplicated leading
paths. In this particular case, the callee does not use this argument but
that is not a reason to leave the call broken.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
a string for the last path component.
If the callee used its parameters, it would have seen duplicated leading
paths. In this particular case, the callee does not use this argument but
that is not a reason to leave the call broken.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rev-list.c | patch | blob | history |
diff --git a/builtin/rev-list.c b/builtin/rev-list.c
index 56727e8c1d9d87fe3e3bf3919ba86d27d0735758..d789279309ed544dd31520fffea55494f4cc9eff 100644 (file)
--- a/builtin/rev-list.c
+++ b/builtin/rev-list.c
*/
const char *ep = strchr(name, '\n');
- finish_object(obj, path, name);
+ finish_object(obj, path, component);
if (ep) {
printf("%s %.*s\n", sha1_to_hex(obj->sha1),
(int) (ep - name),