Gitpython: Add support for git describe

Created on 10 Feb 2014  路  7Comments  路  Source: gitpython-developers/GitPython

Please consider adding support git describe command and its options.

cannot reproduce

Most helpful comment

Consider the following:

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

Is this not sufficient?

All 7 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

connordelacruz picture connordelacruz  路  5Comments

crazyhouse33 picture crazyhouse33  路  3Comments

niso120b picture niso120b  路  4Comments

marcwebbie picture marcwebbie  路  6Comments

johnlinp picture johnlinp  路  6Comments