Whether the object git cat-file -e asked about exists, from its exit code: some true on exit 0, some false on exit 1 (the object is missing), none on any other exit, which says nothing about the object.
git cat-file -e
Whether the object
git cat-file -easked about exists, from its exit code: some true on exit 0, some false on exit 1 (the object is missing), none on any other exit, which says nothing about the object.