File: svnxxdiff.sh

package info (click to toggle)
xxdiff 1%3A5.1%2Bgit20250320%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,448 kB
  • sloc: cpp: 18,519; python: 6,143; ansic: 1,546; sh: 1,532; perl: 308; lex: 284; yacc: 279; lisp: 250; tcl: 213; makefile: 91
file content (26 lines) | stat: -rwxr-xr-x 651 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

if [ x$SVN_XXDIFF = x ]
then
	case "$0" in */*) cmd="$0";; *) cmd="./$0";; esac

	SVN_XXDIFF=1; export SVN_XXDIFF
	exec svn diff --diff-cmd "$cmd" "$@"
	exit 1
fi

fail () { echo $0: "$@" >&2; sleep 2; }

[ x"$7" = x ] && fail Required file argument"(s)" missing.
[ -f "$7"  ] || fail $7: Not a file.

echo
echo "***" Executing xxdiff --geometry 1200x600-0+0 "$6" "$7"
echo
echo "***" Press Ctrl-C in this window to break all following diffs.
echo
echo "***" Note, you can edit the file you are diffing and then rediff
echo "***" it with the original by pressing Ctrl-R on xxdiff window.
echo

exec xxdiff --geometry 1200x600-0+0 "$6" "$7"