equal
deleted
inserted
replaced
1993 |
1993 |
1994 output = b"" |
1994 output = b"" |
1995 if match.always(): |
1995 if match.always(): |
1996 output += self._gitcommand(cmd) + b'\n' |
1996 output += self._gitcommand(cmd) + b'\n' |
1997 else: |
1997 else: |
1998 st = self.status(node2)[:3] |
1998 st = self.status(node2) |
1999 files = [f for sublist in st for f in sublist] |
1999 files = [ |
|
2000 f |
|
2001 for sublist in (st.modified, st.added, st.removed) |
|
2002 for f in sublist |
|
2003 ] |
2000 for f in files: |
2004 for f in files: |
2001 if match(f): |
2005 if match(f): |
2002 output += self._gitcommand(cmd + [b'--', f]) + b'\n' |
2006 output += self._gitcommand(cmd + [b'--', f]) + b'\n' |
2003 |
2007 |
2004 if output.strip(): |
2008 if output.strip(): |