summaryrefslogtreecommitdiff
path: root/src/diff.c
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2012-05-24 17:43:17 -0700
committerVicent Martí <tanoku@gmail.com>2012-05-24 17:43:17 -0700
commit4728b55ac66cde7f8c104f0a8cc350d96a530f33 (patch)
tree3b1fc3f206d156b356b4a342ea94eadad99192f1 /src/diff.c
parenta4452eb1b929b95f69768d398008f6f8844941e4 (diff)
parent2a99df6909af4c93ce2741ddc5d15a7f52270f28 (diff)
downloadlibgit2-4728b55ac66cde7f8c104f0a8cc350d96a530f33.tar.gz
Merge pull request #729 from arrbee/fix-728
Fix bugs for status
Diffstat (limited to 'src/diff.c')
-rw-r--r--src/diff.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/diff.c b/src/diff.c
index 0b2f8fb50..90baa9588 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -342,6 +342,7 @@ static git_diff_list *git_diff_list_alloc(
git_attr_fnmatch *match = git__calloc(1, sizeof(git_attr_fnmatch));
if (!match)
goto fail;
+ match->flags = GIT_ATTR_FNMATCH_ALLOWSPACE;
ret = git_attr_fnmatch__parse(match, &diff->pool, NULL, &pattern);
if (ret == GIT_ENOTFOUND) {
git__free(match);