diff options
-rwxr-xr-x | git-fat | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -389,6 +389,8 @@ class GitFat(object): def filter_objects(self, refargs, patterns): files = self.referenced_objects(**refargs) - self.catalog_objects() + if refargs.get('all'): # Currently ignores patterns; can we efficiently do both? + return files orphans_matched = list(self.orphan_files(patterns)) orphans_objects = set(map(lambda x: x[0], orphans_matched)) return files & orphans_objects |