We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c56366 commit 30dcc26Copy full SHA for 30dcc26
bin/mkreleaselog
@@ -33,15 +33,22 @@ AUTHORS=(
33
34
NL=$'\n'
35
36
+ROOT_DIR="$(git rev-parse --show-toplevel)"
37
+
38
msg() {
39
echo "$*" >&2
40
}
41
42
statlog() {
- rpath="$GOPATH/src/$1"
- start="${2:-}"
43
- end="${3:-HEAD}"
44
- git -C "$rpath" log --shortstat --no-merges --pretty="tformat:%H%n%aN%n%aE" "$start..$end" | while
+ local rpath="$GOPATH/src/$1"
+ local start="${2:-}"
45
+ local end="${3:-HEAD}"
46
+ local mailmap_file="$rpath/.mailmap"
47
+ if ! [[ -e "$mailmap_file" ]]; then
48
+ mailmap_file="$ROOT_DIR/.mailmap"
49
+ fi
50
51
+ git -C "$rpath" -c mailmap.file="$mailmap_file" log --use-mailmap --shortstat --no-merges --pretty="tformat:%H%n%aN%n%aE" "$start..$end" | while
52
read hash
53
read name
54
read email
0 commit comments