Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/mergetools/xxdiff # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / mergetools / xxdiff` 38 lines ยท 913 bytes Raw Blame History 1 diff_cmd () { 2 "$merge_tool_path" \ 3 -R 'Accel.Search: "Ctrl+F"' \ 4 -R 'Accel.SearchForward: "Ctrl+G"' \ 5 "$LOCAL" "$REMOTE" 6 7 # xxdiff can segfault on binary files which are often uninteresting. 8 # Do not allow segfaults to stop us from continuing on to the next file. 9 if test $? = 128 10 then 11 return 1 12 fi 13 } 14 15 diff_cmd_help () { 16 echo "Use xxdiff (requires a graphical session)" 17 } 18 19 merge_cmd () { 20 if $base_present 21 then 22 "$merge_tool_path" -X --show-merged-pane \ 23 -R 'Accel.SaveAsMerged: "Ctrl+S"' \ 24 -R 'Accel.Search: "Ctrl+F"' \ 25 -R 'Accel.SearchForward: "Ctrl+G"' \ 26 --merged-file "$MERGED" "$LOCAL" "$BASE" "$REMOTE" 27 else 28 "$merge_tool_path" -X $extra \ 29 -R 'Accel.SaveAsMerged: "Ctrl+S"' \ 30 -R 'Accel.Search: "Ctrl+F"' \ 31 -R 'Accel.SearchForward: "Ctrl+G"' \ 32 --merged-file "$MERGED" "$LOCAL" "$REMOTE" 33 fi 34 } 35 36 merge_cmd_help () { 37 echo "Use xxdiff (requires a graphical session)" 38 }