add printLatestCommits.sh
This commit is contained in:
6
printLatestCommits.sh
Executable file
6
printLatestCommits.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
script_dir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
count="${1:-10}"
|
||||||
|
|
||||||
|
git -C "$script_dir" log -n "$count" --pretty=format:%s | awk '{ lines[NR] = $0 } END { for (i = NR; i >= 1; i--) print lines[i] }'
|
||||||
Reference in New Issue
Block a user