diff options
author | Junio C Hamano <junkio@cox.net> | 2005-10-31 02:06:39 (GMT) |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-10-31 02:06:39 (GMT) |
commit | e634aec752642dcf86c3fc82025e43381d6768c2 (patch) | |
tree | a589b6756894d18c841ac61499e5d2c9beda36fd /ls-tree.c | |
parent | a1c7a69047e88244ed321b5aa2a8bcbba5a869c2 (diff) | |
parent | 80e0c0ab91e1cf6a6315d0431bf6873ebbf8bef0 (diff) | |
download | git-e634aec752642dcf86c3fc82025e43381d6768c2.zip git-e634aec752642dcf86c3fc82025e43381d6768c2.tar.gz git-e634aec752642dcf86c3fc82025e43381d6768c2.tar.bz2 |
GIT 0.99.9av0.99.9a
... to contain the RPM workaround.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'ls-tree.c')
-rw-r--r-- | ls-tree.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -6,6 +6,7 @@ #include "cache.h" #include "blob.h" #include "tree.h" +#include "quote.h" static int line_termination = '\n'; #define LS_RECURSIVE 1 @@ -156,8 +157,9 @@ static int show_entry(struct tree_entry_list *e, int level, char *pathbuf) int err = 0; if (e != &root_entry) { - printf("%06o %s %s %s%s", e->mode, entry_type(e), - entry_hex(e), pathbuf, e->name); + printf("%06o %s %s ", + e->mode, entry_type(e), entry_hex(e)); + write_name_quoted(pathbuf, e->name, line_termination, stdout); putchar(line_termination); } |