summaryrefslogtreecommitdiff
path: root/ls-files.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-05-26 21:38:19 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-26 22:18:55 (GMT)
commit2eab945e865317cb7d390aec214303f1d931b53a (patch)
treedbec0de73e52d5b6d0740dd2e226d3ce8e2e51fd /ls-files.c
parent6d3a5077ddb78a73fe26b154c459bc4731bca0dd (diff)
downloadgit-2eab945e865317cb7d390aec214303f1d931b53a.zip
git-2eab945e865317cb7d390aec214303f1d931b53a.tar.gz
git-2eab945e865317cb7d390aec214303f1d931b53a.tar.bz2
[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-files.c')
-rw-r--r--ls-files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ls-files.c b/ls-files.c
index 03b2182..c6c32d9 100644
--- a/ls-files.c
+++ b/ls-files.c
@@ -262,7 +262,7 @@ static void show_files(void)
tag_cached,
ce->name, line_terminator);
else
- printf("%s%06o %s %d %s%c",
+ printf("%s%06o %s %d\t%s%c",
ce_stage(ce) ? tag_unmerged :
tag_cached,
ntohl(ce->ce_mode),