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

[PATCH 3/7] Documentation: merge: move merge strategy list to end

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jan 23, 2010, 09:33 UTC
Message-ID
<20100123093337.GD7571@progeny.tock>
In-Reply-To
<20100123092551.GA7571@progeny.tock>
So the section layout changes as follows:
 NAME
 SYNOPSIS
 DESCRIPTION
 OPTIONS
-MERGE STRATEGIES
 HOW MERGE WORKS
 HOW CONFLICTS ARE PRESENTED
 HOW TO RESOLVE CONFLICTS
 EXAMPLES
+MERGE STRATEGIES
 CONFIGURATION
 SEE ALSO
 AUTHOR
 DOCUMENTATION
 GIT
 NOTES

The first-time user will care more about conflicts than about strategies other than 'recursive'.

One of the examples uses -s ours, but I do not think this hinders readability.

Suggested-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
---
Thomas Rast wrote [1]:
Show 5 quoted lines
> While I agree with the general intent of deferring the strategies
> further back, wouldn't it be better go all the way and instead put
> them before (or even after, but one of them uses -s ours) "EXAMPLES"?
> The average user will care more about conflicts than about strategies
> other than 'recursive'.
Good idea.  Thanks!
[1] http://thread.gmane.org/gmane.comp.version-control.git/136356/focus=136679
 Documentation/git-merge.txt |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/git-merge.txt b/Documentation/git-merge.txt
index 1fecedb..83bf3e7 100644
--- a/Documentation/git-merge.txt
+++ b/Documentation/git-merge.txt
@@ -42,8 +42,6 @@ include::merge-options.txt[]
 	You need at least one <commit>.  Specifying more than one
 	<commit> obviously means you are trying an Octopus.
 
-include::merge-strategies.txt[]
-
 
 HOW MERGE WORKS
 ---------------
@@ -240,6 +238,8 @@ changes into a merge commit.  Small fixups like bumping
 release/version name would be acceptable.
 
 
+include::merge-strategies.txt[]
+
 CONFIGURATION
 -------------
 include::merge-config.txt[]
-- 
1.6.6
Previous: Jonathan NiederNext: Jonathan Nieder
Message 4 of 11 in “clarify 'git merge' documentation”
  1. 0/7 clarify 'git merge' documentationJonathan Nieder, Jan 23, 2010
  2. 1/7 Documentation: merge: move configuration section to endJonathan Nieder, Jan 23, 2010
  3. 2/7 Documentation: suggest `reset --merge` in How Merge Works sectionJonathan Nieder, Jan 23, 2010
  4. 3/7 Documentation: merge: move merge strategy list to endJonathan Nieder, Jan 23, 2010
  5. 4/7 Documentation: merge: add an overviewJonathan Nieder, Jan 23, 2010
  6. Raja R HarinathFeb 12, 2010
  7. 5/7 Documentation: emphasize when git merge terminates earlyJonathan Nieder, Jan 23, 2010
  8. 6/7 Documentation: merge: add a section about fast-forwardJonathan Nieder, Jan 23, 2010
  9. 7/7 Documentation: simplify How Merge WorksJonathan Nieder, Jan 23, 2010
  10. Thomas RastJan 24, 2010
  11. Junio C HamanoJan 24, 2010

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.