diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-09-03 15:53:37 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-09-03 15:53:37 -0700 |
commit | 831287d37c059d71a20c3c164bc743217114d94e (patch) | |
tree | afe1ac07d7898100ea4bdb3dd9282899596fe609 /sequencer.c | |
parent | 12d858aeb45f6eae3eaecb49ccb6f61affca54cd (diff) | |
parent | 4bee958479bed1d3a8f20a75f33422ee49939dbf (diff) | |
download | git-831287d37c059d71a20c3c164bc743217114d94e.tar.gz |
Merge branch 'cw/cherry-pick-allow-empty-message'
"git cherry-pick" by default stops when it sees a commit without any
log message. The "--allow-empty-message" option can be used to
silently proceed.
* cw/cherry-pick-allow-empty-message:
cherry-pick: add --allow-empty-message option
Diffstat (limited to 'sequencer.c')
-rw-r--r-- | sequencer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sequencer.c b/sequencer.c index bf078f274b..1ea5293f6e 100644 --- a/sequencer.c +++ b/sequencer.c @@ -311,6 +311,9 @@ static int run_git_commit(const char *defmsg, struct replay_opts *opts, if (allow_empty) argv_array_push(&array, "--allow-empty"); + if (opts->allow_empty_message) + argv_array_push(&array, "--allow-empty-message"); + rc = run_command_v_opt(array.argv, RUN_GIT_CMD); argv_array_clear(&array); return rc; |