Code

Merge branch 'nd/maint-ignore-exclude' into nd/ignore-might-be-precious
authorJunio C Hamano <gitster@pobox.com>
Mon, 28 Nov 2011 18:41:43 +0000 (10:41 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 28 Nov 2011 18:41:43 +0000 (10:41 -0800)
* nd/maint-ignore-exclude:
  checkout,merge: loosen overwriting untracked file check based on info/exclude

1  2 
builtin/checkout.c
builtin/merge.c

index 2a8077242500d54ac50d5829a86b14803fc69126,2b90e6b5e21dc64132e68c66e4f7430c49724441..51840b9784f0daec21087ec101304eaa6cbf73cd
@@@ -411,10 -401,10 +411,10 @@@ static int merge_working_tree(struct ch
                topts.fn = twoway_merge;
                topts.dir = xcalloc(1, sizeof(*topts.dir));
                topts.dir->flags |= DIR_SHOW_IGNORED;
-               topts.dir->exclude_per_dir = ".gitignore";
+               setup_standard_excludes(topts.dir);
                tree = parse_tree_indirect(old->commit ?
                                           old->commit->object.sha1 :
 -                                         (unsigned char *)EMPTY_TREE_SHA1_BIN);
 +                                         EMPTY_TREE_SHA1_BIN);
                init_tree_desc(&trees[0], tree->buffer, tree->size);
                tree = parse_tree_indirect(new->commit->object.sha1);
                init_tree_desc(&trees[1], tree->buffer, tree->size);
diff --cc builtin/merge.c
Simple merge