patchutils icon indicating copy to clipboard operation
patchutils copied to clipboard

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

Open brianjmurrell opened this issue 5 years ago • 0 comments

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: 

brianjmurrell avatar Jun 14 '19 13:06 brianjmurrell