oh-my-git/levels/commit-create/win
2020-09-15 14:51:31 +02:00

3 lines
143 B
Text

COMMIT_COUNT=$(git cat-file --batch-check='%(objectname) %(objecttype)' --batch-all-objects | grep commit | wc -l)
test "$COMMIT_COUNT" -gt 0