##// END OF EJS Templates
git: ensure empty diff is returned for no matching file filter
marcink -
r762:42afb633 default
parent child Browse files
Show More
@@ -996,6 +996,8 b' class GitRemote(RemoteBase):'
996 for p in diff_obj:
996 for p in diff_obj:
997 if p.delta.old_file.path == file_filter:
997 if p.delta.old_file.path == file_filter:
998 return p.patch or ''
998 return p.patch or ''
999 # fo matching path == no diff
1000 return ''
999 return diff_obj.patch or ''
1001 return diff_obj.patch or ''
1000
1002
1001 @reraise_safe_exceptions
1003 @reraise_safe_exceptions
General Comments 0
You need to be logged in to leave comments. Login now