summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorflorian <florian>2017-05-30 06:55:40 +0000
committerflorian <florian>2017-05-30 06:55:40 +0000
commit941c9f9ccb4311940f004d87429a813739ac24b5 (patch)
treea7d05c622a4c56c71c5ac2d5d0bf515e1f47fcff
parent320acd7b3c9e36ec2de9fb16bf17a62a047c94b7 (diff)
downloadpatch-941c9f9ccb4311940f004d87429a813739ac24b5.tar
patch-941c9f9ccb4311940f004d87429a813739ac24b5.tar.gz
Unbreak previous for git diffs that do not have the a/ prefix.
Found the hard way be me, OK tedu
-rw-r--r--pch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pch.c b/pch.c
index 2619b4e..2e3974c 100644
--- a/pch.c
+++ b/pch.c
@@ -327,7 +327,7 @@ intuit_diff_type(void)
free(revision);
revision = NULL;
}
- } else if (strnEQ(s, "diff --git ", 11))
+ } else if (strnEQ(s, "diff --git a/", 13))
piece_of_git = 1;
if ((!diff_type || diff_type == ED_DIFF) &&
first_command_line >= 0 &&