X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-read-tree.c;h=8e0273864d6af8de2a31868dcfbeda29cd36c2fc;hb=9996983c9c35353f352ef7c1abd9b3d2fbb21114;hp=0706c958181c54aeb18d91f6e3dbe7c9f572b94d;hpb=de813435621b914f2b3e148c6cc94ab0066300c3;p=git.git diff --git a/builtin-read-tree.c b/builtin-read-tree.c index 0706c9581..8e0273864 100644 --- a/builtin-read-tree.c +++ b/builtin-read-tree.c @@ -170,7 +170,7 @@ int cmd_read_tree(int argc, const char **argv, const char *unused_prefix) die("more than one --exclude-per-directory are given."); dir = xcalloc(1, sizeof(*opts.dir)); - dir->show_ignored = 1; + dir->flags |= DIR_SHOW_IGNORED; dir->exclude_per_dir = arg + 24; opts.dir = dir; /* We do not need to nor want to do read-directory @@ -206,7 +206,7 @@ int cmd_read_tree(int argc, const char **argv, const char *unused_prefix) break; case 2: opts.fn = twoway_merge; - opts.initial_checkout = !active_nr; + opts.initial_checkout = is_cache_unborn(); break; case 3: default: