mirror of
https://github.com/tj/git-extras.git
synced 2026-09-11 16:06:20 -04:00
effort: allow sending options to log. Fix #326
This commit is contained in:
parent
7d1ede1022
commit
fd72edd98f
|
|
@ -107,12 +107,32 @@ sort_effort() {
|
|||
< $tmp sort -rn -k 2
|
||||
}
|
||||
|
||||
# --above <n-commits>
|
||||
#
|
||||
# parse arguments
|
||||
# we handle --above, and send the rest to git log
|
||||
#
|
||||
while [[ $# > 0 ]] ; do
|
||||
key=$1
|
||||
declare -a log_args
|
||||
|
||||
if test "$1" = "--above"; then
|
||||
shift; above=$1
|
||||
case $key in
|
||||
--above)
|
||||
shift; above=$1
|
||||
;;
|
||||
--*)
|
||||
log_args+=$1
|
||||
;;
|
||||
--)
|
||||
shift
|
||||
break # files from here on
|
||||
;;
|
||||
*)
|
||||
break # files from here on
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
# [file ...]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue