From ef139908eeb759cd426b6665a46c0f87cc044c76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= Date: Mon, 1 Apr 2019 09:26:48 +0200 Subject: [PATCH] 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 Commit-Queue: Niels Moller Cr-Commit-Position: refs/heads/master@{#27381} --- rtc_tools/author_line_count.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtc_tools/author_line_count.sh b/rtc_tools/author_line_count.sh index f99b3c0f57..1e463e4723 100755 --- a/rtc_tools/author_line_count.sh +++ b/rtc_tools/author_line_count.sh @@ -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 ' /^[^ ]/ {