]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/am.c
advice: remove read uses of most global `advice_` variables
[thirdparty/git.git] / builtin / am.c
index 0c2ad96b70eef408492987a8b358887cc56dcb9c..ff7dd33fcd46f1a0e32e0ea934124eb73ff4430f 100644 (file)
@@ -1820,7 +1820,7 @@ static void am_run(struct am_state *state, int resume)
                        printf_ln(_("Patch failed at %s %.*s"), msgnum(state),
                                linelen(state->msg), state->msg);
 
-                       if (advice_amworkdir)
+                       if (advice_enabled(ADVICE_AM_WORK_DIR))
                                advise(_("Use 'git am --show-current-patch=diff' to see the failed patch"));
 
                        die_user_resolve(state);