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
> ..
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,
>
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 +---
3 matches
Mail list logo