aboutsummaryrefslogtreecommitdiffstats
path: root/ls-tree.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-05-26 14:38:19 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-26 15:18:55 -0700
commit2eab945e865317cb7d390aec214303f1d931b53a (patch)
treedbec0de73e52d5b6d0740dd2e226d3ce8e2e51fd /ls-tree.c
parent6d3a5077ddb78a73fe26b154c459bc4731bca0dd (diff)
downloadgit-2eab945e865317cb7d390aec214303f1d931b53a.tar.gz
[PATCH] Make ls-* output consistent with diff-* output format.
Use SP as the column separator except the ones before path which uses TAB, to make the output format consistent across ls-* and diff-* commands. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'ls-tree.c')
-rw-r--r--ls-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ls-tree.c b/ls-tree.c
index 896f4fd624..26cea3ff02 100644
--- a/ls-tree.c
+++ b/ls-tree.c
@@ -127,7 +127,7 @@ static void list_recursive(void *buffer,
* print out the info
*/
if (!matches || (matched != NULL && mtype == 0)) {
- printf("%06o\t%s\t%s\t", mode,
+ printf("%06o %s %s\t", mode,
S_ISDIR(mode) ? "tree" : "blob",
sha1_to_hex(sha1));
print_path_prefix(&this_prefix);