Re: [PATCH v3] pretty: add %D format specifier

2014-09-16 Thread Junio C Hamano
Junio C Hamano writes: >> +test_expect_success 'clean log decoration' ' >> +git log --no-walk --tags --pretty="%H %D" --decorate=full >actual && >> +cat > +$head1 tag: refs/tags/tag2 >> +$head2 tag: refs/tags/message-one >> +$old_head1 tag: refs/tags/message-two >> +EOF > ..

Re: [PATCH v3] pretty: add %D format specifier

2014-09-16 Thread Junio C Hamano
Harry Jeffery writes: > Add a new format specifier, '%D' that is identical in behaviour to '%d', > except that it does not include the ' (' prefix or ')' suffix provided > by '%d'. > > Signed-off-by: Harry Jeffery Thanks. > @@ -196,20 +198,20 @@ void format_decorations(struct strbuf *sb, >

[PATCH v3] pretty: add %D format specifier

2014-09-16 Thread Harry Jeffery
Add a new format specifier, '%D' that is identical in behaviour to '%d', except that it does not include the ' (' prefix or ')' suffix provided by '%d'. Signed-off-by: Harry Jeffery --- Documentation/pretty-formats.txt | 6 -- log-tree.c | 24 +---