mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
build_tools/list_committers_since.fish: tool for showing new & returning committers
This commit is contained in:
parent
b3d5fb71f4
commit
8339e28cfe
1 changed files with 34 additions and 0 deletions
34
build_tools/list_committers_since.fish
Executable file
34
build_tools/list_committers_since.fish
Executable file
|
@ -0,0 +1,34 @@
|
||||||
|
#! /usr/bin/env fish
|
||||||
|
|
||||||
|
set TAG $argv[1]
|
||||||
|
|
||||||
|
if test -z "$TAG"
|
||||||
|
echo "Tag name required."
|
||||||
|
exit 1
|
||||||
|
end
|
||||||
|
|
||||||
|
if not contains -- $TAG (git tag)
|
||||||
|
echo "$TAG is not a valid tag name."
|
||||||
|
exit 1
|
||||||
|
end
|
||||||
|
|
||||||
|
set committers_to_tag (mktemp)
|
||||||
|
set committers_from_tag (mktemp)
|
||||||
|
|
||||||
|
# You might think it would be better to case-insensitively sort/compare the names
|
||||||
|
# to produce a more natural-looking list.
|
||||||
|
# Unicode collation tables mean that this is fraught with danger; for example, the
|
||||||
|
# "“" character will not case-fold in UTF-8 locales. sort suggests using the C locale!
|
||||||
|
|
||||||
|
git log "$TAG" --format="%aN" --reverse | sort | uniq > $committers_to_tag
|
||||||
|
git log "$TAG".. --format="%aN" --reverse | sort | uniq > $committers_from_tag
|
||||||
|
|
||||||
|
echo New committers:
|
||||||
|
echo (comm -13 $committers_to_tag $committers_from_tag)','
|
||||||
|
|
||||||
|
echo
|
||||||
|
|
||||||
|
echo Returning committers:
|
||||||
|
echo (comm -12 $committers_to_tag $committers_from_tag)','
|
||||||
|
|
||||||
|
rm $committers_to_tag $committers_from_tag
|
Loading…
Reference in a new issue