2
## Copyright (C) 2004 Aaron Bentley
4
## See the file "COPYING" for further information about
5
## the copyright and warranty status of this work.
9
# executes the command ("$@" are the arguments after the command name)
12
root=$(tla tree-root) || exit 2;
15
rej=$(find -regex '.*\.rej$');
16
orig=$(find -regex '.*\.orig$');
17
if [ -n "$rej" ]; then rej="$rej\n"; fi
19
if [ -n "$rej" ] || [ -n "$orig" ]; then
20
echo -e -n "$rej$orig"|sed -e "s/^\.\//C /" -e "s/\.rej$//" -e "s/\.orig$//"|sort|uniq
26
# one-liner description for aba help
29
aba_desc $(basename $0) "Displays a list of files with conflicts"
32
# short help for aba command -h, --help
36
Displays a list of files with conflicts
37
usage: $abaname $(basename $0)
39
Lists all files for which .rej or .orig files exist. This is not necessarily
40
complete, because some commands produce inline conflict markers, e.g.
41
"star-merge--three-way"
43
Returns 0 if no conflicts are detected, 1 if conflicts are detected, 2 on error.
47
# extended help for aba command -H or aba help command
55
# arch-tag: conflicts by Aaron Bentley (14:53 Mar 04 2004)