Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork939
-
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 |
BetaWas this translation helpful?Give feedback.
All reactions
With this API there is no way around it unless the git command is used directly such as inrepo.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.
Replies: 3 comments 13 replies
-
With this API there is no way around it unless the git command is used directly such as in |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
@Byron there are two issues here:
|
BetaWas this translation helpful?Give feedback.
All reactions
👍 3
-
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()? |
BetaWas this translation helpful?Give feedback.
All reactions
-
default behavior stays the same |
BetaWas this translation helpful?Give feedback.
All reactions
-
Maybe that could be generalized (and tested) to become a contribution - it looks like a genuine improvement without adding too much complexity. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Hey Bryon, So I took another look into the command line formatting issue. It turns out there is an option to format those single char kawrgs. original: produces the-M 75%: (space included) Including option to format single char kwargs: So it looks like all we need is to remove the default-M when the user wants to override it with either--find-renames= or-M or--no-renames
The remaining kwargs can be processed through the normal routines. |
BetaWas this translation helpful?Give feedback.
All reactions
-
It may also be worth adding thesplit_single_char_options option in the docs. |
BetaWas this translation helpful?Give feedback.
All reactions
-
I see, thanks so much for investigating this. A PR to improve the situation would definitely be welcome. Thank you. |
BetaWas this translation helpful?Give feedback.
All reactions
-
would also like for this to be added! |
BetaWas this translation helpful?Give feedback.
All reactions
-
Hey nwcm! The PR was finished last week. You can probably download the source now, or wait for the official 3.1.31 release. |
BetaWas this translation helpful?Give feedback.
All reactions
This discussion was converted from issue #1194 on March 12, 2021 01:57.