oh-my-git/levels/internals/commit-create/win
2020-10-01 15:03:02 +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