On Thu, Sep 29, 2016 at 10:19 AM, Junio C Hamano <gitster@xxxxxxxxx> wrote: > Jeff King <peff@xxxxxxxx> writes: >> - "cat-file --batch-check" can show you the sha1 and type, but it >> won't abbreviate sha1s, and it won't show you commit/tag information >> >> - "log --stdin --no-walk" will format the commit however you like, but >> skips the trees and blobs entirely, and the tag can only be seen via >> "%d" >> >> - "for-each-ref" has flexible formatting, too, but wants to format >> refs, not objects (and doesn't read from stdin). > > - "name-rev" is used to give "describe --contains", and can read > from its standard input, but has no format customization. > Another downside of it is that it only wants to see > committishes. > Some tool which reads standard input and can be formatted would be nice. Extending name-rev with the same format options as for-each-ref would be nice. Thanks, Jake