Skip to content

Why --abbrev=4 ?  #6

Open
Open

Description

@venantius

This just bit me when I tried to copy-paste the 7-char version tag from git describe directly into my dependencies. Is there a reason for why lein git-version only uses a 4 character subset of these?

Activity

  1. joekiller commented on Feb 21, 2018

    @joekiller

    This is merely 4 because it is so. No real reason. If you want to use something else you can update your ~/.lein/profiles.clj to include something like

    {:user {:plugins :git-version {:version-cmd "git describe --match v*.* --abbrev=7 --dirty"}}
    
  2. added a commit that references this issue on Aug 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions