Merge branch 'nd/maint-ignore-exclude' into maint-1.7.7
authorJunio C Hamano <gitster@pobox.com>
Wed, 14 Dec 2011 05:47:08 +0000 (21:47 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Dec 2011 05:47:08 +0000 (21:47 -0800)
* nd/maint-ignore-exclude:
checkout,merge: loosen overwriting untracked file check based on info/exclude

builtin/checkout.c
builtin/merge.c
index a7a493cecf08b20f32e4161dd5009fd2c3b97448..7ea9f29aa6d24edf44431161208a306798e69623 100644 (file)
@@ -411,7 +411,7 @@ static int merge_working_tree(struct checkout_opts *opts,
                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 :
                                           EMPTY_TREE_SHA1_BIN);
index 581f494aee01f97bb87a94dbfd1fba4d14afaa69..b22a8422381e73fa410d0c27a70bb9ef6cdc9232 100644 (file)
@@ -759,7 +759,7 @@ int checkout_fast_forward(const unsigned char *head, const unsigned char *remote
        memset(&t, 0, sizeof(t));
        memset(&dir, 0, sizeof(dir));
        dir.flags |= DIR_SHOW_IGNORED;
-       dir.exclude_per_dir = ".gitignore";
+       setup_standard_excludes(&dir);
        opts.dir = &dir;
 
        opts.head_idx = 1;