Skip to content

Commit 3b42565

Browse files
committed
Merge branch 'nd/maint-ignore-exclude' into maint-1.7.7
* nd/maint-ignore-exclude: checkout,merge: loosen overwriting untracked file check based on info/exclude
2 parents 7857e32 + fc001b5 commit 3b42565

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

builtin/checkout.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ static int merge_working_tree(struct checkout_opts *opts,
411411
topts.fn = twoway_merge;
412412
topts.dir = xcalloc(1, sizeof(*topts.dir));
413413
topts.dir->flags |= DIR_SHOW_IGNORED;
414-
topts.dir->exclude_per_dir = ".gitignore";
414+
setup_standard_excludes(topts.dir);
415415
tree = parse_tree_indirect(old->commit ?
416416
old->commit->object.sha1 :
417417
EMPTY_TREE_SHA1_BIN);

builtin/merge.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ int checkout_fast_forward(const unsigned char *head, const unsigned char *remote
759759
memset(&t, 0, sizeof(t));
760760
memset(&dir, 0, sizeof(dir));
761761
dir.flags |= DIR_SHOW_IGNORED;
762-
dir.exclude_per_dir = ".gitignore";
762+
setup_standard_excludes(&dir);
763763
opts.dir = &dir;
764764

765765
opts.head_idx = 1;

0 commit comments

Comments
 (0)