Add a usage

This commit is contained in:
Laurent Rineau 2018-11-20 15:42:48 +01:00
parent 6e06f20382
commit 0027fc7a4e
1 changed files with 15 additions and 1 deletions

View File

@ -3,7 +3,21 @@
zmodload zsh/stat
set -e
git=git
if [ "x$1" = "x--help" -o "x$1" = "x-h" ]; then
cat <<EOF
Usage: $0
[HEAD] [BASE]
List the commits in the range BASE..HEAD, with --first-parent
and show for each the weight of the commit.
[HEAD] is the head of the branch you want to display.
Its default value is 'HEAD'.
[BASE] is the base of the range. Its default value is 'cgal/master'.
EOF
exit 0
fi
commit=${1:-HEAD}
base=${2:-cgal/master}