Skip to content

How to disable check for renames? #1194

@dudicoco

Description

@dudicoco

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions