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

[PATCH] revert: Remove printing fullstop after the commit hash

From
ASAmit Shah <amit.shah@redhat.com>
Date
Aug 14, 2009, 09:56 UTC
Message-ID
<1250243772-17556-1-git-send-email-amit.shah@redhat.com>

Copy-pasting the commit id from a revert message selects the trailing fullstop as well which has to be removed after pasting. That's inefficient.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
---
 builtin-revert.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-revert.c b/builtin-revert.c
index 151aa6a..7f0c22c 100644
--- a/builtin-revert.c
+++ b/builtin-revert.c
@@ -346,7 +346,7 @@ static int revert_or_cherry_pick(int argc, const char **argv)
 			add_to_msg(", reversing\nchanges made to ");
 			add_to_msg(sha1_to_hex(parent->object.sha1));
 		}
-		add_to_msg(".\n");
+		add_to_msg("\n");
 	} else {
 		base = parent;
 		next = commit;
-- 
1.6.2.5
Message 1 of 1 in “revert: Remove printing fullstop after the commit hash”
  1. revert: Remove printing fullstop after the commit hashAmit Shah, Aug 14, 2009

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.