Skip to content

Commit f7e09d8

Browse files
committed
mergetool-lib: Keep a list of cross desktop merge tools
Instead of repeating the same tools multiple times, let's just keep them in another variable and list them depending the current desktop Signed-off-by: Marco Trevisan (Treviño) <[email protected]>
1 parent 5032cfc commit f7e09d8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

git-mergetool--lib.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,12 @@ list_merge_tool_candidates () {
288288
fi
289289
if test -n "$DISPLAY"
290290
then
291+
cross_desktop_tools="opendiff kdiff3 tkdiff xxdiff"
291292
if is_desktop "GNOME"
292293
then
293-
tools="meld opendiff kdiff3 tkdiff xxdiff $tools"
294+
tools="meld $cross_desktop_tools $tools"
294295
else
295-
tools="opendiff kdiff3 tkdiff xxdiff meld $tools"
296+
tools="$cross_desktop_tools meld $tools"
296297
fi
297298
tools="$tools gvimdiff diffuse diffmerge ecmerge"
298299
tools="$tools p4merge araxis bc codecompare"

0 commit comments

Comments
 (0)