author | Junio C Hamano <gitster@pobox.com> | |
Wed, 14 Dec 2011 05:47:08 +0000 (21:47 -0800) | ||
committer | Junio 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
checkout,merge: loosen overwriting untracked file check based on info/exclude
1 | 2 | |||
---|---|---|---|---|
builtin/checkout.c | patch | | diff1 | | diff2 | | blob | history |
builtin/merge.c | patch | | diff1 | | diff2 | | blob | history |
diff --cc builtin/checkout.c
index a7a493cecf08b20f32e4161dd5009fd2c3b97448,2b90e6b5e21dc64132e68c66e4f7430c49724441..7ea9f29aa6d24edf44431161208a306798e69623
--- 1/builtin/checkout.c
--- 2/builtin/checkout.c
+++ b/builtin/checkout.c
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