From: Michael Dressel <MichaelTiloDressel@t-online.de>
To: git@vger.kernel.org, peff@peff.net
Subject: [PATCH 2/2] Added test for log`s new '%d' format specifier
Date: Wed, 3 Sep 2008 20:42:07 +0200 (CEST) [thread overview]
Message-ID: <alpine.LNX.1.10.0809032040150.32295@pollux> (raw)
Signed-off-by: Michael Dressel <MichaelTiloDressel@t-online.de>
---
t/t4203-log.sh | 41 +++++++++++++++++++++++++++++++++++++++++
1 files changed, 41 insertions(+), 0 deletions(-)
create mode 100755 t/t4203-log.sh
diff --git a/t/t4203-log.sh b/t/t4203-log.sh
new file mode 100755
index 0000000..ef13927
--- /dev/null
+++ b/t/t4203-log.sh
@@ -0,0 +1,41 @@
+#!/bin/sh
+
+test_description='git log --pretty=format:%h%d'
+
+. ./test-lib.sh
+
+test_expect_success setup '
+
+ echo one >one &&
+ git add one &&
+ test_tick &&
+ git commit -m initial &&
+ git tag -a V1 -m "v1" &&
+
+ echo ichi >one &&
+ git add one &&
+ test_tick &&
+ git commit -m second &&
+ git tag l2 &&
+
+ echo bichi >one &&
+ git add one &&
+ test_tick &&
+ git commit -m third &&
+ git tag l3 &&
+ git tag -a V3 -m "v3"
+
+'
+
+test_expect_success 'find decoration' '
+
+ git log --pretty="format:%h %d" | grep V1 &&
+ git log --pretty="format:%h %d" | grep V3 &&
+ git log --pretty="format:%h %d" | grep l2 &&
+ git log --pretty="format:%h %d" | grep l3
+
+
+'
+
+test_done
+
--
1.6.0.1
reply other threads:[~2008-09-03 18:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.1.10.0809032040150.32295@pollux \
--to=michaeltilodressel@t-online.de \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).