Skip to content

Commit 3adacc2

Browse files
committed
Merge branch 'jc/rerere-autoupdate-doc'
Update documentation on the "--[no-]rerere-autoupdate" option. * jc/rerere-autoupdate-doc: doc: clarify rerere-autoupdate doc: consolidate --rerere-autoupdate description
2 parents d86ac14 + cb54fc9 commit 3adacc2

File tree

6 files changed

+14
-20
lines changed

6 files changed

+14
-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: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
--rerere-autoupdate::
2+
--no-rerere-autoupdate::
3+
After the rerere mechanism reuses a recorded resolution on
4+
the current conflict to update the files in the working
5+
tree, allow it to also update the index with the result of
6+
resolution. `--no-rerere-autoupdate` is a good way to
7+
double-check what `rerere` did and catch potential
8+
mismerges, before committing the result to the index with a
9+
separate `git add`.

0 commit comments

Comments
 (0)