Skip to content

Add support for git describe #136

Description

@jon-armstrong-zz

Please consider adding support git describe command and its options.

Activity

  1. smithsp commented on Feb 10, 2014

    @smithsp

    Consider the following:

    import git
    r = git.repo.Repo('./')
    r.git.describe()

    Is this not sufficient?

  2. jon-armstrong-zz commented on Aug 7, 2014

    @jon-armstrong-zz
    Author

    That works, thanks. I didn't find it documented anywhere, so I assumed it wasn't supported.

  3. nuzz commented on Mar 25, 2017

    @nuzz

    This should probably be somewhere in the documentation. I couldn't find this in the docs so I googled and it lead me here to this closed issue.

  4. corydodt commented on Mar 26, 2017

    @corydodt

    Was this feature removed? The sample code no longer works.

  5. ogajduse commented on Mar 26, 2017

    @ogajduse

    @corydodt Works for me. Out from Python3 console:
    import git
    r = git.repo.Repo("./..")
    r.git.describe()
    '0.0.3-8-g8c66b5c'

  6. ankostis commented on Mar 27, 2017

    @ankostis
    Contributor

    Maybe this part of the documents help: Using git directly.

  7. corydodt commented on Mar 27, 2017

    @corydodt

    My bad! I was omitting the .git. part of the API.

  8. added a commit that references this issue on Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions