From: Catalin Marinas Date: Tue, 3 Jun 2008 21:22:45 +0000 (+0100) Subject: Merge branch 'stable' X-Git-Tag: v0.15-rc1~218 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/3e022c8a41837e0894d017c4912b77e4b1792744 Merge branch 'stable' --- 3e022c8a41837e0894d017c4912b77e4b1792744 diff --cc stgit/git.py index 570003c,8e6bdf4..0955be7 --- a/stgit/git.py +++ b/stgit/git.py @@@ -188,8 -190,20 +188,21 @@@ def ls_files(files, tree = 'HEAD', full # just hide the details of the 'git ls-files' command we use raise GitException, \ 'Some of the given paths are either missing or not known to GIT' + return list(fileset) + def parse_git_ls(output): + t = None + for line in output.split('\0'): + if not line: + # There's a zero byte at the end of the output, which + # gives us an empty string as the last "line". + continue + if t == None: + mode_a, mode_b, sha1_a, sha1_b, t = line.split(' ') + else: + yield (t, line) + t = None + def tree_status(files = None, tree_id = 'HEAD', unknown = False, noexclude = True, verbose = False, diff_flags = []): """Get the status of all changed files, or of a selected set of