Skip to content

-x $file only removes the diff body from git diff output #27

@brianjmurrell

Description

@brianjmurrell
git diff v3.3..HEAD | filterdiff -p 1 -x README.vin
...
diff --git a/README.vin b/README.vin
index d7a1ea2..7c298d7 100644
diff --git a/autogen.sh b/autogen.sh
...

Leaving those two lines in confuses patch:

The text leading up to this was:
--------------------------
|diff --git a/README.vin b/README.vin
|index d7a1ea2..7c298d7 100644
--------------------------
File to patch: 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions