16 lines
214 B
Bash
16 lines
214 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
if [ "$#" -ne 1 ]; then
|
||
|
echo "Syntax: $0 <commit range, start..end>"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
IFS="
|
||
|
"
|
||
|
|
||
|
printf "## Commits\n"
|
||
|
for i in $(git log --oneline --reverse "$1"); do
|
||
|
printf -- "- %s\n" "$i"
|
||
|
done
|
||
|
|