From: Junio C Hamano Date: Mon, 5 Dec 2011 23:25:12 +0000 (-0800) Subject: Merge branch 'nd/maint-ignore-exclude' X-Git-Tag: v1.7.9-rc0~92 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9ef569791f967c1559b498d8f77a2c42a14be2ed;p=git.git Merge branch 'nd/maint-ignore-exclude' * nd/maint-ignore-exclude: checkout,merge: loosen overwriting untracked file check based on info/exclude --- 9ef569791f967c1559b498d8f77a2c42a14be2ed diff --cc builtin/checkout.c index 2a8077242,2b90e6b5e..51840b978 --- a/builtin/checkout.c +++ b/builtin/checkout.c @@@ -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);