DORMANTno replies

[PATCH 2/2] Added test for log`s new '%d' format specifier

From: Michael Dressel <hidden>
Date: 2016-06-15 22:45:17
Subsystem: the rest · Maintainer: Linus Torvalds


Signed-off-by: Michael Dressel <redacted>
---
  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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help