Re: [PATCH] ls-tree: add --abbrev[=<n>] option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Output from ls-tree and ls-files -s are primarily for script
consumption.  diff-raw output which already has abbrev is also
primarily for scripts, but we have an excuse there that human
eyes can spot differences easier in abbreviated form and two
values on the same row being different is the only information
we are conveying in "git whatchanged" default output, and not
abbreviating the object names makes pathnames pushed to far
right of the display which will be chopped by "less -S".

So I am not quite sure if I should take this, and a subsequent
one you would probably send for ls-files ;-).

Care to point out a use case I might have missed that this is
useful?  I've never done ls-tree to be read by _me_ (not by
script) unless I am debugging ls-tree itself.

Although I doubt this adds much practical value, this might make
things consistent, which by itself might be a reason to do this,
though.

-
: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]