Re: [PATCH/WIP 0/9] for-each-ref format improvements
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 20, 2013, 04:29 UTC
- Message-ID
- <7v8v3axoi7.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1368959235-27777-1-git-send-email-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy <pclouds@gmail.com> writes:
> Originally I wanted to introduce --pretty with git-log's pretty syntax > to for-each-ref, deprecating --format.
If you are going to unify the two mechanisms, I think the "--format" option of "for-each-ref" needs to become a superset of what the "--pretty" option of "log/rev-list" can express and shared between the two. The former has to handle anything that can be at the tip of a ref, including commits, so it needs to be able to do anything the latter can.