projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
git-config-set: add more options
[git.git]
/
ls-tree.c
diff --git
a/ls-tree.c
b/ls-tree.c
index
dd642e0
..
d9f15e3
100644
(file)
--- a/
ls-tree.c
+++ b/
ls-tree.c
@@
-6,6
+6,7
@@
#include "cache.h"
#include "blob.h"
#include "tree.h"
#include "cache.h"
#include "blob.h"
#include "tree.h"
+#include "quote.h"
static int line_termination = '\n';
#define LS_RECURSIVE 1
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) {
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);
}
putchar(line_termination);
}