We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
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:
GitPython/git/diff.py
Line 188 in 64ec0b1
and treated the same as the create_patch variable:
Line 237 in 64ec0b1
args.append(f"-U{lines_of_context}")
Is this something that could be added?
The text was updated successfully, but these errors were encountered:
Able to be passed in with kwargs unified=0
Sorry, something went wrong.
No branches or pull requests
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:
GitPython/git/diff.py
Line 188 in 64ec0b1
and treated the same as the create_patch variable:
GitPython/git/diff.py
Line 237 in 64ec0b1
args.append(f"-U{lines_of_context}")
Is this something that could be added?
The text was updated successfully, but these errors were encountered: