Skip to content

Respect core.abbrev when abbreviating SHAs #124

@maninak

Description

@maninak

We should respect core.abbrev when abbreviating git SHAs and keep defaulting to 7 chars if it isn't defined. This would improve support for non-small projects.

Theoretically, all we have to do is read the related git config and use it inside shortenHash().

Note, we should also respect special non-numeric values where core.abbrev can
be legally set to "auto" or "no", where "auto" gets an appropriate
length based on a loose count of objects in the current repo, and
"no" which doesn't abbreviate the SHA1 at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature extending the app's current capabilities

    Type

    No type

    Projects

    Status

    📋 Up Next

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions