Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Documentation: Correct minor typo in git-add documentation.
[gitweb.git]
/
builtin-apply.c
diff --git
a/builtin-apply.c
b/builtin-apply.c
index abe35387156cf2774c8bc619d74b93c5e83285a8..bec95d6c8aa60ac40718f52da5a8f9603330dadb 100644
(file)
--- a/
builtin-apply.c
+++ b/
builtin-apply.c
@@
-1539,7
+1539,8
@@
static int apply_line(char *output, const char *patch, int plen)
int need_fix_leading_space = 0;
char *buf;
- if ((new_whitespace != strip_whitespace) || !whitespace_error) {
+ if ((new_whitespace != strip_whitespace) || !whitespace_error ||
+ *patch != '+') {
memcpy(output, patch + 1, plen);
return plen;
}