diff options
author | Guido Guenther <agx@sigxcpu.org> | 2007-05-28 03:17:37 +0200 |
---|---|---|
committer | Guido Guenther <agx@bogon.sigxcpu.org> | 2007-05-28 03:17:37 +0200 |
commit | 44330a25a71415334516e3e00443dcb0434189b9 (patch) | |
tree | 85d13b3083d89d2231a186bc1005be83ef4cdf80 /gbp/git_utils.py | |
parent | f63599a3fe0924c6545587c0a2450fbd9ee4113b (diff) |
don't use git_load_dirs for imports
Diffstat (limited to 'gbp/git_utils.py')
-rw-r--r-- | gbp/git_utils.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gbp/git_utils.py b/gbp/git_utils.py index 54b70d2..0ea85f3 100644 --- a/gbp/git_utils.py +++ b/gbp/git_utils.py @@ -65,6 +65,13 @@ class GitRepository(object): return (ret, "".join(out)) + def index_files(self): + """List files in the index""" + out = self.__git_getoutput('ls-files') + files = [ line.strip() for line in out ] + return files + + def build_tag(format, version): """Generate a tag from a given format and a version""" return format % dict(version=sanitize_version(version)) |