diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-01-05 23:01:29 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-01-05 23:01:30 +0100 |
commit | bb14cfdfd74c37f4319405eaebce0691c5b51db0 (patch) | |
tree | ff830f599931dd6952e354ffd1ba0b2bedea8a76 /Documentation/git-merge.txt | |
parent | Merge branch 'km/help-prompt-fix' (diff) | |
parent | merge: allow to pretend a merge is made into a different branch (diff) | |
download | git-bb14cfdfd74c37f4319405eaebce0691c5b51db0.tar.xz git-bb14cfdfd74c37f4319405eaebce0691c5b51db0.zip |
Merge branch 'jc/merge-detached-head-name'
The default merge message prepared by "git merge" records the name
of the current branch; the name can be overridden with a new option
to allow users to pretend a merge is made on a different branch.
* jc/merge-detached-head-name:
merge: allow to pretend a merge is made into a different branch
Diffstat (limited to 'Documentation/git-merge.txt')
-rw-r--r-- | Documentation/git-merge.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Documentation/git-merge.txt b/Documentation/git-merge.txt index e8cecf5a51..3125473cc1 100644 --- a/Documentation/git-merge.txt +++ b/Documentation/git-merge.txt @@ -12,7 +12,8 @@ SYNOPSIS 'git merge' [-n] [--stat] [--no-commit] [--squash] [--[no-]edit] [--no-verify] [-s <strategy>] [-X <strategy-option>] [-S[<keyid>]] [--[no-]allow-unrelated-histories] - [--[no-]rerere-autoupdate] [-m <msg>] [-F <file>] [<commit>...] + [--[no-]rerere-autoupdate] [-m <msg>] [-F <file>] + [--into-name <branch>] [<commit>...] 'git merge' (--continue | --abort | --quit) DESCRIPTION @@ -76,6 +77,11 @@ The 'git fmt-merge-msg' command can be used to give a good default for automated 'git merge' invocations. The automated message can include the branch description. +--into-name <branch>:: + Prepare the default merge message as if merging to the branch + `<branch>`, instead of the name of the real branch to which + the merge is made. + -F <file>:: --file=<file>:: Read the commit message to be used for the merge commit (in |