Please consider adding support git describe command and its options.
Consider the following:
import git
r = git.repo.Repo('./')
r.git.describe()
Is this not sufficient?
That works, thanks. I didn't find it documented anywhere, so I assumed it wasn't supported.
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.
Was this feature removed? The sample code no longer works.
@corydodt Works for me. Out from Python3 console:
import git
r = git.repo.Repo("./..")
r.git.describe()
'0.0.3-8-g8c66b5c'
Maybe this part of the documents help: Using git directly.
My bad! I was omitting the .git. part of the API.
Most helpful comment
Consider the following:
Is this not sufficient?