]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/rm.c
advice: remove read uses of most global `advice_` variables
[thirdparty/git.git] / builtin / rm.c
index 8a24c715e02bab24098af5f3e354c631ee9abf3c..3b44b807e5fd804a7fec1b27a8ac40291de53fbf 100644 (file)
@@ -55,7 +55,7 @@ static void print_error_files(struct string_list *files_list,
                        strbuf_addf(&err_msg,
                                    "\n    %s",
                                    files_list->items[i].string);
-               if (advice_rm_hints)
+               if (advice_enabled(ADVICE_RM_HINTS))
                        strbuf_addstr(&err_msg, hints_msg);
                *errs = error("%s", err_msg.buf);
                strbuf_release(&err_msg);