Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

How to disable check for renames? #1194

New issue

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

Closed
dudicoco opened this issue Mar 11, 2021 · 0 comments
Closed

How to disable check for renames? #1194

dudicoco opened this issue Mar 11, 2021 · 0 comments

Comments

@dudicoco
Copy link

Hi,

I've tried to use the following to disable git diff renamed files search:

repo.index.diff('origin/HEAD', no_renames=True)

This did not work, and after some digging, i've found that GitPython hardcodes the -M flag:
https://github.com/gitpython-developers/GitPython/blob/master/git/diff.py#L106

Why is this flag hardcoded and is there a way around it?

Thanks

@Byron Byron closed this as completed Mar 12, 2021
@gitpython-developers gitpython-developers locked and limited conversation to collaborators Mar 12, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Development

No branches or pull requests

2 participants