* [PATCH 2/2] Added test for log`s new '%d' format specifier
@ 2008-09-03 18:42 Michael Dressel
0 siblings, 0 replies; only message in thread
From: Michael Dressel @ 2008-09-03 18:42 UTC (permalink / raw)
To: git, peff
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-09-03 18:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-03 18:42 [PATCH 2/2] Added test for log`s new '%d' format specifier Michael Dressel
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).