PMbwmon bandwidth monitor: can specify which interfaces to watch, also supporting...
[hband-tools.git] / user-tools / git_diff
blob71e0bef2724d956fe1e2a45abf751e0b38e6cd71
1 #!/bin/bash
3 true <<EOF
4 =pod
6 =head1 NAME
8 git_diff - View two files' diff by git-diff(1), even not under git version control
10 =cut
12 EOF
15 declare -a args
16 for arg in "$@"
18 if [ "${arg:0:1}" != - ]
19 then
20 arg=`readlink -nf "$arg"`
22 args+=("$arg")
23 done
24 git diff --no-index "${args[@]}"