diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-01-23 02:07:30 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-01-23 02:07:30 +0300 |
commit | 9403e5dcdd50661a31f7d5103c150a95ab9f0529 (patch) | |
tree | 6491823e49dc511bd079f416f0340618f80d8371 /builtin/commit.c | |
parent | 237a83a943029e90065b4bad35cadab43def59d3 (diff) | |
parent | 5c4f55f1f62b64f530bd135e5b248ceba7b95708 (diff) |
Merge branch 'hw/commit-advise-while-rejecting'
"git commit" gives output similar to "git status" when there is
nothing to commit, but without honoring the advise.statusHints
configuration variable, which has been corrected.
* hw/commit-advise-while-rejecting:
commit: honor advice.statusHints when rejecting an empty commit
Diffstat (limited to 'builtin/commit.c')
-rw-r--r-- | builtin/commit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/commit.c b/builtin/commit.c index aa1332308a..646e84547d 100644 --- a/builtin/commit.c +++ b/builtin/commit.c @@ -964,6 +964,7 @@ static int prepare_to_commit(const char *index_file, const char *prefix, */ if (!committable && whence != FROM_MERGE && !allow_empty && !(amend && is_a_merge(current_head))) { + s->hints = advice_status_hints; s->display_comment_prefix = old_display_comment_prefix; run_status(stdout, index_file, prefix, 0, s); if (amend) |