git://git.iain.cx/iain
/
profile.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Export SCREENRC in become.
[profile.git]
/
opt
/
p4
/
p4-diff
1
#!/bin/bash
2
3
. ${0%/*}/common
4
5
function parse_change() {
6
while getopts ":c:" opt; do
7
case $opt in
8
c) echo $OPTARG;;
9
esac
10
done
11
}
12
13
if [ -n "$(parse_change $*)" ]; then
14
exec ${0%/*}/p4-diffchange $p4opts diffchange ${1+"$@"}
15
else
16
exec p4 $p4opts $p4command ${1+"$@"}
17
fi