-
-
Notifications
You must be signed in to change notification settings - Fork 950
Closed
Description
Currently there does not appear to be a way to specify the lines of context desired while using the git function
For example:
git diff -U0 efefe435
It would be useful to add this to the api so that this command could be executed:
diff = commit.diff(parent, create_patch=True, lines_of_context=0)
In this function, lines_of_context could be added to the function:
Line 188 in 64ec0b1
**kwargs: Any, |
and treated the same as the create_patch variable:
Line 237 in 64ec0b1
if create_patch: |
args.append(f"-U{lines_of_context}")
Is this something that could be added?
Metadata
Metadata
Assignees
Labels
No labels