diff options
| author | Junio C Hamano <gitster@pobox.com> | 2020-02-14 12:54:19 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2020-02-14 12:54:19 -0800 |
| commit | daef1b300b07c3d17d47c3bf01ebde28b62ff3fe (patch) | |
| tree | 3907573bbdd40095398e9cd159d3e971d4233a18 /advice.c | |
| parent | d8437c57fa0752716dde2d3747e7c22bf7ce2e41 (diff) | |
| parent | 887a0fd57336dc5ff3ac28b6de0be91278e9e179 (diff) | |
| download | git-daef1b300b07c3d17d47c3bf01ebde28b62ff3fe.tar.gz | |
Merge branch 'hw/advice-add-nothing'
Two help messages given when "git add" notices the user gave it
nothing to add have been updated to use advise() API.
* hw/advice-add-nothing:
add: change advice config variables used by the add API
add: use advise function to display hints
Diffstat (limited to 'advice.c')
| -rw-r--r-- | advice.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -31,6 +31,8 @@ int advice_graft_file_deprecated = 1; int advice_checkout_ambiguous_remote_branch_name = 1; int advice_nested_tag = 1; int advice_submodule_alternate_error_strategy_die = 1; +int advice_add_ignored_file = 1; +int advice_add_empty_pathspec = 1; static int advice_use_color = -1; static char advice_colors[][COLOR_MAXLEN] = { @@ -91,6 +93,8 @@ static struct { { "checkoutAmbiguousRemoteBranchName", &advice_checkout_ambiguous_remote_branch_name }, { "nestedTag", &advice_nested_tag }, { "submoduleAlternateErrorStrategyDie", &advice_submodule_alternate_error_strategy_die }, + { "addIgnoredFile", &advice_add_ignored_file }, + { "addEmptyPathspec", &advice_add_empty_pathspec }, /* make this an alias for backward compatibility */ { "pushNonFastForward", &advice_push_update_rejected } |
