author_line_count.sh: Move user arguments last

Moving the "$@" last in the invocation of git log enables line stats
restricted to specific files or directories, e.g.,

  ./rtc_tools/author_line_count.sh ... -- modules/foo

Bug: None
Change-Id: I6dc17a10f2b321beae452f5e2cc74bcba2f8aaf3
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/130491
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27381}
This commit is contained in:
Niels Möller 2019-04-01 09:26:48 +02:00 committed by Commit Bot
parent 1c41be6e05
commit ef139908ee

View file

@ -11,7 +11,7 @@
# This script counts net line count contributions by author. Besides
# amusement, the value of these stats are of course questionable.
git log "$@" --pretty=format:%ae --shortstat \
git log --pretty=format:%ae --shortstat "$@" \
| sed '/^ /s/,/\n/g' \
| gawk '
/^[^ ]/ {