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

[PATCH] stash: end commit log with a newline

From
Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
Date
Jul 3, 2007, 08:59 UTC
Message-ID
<20070703085906.GA4963@lala>
If I do
	git cat-file commit $commitid

for a commit created by stash, the next prompt starts directly after the shortlog of HEAD.

Signed-off-by: Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
---
 git-stash.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-stash.sh b/git-stash.sh
index 16979ab..9deda44 100755
--- a/git-stash.sh
+++ b/git-stash.sh
@@ -67,7 +67,7 @@ save_stash () {
 		die "Cannot save the current worktree state"
 
 	# create the stash
-	w_commit=$(printf 'WIP on %s' "$msg" |
+	w_commit=$(printf 'WIP on %s\n' "$msg" |
 		git commit-tree $w_tree -p $b_commit -p $i_commit) ||
 		die "Cannot record working tree state"
 
-- 
1.5.2.2.1451.gb0e5e


-- 
Uwe Kleine-König

cal 9 1752 | grep 10
Next: Johannes Schindelin
Message 1 of 8 in “stash: end commit log with a newline”
  1. stash: end commit log with a newlineUwe Kleine-König, Jul 3, 2007
  2. Johannes SchindelinJul 3, 2007
  3. Uwe Kleine-KönigJul 3, 2007
  4. Jeff KingJul 3, 2007
  5. しらいしななこJul 4, 2007
  6. Junio C HamanoJul 4, 2007
  7. Uwe Kleine-KönigJul 4, 2007
  8. しらいしななこJul 4, 2007

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.