mirror of
https://github.com/git/git.git
synced 2026-01-10 10:13:33 +00:00
Merge branch 'xw/am-empty'
"git am" learns "--empty=(stop|drop|keep)" option to tweak what is done to a piece of e-mail without a patch in it. * xw/am-empty: am: support --allow-empty to record specific empty patches am: support --empty=<option> to handle empty patches doc: git-format-patch: describe the option --always
This commit is contained in:
@@ -1218,17 +1218,23 @@ static void show_merge_in_progress(struct wt_status *s,
|
||||
static void show_am_in_progress(struct wt_status *s,
|
||||
const char *color)
|
||||
{
|
||||
int am_empty_patch;
|
||||
|
||||
status_printf_ln(s, color,
|
||||
_("You are in the middle of an am session."));
|
||||
if (s->state.am_empty_patch)
|
||||
status_printf_ln(s, color,
|
||||
_("The current patch is empty."));
|
||||
if (s->hints) {
|
||||
if (!s->state.am_empty_patch)
|
||||
am_empty_patch = s->state.am_empty_patch;
|
||||
if (!am_empty_patch)
|
||||
status_printf_ln(s, color,
|
||||
_(" (fix conflicts and then run \"git am --continue\")"));
|
||||
status_printf_ln(s, color,
|
||||
_(" (use \"git am --skip\" to skip this patch)"));
|
||||
if (am_empty_patch)
|
||||
status_printf_ln(s, color,
|
||||
_(" (use \"git am --allow-empty\" to record this patch as an empty commit)"));
|
||||
status_printf_ln(s, color,
|
||||
_(" (use \"git am --abort\" to restore the original branch)"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user