Re: [PATCH 10/10] get_short_sha1: list ambiguous objects on error
- From
Jacob Keller <jacob.keller@gmail.com>
- Date
- Sep 30, 2016, 05:51 UTC
- Message-ID
- <CA+P7+xr4ZNCCJkS0=yR-FNu+MrL60YX-+Wsz9L_5LCNhnY_d=A@mail.gmail.com>
- In-Reply-To
- <xmqqbmz6hbdk.fsf@gitster.mtv.corp.google.com>
On Thu, Sep 29, 2016 at 10:19 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 16 quoted lines
> Jeff King <peff@peff.net> 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