[PATCH 08/15] for-each-ref: get --pretty using format_commit_message()

2013-07-09 Thread Ramkumar Ramachandra
From: Nguyễn Thái Ngọc Duy --format is very limited in its capabilities. Introduce --pretty, which extends the existing --format with pretty-formats. In --pretty: - Existing --format %(atom) is available. They also accept some pretty magic. For example, you can use "% (atom)" to only disp

Re: [PATCH 08/15] for-each-ref: get --pretty using format_commit_message

2013-06-05 Thread Duy Nguyen
On Thu, Jun 6, 2013 at 12:09 AM, Junio C Hamano wrote: > Duy Nguyen writes: > >> On Wed, Jun 5, 2013 at 4:12 AM, Eric Sunshine >> wrote: +Caveats: + +1. Many of the placeholders in "PRETTY FORMATS" are designed to work + specifically on commit objects: when non-commit obje

Re: [PATCH 08/15] for-each-ref: get --pretty using format_commit_message

2013-06-05 Thread Junio C Hamano
Duy Nguyen writes: > On Wed, Jun 5, 2013 at 4:12 AM, Eric Sunshine wrote: >>> +Caveats: >>> + >>> +1. Many of the placeholders in "PRETTY FORMATS" are designed to work >>> + specifically on commit objects: when non-commit objects are >>> + supplied, those placeholders won't work. >> >> Shoul

Re: [PATCH 08/15] for-each-ref: get --pretty using format_commit_message

2013-06-05 Thread Duy Nguyen
On Wed, Jun 5, 2013 at 4:12 AM, Eric Sunshine wrote: >> +Caveats: >> + >> +1. Many of the placeholders in "PRETTY FORMATS" are designed to work >> + specifically on commit objects: when non-commit objects are >> + supplied, those placeholders won't work. > > Should "won't work" be expanded upo

Re: [PATCH 08/15] for-each-ref: get --pretty using format_commit_message

2013-06-04 Thread Eric Sunshine
On Tue, Jun 4, 2013 at 8:35 AM, Ramkumar Ramachandra wrote: > From: Nguyễn Thái Ngọc Duy > > [rr: documentation] > > Signed-off-by: Ramkumar Ramachandra > --- > Documentation/git-for-each-ref.txt | 22 - > builtin/for-each-ref.c | 67 > ++

[PATCH 08/15] for-each-ref: get --pretty using format_commit_message

2013-06-04 Thread Ramkumar Ramachandra
From: Nguyễn Thái Ngọc Duy --format is very limited in its capabilities. Introduce --pretty, which extends the existing --format with pretty-formats. In --pretty: - Existing --format %(atom) is available. They also accept some pretty magic. For example, you can use "% (atom)" to only disp