In Simple Git 3.6.0, the default value of commit was changed to be the full commit instead of the short 7 character SHA. This causes the commit_sha and commit_long_sha to return the same value instead of commit_sha being the 7-character abbreviated version as it says in the docs.
This change makes commit_long_sha use the SHA from Simple Git and abbreviates commit_sha to a maximum of 7 characters.
👇 Click on the image for a new way to code review
####
[![Review these changes using an interactive CodeSee Map](https://s3.us-east-2.amazonaws.com/maps.codesee.io/images/github/EndBug/add-and-commit/502/49d7e8bd/81fcfed359dccda373165cdadd42d175c2c626a9.svg)](https://app.codesee.io/r/reviews?pr=502&src=https%3A%2F%2Fgithub.com%2FEndBug%2Fadd-and-commit)
#### Legend
Fixes #501
In
Simple Git 3.6.0
, the default value ofcommit
was changed to be the full commit instead of the short 7 character SHA. This causes thecommit_sha
andcommit_long_sha
to return the same value instead ofcommit_sha
being the 7-character abbreviated version as it says in the docs.This change makes
commit_long_sha
use the SHA from Simple Git and abbreviatescommit_sha
to a maximum of 7 characters.