From: Catalin Marinas Date: Sun, 21 Jan 2007 23:24:56 +0000 (+0000) Subject: Fix the displaying of unknown files for 'stg status' X-Git-Tag: v0.14.3~372 X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/a2597fc74859f62872cef838377568811f2b6362?ds=sidebyside Fix the displaying of unknown files for 'stg status' Unknown files (marked with '?' by "stg status") are all displayed regardless of any files or dir explicitely specified on command-line. Signed-off-by: Catalin Marinas --- diff --git a/stgit/git.py b/stgit/git.py index 4c5685a..7d99338 100644 --- a/stgit/git.py +++ b/stgit/git.py @@ -688,6 +688,8 @@ def status(files = None, modified = False, new = False, deleted = False, cache_files = [x for x in cache_files if x[0] in filestat] for fs in cache_files: + if files and not fs[1] in files: + continue if all: print '%s %s' % (fs[0], fs[1]) else: