This did not work, and after some digging, i've found that GitPython hardcodes the -M flag:
\nhttps://github.com/gitpython-developers/GitPython/blob/master/git/diff.py#L106
Why is this flag hardcoded and is there a way around it?
\nThanks
","upvoteCount":1,"answerCount":3,"acceptedAnswer":{"@type":"Answer","text":"With this API there is no way around it unless the git command is used directly such as in repo.git.diff(…).
\nIf there is motivation, a PR could be added to disable rename tracking which I presume is in the interest of increased performance.
-
|
Hi, I've tried to use the following to disable git diff renamed files search: This did not work, and after some digging, i've found that GitPython hardcodes the Why is this flag hardcoded and is there a way around it? Thanks |
Beta Was this translation helpful? Give feedback.
-
|
With this API there is no way around it unless the git command is used directly such as in |
Beta Was this translation helpful? Give feedback.
-
|
Hello! I've hit this issue as well. I'd like to try the repo.git.diff() approach as a workaround. Using the results from repo.git.diff(), is there an easy way to build a DiffIndex()? |
Beta Was this translation helpful? Give feedback.
-
|
would also like for this to be added! |
Beta Was this translation helpful? Give feedback.
With this API there is no way around it unless the git command is used directly such as in
repo.git.diff(…).If there is motivation, a PR could be added to disable rename tracking which I presume is in the interest of increased performance.