Skip to content

Add support for git describe #136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jon-armstrong-zz opened this issue Feb 10, 2014 · 7 comments
Closed

Add support for git describe #136

jon-armstrong-zz opened this issue Feb 10, 2014 · 7 comments

Comments

@jon-armstrong-zz
Copy link

Please consider adding support git describe command and its options.

@smithsp
Copy link

smithsp commented Feb 10, 2014

Consider the following:

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

Is this not sufficient?

@jon-armstrong-zz
Copy link
Author

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

@nuzz
Copy link

nuzz commented Mar 25, 2017

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.

@corydodt
Copy link

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

@ogajduse
Copy link

ogajduse commented Mar 26, 2017

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

@ankostis
Copy link
Contributor

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

@corydodt
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

6 participants