oh-my-git/levels/commit-create/win

4 lines
143 B
Plaintext
Raw Normal View History

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