Thread (18 messages) 18 messages, 3 authors, 2016-06-15

Re: [PATCH v3 04/11] update-index: add untracked cache notifications

flat view

From: Christian Couder <hidden>
Date: 2016-06-15 23:07:34

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help