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

[PATCH 1/2] merge: match the help text with the documentation

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 24, 2011, 07:35 UTC
Message-ID
<7vlj05as3k.fsf_-_@alter.siamese.dyndns.org>
In-Reply-To
<7vpqphasbr.fsf@alter.siamese.dyndns.org>
From: Jared Hance <jaredhance@gmail.com>
Date: Thu, 10 Feb 2011 18:52:41 -0500

We used to be very casual in terminology and used <branch>, <ref>, <remote> and <rev> more or less interchangeably with <commit> when it is clear from the context. Match the help text given by "git merge -h" with that of the documentation.

Signed-off-by: Jared Hance <jaredhance@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
 * Jared said <branch> but 57bddb1 (Documentation/git-merge: reword
   references to "remote" and "pull", 2010-01-07) updated it to <commit>,
   which is both technically more correct and equally understandable, so I
   chose to match the documentation.  Also --abort was not described as a
   different mode.
 builtin/merge.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/builtin/merge.c b/builtin/merge.c
index 42fff38..a2105ef 100644
--- a/builtin/merge.c
+++ b/builtin/merge.c
@@ -37,8 +37,9 @@ struct strategy {
 };
 
 static const char * const builtin_merge_usage[] = {
-	"git merge [options] <remote>...",
-	"git merge [options] <msg> HEAD <remote>",
+	"git merge [options] <commit>...",
+	"git merge [options] <msg> HEAD <commit>",
+	"git merge --abort",
 	NULL
 };
 
-- 
1.7.4.1.433.gcd306
Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 11 in “What's cooking in git.git (Mar 2011, #04; Wed, 23)”
  1. Junio C HamanoMar 23, 2011
  2. Martin von ZweigbergkMar 24, 2011
  3. Junio C HamanoMar 24, 2011
  4. Nguyen Thai Ngoc DuyMar 24, 2011
  5. Junio C HamanoMar 24, 2011
  6. 1/2 merge: match the help text with the documentationJunio C Hamano, Mar 24, 2011
  7. 2/2 merge: merge with the default upstream with no argumentJunio C Hamano, Mar 24, 2011
  8. Felipe ContrerasMay 5, 2011
  9. Junio C HamanoMay 5, 2011
  10. Felipe ContrerasMay 5, 2011
  11. Junio C HamanoMar 24, 2011

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.