X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/24aadb3f7d7347d22c5b7afdd0b8989cccb11a9b..faed67707d8377ddb68fa8ba199d85ed90d1f27c:/stgit/git.py diff --git a/stgit/git.py b/stgit/git.py index ae5506b..2661622 100644 --- a/stgit/git.py +++ b/stgit/git.py @@ -421,6 +421,16 @@ def files(rev1, rev2): return str.rstrip() +def barefiles(rev1, rev2): + """Return the files modified between rev1 and rev2, without status info + """ + + str = '' + for line in _output_lines('git-diff-tree -r %s %s' % (rev1, rev2)): + str += '%s\n' % line.rstrip().split(' ',4)[-1].split('\t',1)[-1] + + return str.rstrip() + def checkout(files = [], tree_id = None, force = False): """Check out the given or all files """