From: Christian Couder Date: Thu, 24 Dec 2015 21:11:50 GMT Subject: Re: [PATCH v3 04/11] update-index: add untracked cache notifications Message-ID: In-Reply-To: On Thu, Dec 24, 2015 at 11:01 AM, Duy Nguyen wrote: > On Thu, Dec 24, 2015 at 4:03 AM, Christian Couder > wrote: >> @@ -1135,10 +1135,16 @@ int cmd_update_index(int argc, const char **argv, const char *prefix) >> } >> add_untracked_ident(the_index.untracked); >> the_index.cache_changed |= UNTRACKED_CHANGED; >> - } else if (untracked_cache == UC_DISABLE && the_index.untracked) { >> - free_untracked_cache(the_index.untracked); >> - the_index.untracked = NULL; >> - the_index.cache_changed |= UNTRACKED_CHANGED; >> + if (verbose) >> + printf(_("Untracked cache enabled for '%s'\n"), get_git_work_tree()); > > Nit. If you use report(), then you can skip "if (verbose)" because > it's done inside report(). Ok, will do. Thanks, Christian.