On Thu, Dec 24, 2015 at 11:01 AM, Duy Nguyen [off-list ref] wrote:
On Thu, Dec 24, 2015 at 4:03 AM, Christian Couder
[off-list ref] wrote:
quoted
@@ -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.