git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
MDMichael Dressel <michaeltilodressel@t-online.de>
Date
Sep 3, 2008, 18:42 UTC
Message-ID
<alpine.LNX.1.10.0809032040150.32295@pollux>
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
Message 1 of 1 in “Added test for log`s new '%d' format specifier”
  1. 2/2 Added test for log`s new '%d' format specifierMichael Dressel, Sep 3, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.