From 9271095cc5571e306d709ebf8eb7f0a388254d9d Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Thu, 18 Sep 2014 21:53:53 +0100 Subject: pretty: add %D format specifier 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 Signed-off-by: Junio C Hamano --- t/t4205-log-pretty-formats.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 't/t4205-log-pretty-formats.sh') diff --git a/t/t4205-log-pretty-formats.sh b/t/t4205-log-pretty-formats.sh index 349c531989..e6015e2684 100755 --- a/t/t4205-log-pretty-formats.sh +++ b/t/t4205-log-pretty-formats.sh @@ -450,4 +450,15 @@ EOF test_cmp expected actual1 ' +test_expect_success 'clean log decoration' ' + git log --no-walk --tags --pretty="%H %D" --decorate=full >actual && + cat >expected <actual1 && + test_cmp expected actual1 +' + test_done -- cgit v1.2.3