mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-03 19:04:40 +01:00
10 lines
272 B
Text
10 lines
272 B
Text
COMMITS=$(git cat-file --batch-check='%(objectname) %(objecttype)' --batch-all-objects | grep commit | cut -f1 -d" ")
|
|
|
|
for COMMIT in $COMMITS; do
|
|
echo a commit named $COMMIT
|
|
if [ $(git rev-list $COMMIT | wc -l) -ge 3 ]; then
|
|
return 0
|
|
fi
|
|
done
|
|
|
|
return 1
|