From b5f325cb4a0d986689177857a62007027a532d31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Scharfe?= Date: Sat, 24 Sep 2016 13:30:22 +0200 Subject: 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 HEAD ' because that syntax is deprecated. Use this feature in git-gui and get rid of that warning. Signed-off-by: Rene Scharfe Tested-by: Johannes Sixt Signed-off-by: Junio C Hamano --- lib/merge.tcl | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/merge.tcl b/lib/merge.tcl index 460d32fa22..5ab6f8f102 100644 --- a/lib/merge.tcl +++ b/lib/merge.tcl @@ -112,12 +112,7 @@ method _start {} { close $fh set _last_merged_branch $branch - set cmd [list git] - lappend cmd merge - lappend cmd --strategy=recursive - lappend cmd [git fmt-merge-msg <[gitdir FETCH_HEAD]] - lappend cmd HEAD - lappend cmd $name + set cmd [list git merge --strategy=recursive FETCH_HEAD] ui_status [mc "Merging %s and %s..." $current_branch $stitle] set cons [console::new [mc "Merge"] "merge $stitle"] -- cgit v1.2.3