Skip to content

Commit b5f325c

Browse files
rscharfegitster
authored andcommitted
git-gui: stop using deprecated merge syntax
Starting with v2.5.0 git merge can handle FETCH_HEAD internally and warns when it's called like 'git merge <message> HEAD <commit>' because that syntax is deprecated. Use this feature in git-gui and get rid of that warning. Signed-off-by: Rene Scharfe <[email protected]> Tested-by: Johannes Sixt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4498b3a commit b5f325c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/merge.tcl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,7 @@ method _start {} {
112112
close $fh
113113
set _last_merged_branch $branch
114114

115-
set cmd [list git]
116-
lappend cmd merge
117-
lappend cmd --strategy=recursive
118-
lappend cmd [git fmt-merge-msg <[gitdir FETCH_HEAD]]
119-
lappend cmd HEAD
120-
lappend cmd $name
115+
set cmd [list git merge --strategy=recursive FETCH_HEAD]
121116

122117
ui_status [mc "Merging %s and %s..." $current_branch $stitle]
123118
set cons [console::new [mc "Merge"] "merge $stitle"]

0 commit comments

Comments
 (0)