configuration/local/bin/subgit-export

9 lines
194 B
Plaintext
Raw Normal View History

2022-01-04 00:34:29 +01:00
#!/bin/sh
printf 'OrgDefinedId,%s Text Grade,End-of-Line Indicator\n' "${1:-Commit}"
for d in 0*; do
cd "$d"
printf "#%s,%s,#\n" "$d" "$(git log --oneline | head -1 | tr -d ',')"
cd ..
done