-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgDiff
More file actions
executable file
·30 lines (28 loc) · 753 Bytes
/
gDiff
File metadata and controls
executable file
·30 lines (28 loc) · 753 Bytes
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
27
28
29
30
#!/usr/bin/bash
# *********************************************************DATEOMATIC: Wed Feb 26 00:01:17 EST 2025
# *********************************************************HASHOMATIC: 77817de3816b3a115eaec6bb1cc34eea
Tmp=/tmp/$$
Tmp0=/tmp/$$_$$
Tmp1=/tmp/$$_$$_$$
Tmp2=/tmp/$$_$$_$$_$$
Tmp3=/tmp/$$_$$_$$_$$_$$
trap 'ex:it 0' INT HUP QUIT TERM ALRM USR1
trap 'rm -f "$Tmp" "$Tmp0" "$Tmp1" "$Tmp2" "$Tmp3"' EXIT
rm -f "$Tmp $Tmp0 $Tmp1 $Tmp2 $Tmp3" >/dev/null 2>&1;
UPDATE="NO"
while getopts "ur:" arg
do
case $arg in
u) UPDATE="YES"
exit 0
;;
r) UA="$OPTARG"
exit 0
;;
esac
done
shift $(($OPTIND - 1))
clear
git fetch origin > $Tmp
git diff origin/master >> $Tmp
cat $Tmp