Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 8ceb6fb

Browse files
kjbracey2gitster
authored andcommitted
am: replace uses of --resolved with --continue
git am was previously modified to provide --continue for consistency with rebase, merge etc, and the documentation changed to showing --continue as the primary form. Complete the work by replacing remaining uses of --resolved by --continue, most notably in suggested command reminders. Signed-off-by: Kevin Bracey <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 85318f5 commit 8ceb6fb

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

Documentation/git-am.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ default. You can use `--no-utf8` to override this.
132132
--resolvemsg=<msg>::
133133
When a patch failure occurs, <msg> will be printed
134134
to the screen before exiting. This overrides the
135-
standard message informing you to use `--resolved`
135+
standard message informing you to use `--continue`
136136
or `--skip` to handle the failure. This is solely
137137
for internal use between 'git rebase' and 'git am'.
138138

@@ -176,7 +176,7 @@ aborts in the middle. You can recover from this in one of two ways:
176176

177177
. hand resolve the conflict in the working directory, and update
178178
the index file to bring it into a state that the patch should
179-
have produced. Then run the command with the '--resolved' option.
179+
have produced. Then run the command with the '--continue' option.
180180

181181
The command refuses to process new mailboxes until the current
182182
operation is finished, so if you decide to start over from scratch,

Documentation/user-manual.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1835,7 +1835,7 @@ Once the index is updated with the results of the conflict
18351835
resolution, instead of creating a new commit, just run
18361836

18371837
-------------------------------------------------
1838-
$ git am --resolved
1838+
$ git am --continue
18391839
-------------------------------------------------
18401840

18411841
and Git will create the commit for you and continue applying the

git-am.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ SUBDIRECTORY_OK=Yes
66
OPTIONS_KEEPDASHDASH=
77
OPTIONS_SPEC="\
88
git am [options] [(<mbox>|<Maildir>)...]
9-
git am [options] (--resolved | --skip | --abort)
9+
git am [options] (--continue | --skip | --abort)
1010
--
1111
i,interactive run interactively
1212
b,binary* (historical option -- no-op)
@@ -102,7 +102,7 @@ stop_here_user_resolve () {
102102
printf '%s\n' "$resolvemsg"
103103
stop_here $1
104104
fi
105-
eval_gettextln "When you have resolved this problem, run \"\$cmdline --resolved\".
105+
eval_gettextln "When you have resolved this problem, run \"\$cmdline --continue\".
106106
If you prefer to skip this patch, run \"\$cmdline --skip\" instead.
107107
To restore the original branch and stop patching, run \"\$cmdline --abort\"."
108108

@@ -523,7 +523,7 @@ Use \"git am --abort\" to remove it.")"
523523
esac
524524
fi
525525

526-
# Make sure we are not given --skip, --resolved, nor --abort
526+
# Make sure we are not given --skip, --continue, nor --abort
527527
test "$skip$resolved$abort" = "" ||
528528
die "$(gettext "Resolve operation not in progress, we are not resuming.")"
529529

@@ -670,7 +670,7 @@ do
670670
# - patch is the patch body.
671671
#
672672
# When we are resuming, these files are either already prepared
673-
# by the user, or the user can tell us to do so by --resolved flag.
673+
# by the user, or the user can tell us to do so by --continue flag.
674674
case "$resume" in
675675
'')
676676
if test -f "$dotest/rebasing"

t/t7512-status-help.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ test_expect_success 'status in an am session: file already exists' '
510510
cat >expected <<-\EOF &&
511511
# On branch am_already_exists
512512
# You are in the middle of an am session.
513-
# (fix conflicts and then run "git am --resolved")
513+
# (fix conflicts and then run "git am --continue")
514514
# (use "git am --skip" to skip this patch)
515515
# (use "git am --abort" to restore the original branch)
516516
#
@@ -532,7 +532,7 @@ test_expect_success 'status in an am session: file does not exist' '
532532
cat >expected <<-\EOF &&
533533
# On branch am_not_exists
534534
# You are in the middle of an am session.
535-
# (fix conflicts and then run "git am --resolved")
535+
# (fix conflicts and then run "git am --continue")
536536
# (use "git am --skip" to skip this patch)
537537
# (use "git am --abort" to restore the original branch)
538538
#

wt-status.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ static void show_am_in_progress(struct wt_status *s,
826826
if (advice_status_hints) {
827827
if (!state->am_empty_patch)
828828
status_printf_ln(s, color,
829-
_(" (fix conflicts and then run \"git am --resolved\")"));
829+
_(" (fix conflicts and then run \"git am --continue\")"));
830830
status_printf_ln(s, color,
831831
_(" (use \"git am --skip\" to skip this patch)"));
832832
status_printf_ln(s, color,

0 commit comments

Comments
 (0)