summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e246637)
raw | patch | inline | side by side (parent: e246637)
author | Junio C Hamano <junkio@cox.net> | |
Mon, 28 Nov 2005 10:30:04 +0000 (02:30 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 29 Nov 2005 07:03:12 +0000 (23:03 -0800) |
The rewrite to match ls-files/diff-tree behaviour accidentally
lost the name quoting. I am not proud about this code, but this
would get the test going.
Signed-off-by: Junio C Hamano <junkio@cox.net>
lost the name quoting. I am not proud about this code, but this
would get the test going.
Signed-off-by: Junio C Hamano <junkio@cox.net>
ls-tree.c | patch | blob | history |
diff --git a/ls-tree.c b/ls-tree.c
index 4df58301261b67f511c0855ab7e06c91e158fc43..d4b62198a0774409fff4acdbc8b35a7e052f498d 100644 (file)
--- a/ls-tree.c
+++ b/ls-tree.c
type = "tree";
}
- printf("%06o %s %s\t%.*s%s%c", mode, type, sha1_to_hex(sha1), baselen, base, pathname, line_termination);
+ printf("%06o %s %s\t", mode, type, sha1_to_hex(sha1));
+ write_name_quoted(base, baselen, pathname, line_termination, stdout);
+ putchar(line_termination);
return 0;
}