[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>
This commit is contained in:
committed by
Linus Torvalds
parent
6d3a5077dd
commit
2eab945e86
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user