Skip to content

Commit 74b0eaf

Browse files
committed
Change the default for git imerge continue to --no-edit
Change the default option for `git imerge continue` and `git imerge record` to `--no-edit`. The user can always set the new configuration option `imerge.editmergemessages` to `true` to get the old behavior.
1 parent 33c6fe8 commit 74b0eaf

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

README.rst

+13
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,19 @@ merge conflicts to be resolved incorrectly. Therefore, ``git-imerge``
260260
explicitly turns rerere off temporarily whenever it invokes git.
261261

262262

263+
Log messages for pairwise merge commits
264+
---------------------------------------
265+
266+
When ``git imerge continue`` or ``git imerge record`` finds a resolved
267+
merge in the working tree, it commits that merge then incorporates it
268+
into the incremental merge. Usually it just uses Git's autogenerated
269+
commit message for such commits. If you want to be prompted to edit
270+
such commit messages, you can either specify ``--edit`` on the command
271+
line or change the default in your configuration::
272+
273+
git config --global imerge.editmergemessages true
274+
275+
263276
License
264277
=======
265278

git-imerge

+2-2
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def get_default_edit():
266266
When 'git imerge continue' or 'git imerge record' finds a user
267267
merge that can be committed, should it (by default) ask the user
268268
to edit the commit message? This behavior can be configured via
269-
'imerge.editmergemessages'. If it is not configured, return True.
269+
'imerge.editmergemessages'. If it is not configured, return False.
270270
271271
Please note that this function is only used to choose the default
272272
value. It can be overridden on the command line using '--edit' or
@@ -281,7 +281,7 @@ def get_default_edit():
281281
).rstrip()
282282
]
283283
except CalledProcessError:
284-
return True
284+
return False
285285

286286

287287
class UncleanWorkTreeError(Failure):

0 commit comments

Comments
 (0)