Skip to content

Commit c062de2

Browse files
committed
Git diff: adding additional parameters at the end of the command
1 parent 17643e0 commit c062de2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

git/diff.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ def diff(self, other: Union[Type[Index], Type['Tree'], object, None, str] = Inde
157157
args.extend(paths)
158158
# END paths handling
159159

160+
if 'end_params' in kwargs:
161+
args.extend(kwargs.pop('end_params'))
162+
160163
kwargs['as_process'] = True
161164
proc = diff_cmd(*self._process_diff_args(args), **kwargs)
162165

0 commit comments

Comments
 (0)