Skip to content

Commit 0dbc715

Browse files
committed
doc: consolidate --rerere-autoupdate description
The `--rerere-autoupdate` option is shared across 5 commands, and are described the same way because it works exactly the same way in these commands. Create a separate file and include it from the help pages for these commands, so that we can improve the description at one place to improve all of them at once, and keep them in sync. Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6a475b7 commit 0dbc715

File tree

6 files changed

+9
-20
lines changed

6 files changed

+9
-20
lines changed

Documentation/git-am.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,7 @@ default. You can use `--no-utf8` to override this.
112112
am.threeWay configuration variable. For more information,
113113
see am.threeWay in linkgit:git-config[1].
114114

115-
--rerere-autoupdate::
116-
--no-rerere-autoupdate::
117-
Allow the rerere mechanism to update the index with the
118-
result of auto-conflict resolution if possible.
115+
include::rerere-options.txt[]
119116

120117
--ignore-space-change::
121118
--ignore-whitespace::

Documentation/git-cherry-pick.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,7 @@ effect to your index in a row.
156156
Pass the merge strategy-specific option through to the
157157
merge strategy. See linkgit:git-merge[1] for details.
158158

159-
--rerere-autoupdate::
160-
--no-rerere-autoupdate::
161-
Allow the rerere mechanism to update the index with the
162-
result of auto-conflict resolution if possible.
159+
include::rerere-options.txt[]
163160

164161
SEQUENCER SUBCOMMANDS
165162
---------------------

Documentation/git-merge.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,7 @@ invocations. The automated message can include the branch description.
9090
If `--log` is specified, a shortlog of the commits being merged
9191
will be appended to the specified message.
9292

93-
--rerere-autoupdate::
94-
--no-rerere-autoupdate::
95-
Allow the rerere mechanism to update the index with the
96-
result of auto-conflict resolution if possible.
93+
include::rerere-options.txt[]
9794

9895
--overwrite-ignore::
9996
--no-overwrite-ignore::

Documentation/git-rebase.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -376,10 +376,7 @@ See also INCOMPATIBLE OPTIONS below.
376376
+
377377
See also INCOMPATIBLE OPTIONS below.
378378

379-
--rerere-autoupdate::
380-
--no-rerere-autoupdate::
381-
Allow the rerere mechanism to update the index with the
382-
result of auto-conflict resolution if possible.
379+
include::rerere-options.txt[]
383380

384381
-S[<keyid>]::
385382
--gpg-sign[=<keyid>]::

Documentation/git-revert.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,7 @@ effect to your index in a row.
112112
Pass the merge strategy-specific option through to the
113113
merge strategy. See linkgit:git-merge[1] for details.
114114

115-
--rerere-autoupdate::
116-
--no-rerere-autoupdate::
117-
Allow the rerere mechanism to update the index with the
118-
result of auto-conflict resolution if possible.
115+
include::rerere-options.txt[]
119116

120117
--reference::
121118
Instead of starting the body of the log message with "This

Documentation/rerere-options.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
--rerere-autoupdate::
2+
--no-rerere-autoupdate::
3+
Allow the rerere mechanism to update the index with the
4+
result of auto-conflict resolution if possible.

0 commit comments

Comments
 (0)