Skip to content

Commit b7f39a3

Browse files
committed
Merge branch 'rs/add-p-worktree-mode-prompt-fix'
Fix another UI regression in the reimplemented "add -p". * rs/add-p-worktree-mode-prompt-fix: add -p: fix worktree patch mode prompts
2 parents 5ff02db + f6f0ee2 commit b7f39a3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

add-patch.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,10 @@ static struct patch_mode patch_mode_worktree_head = {
191191
.apply_check_args = { "-R", NULL },
192192
.is_reverse = 1,
193193
.prompt_mode = {
194-
N_("Discard mode change from index and worktree [y,n,q,a,d%s,?]? "),
195-
N_("Discard deletion from index and worktree [y,n,q,a,d%s,?]? "),
196-
N_("Discard addition from index and worktree [y,n,q,a,d%s,?]? "),
197-
N_("Discard this hunk from index and worktree [y,n,q,a,d%s,?]? "),
194+
N_("Discard mode change from worktree [y,n,q,a,d%s,?]? "),
195+
N_("Discard deletion from worktree [y,n,q,a,d%s,?]? "),
196+
N_("Discard addition from worktree [y,n,q,a,d%s,?]? "),
197+
N_("Discard this hunk from worktree [y,n,q,a,d%s,?]? "),
198198
},
199199
.edit_hunk_hint = N_("If the patch applies cleanly, the edited hunk "
200200
"will immediately be marked for discarding."),
@@ -213,10 +213,10 @@ static struct patch_mode patch_mode_worktree_nothead = {
213213
.apply_args = { NULL },
214214
.apply_check_args = { NULL },
215215
.prompt_mode = {
216-
N_("Apply mode change to index and worktree [y,n,q,a,d%s,?]? "),
217-
N_("Apply deletion to index and worktree [y,n,q,a,d%s,?]? "),
218-
N_("Apply addition to index and worktree [y,n,q,a,d%s,?]? "),
219-
N_("Apply this hunk to index and worktree [y,n,q,a,d%s,?]? "),
216+
N_("Apply mode change to worktree [y,n,q,a,d%s,?]? "),
217+
N_("Apply deletion to worktree [y,n,q,a,d%s,?]? "),
218+
N_("Apply addition to worktree [y,n,q,a,d%s,?]? "),
219+
N_("Apply this hunk to worktree [y,n,q,a,d%s,?]? "),
220220
},
221221
.edit_hunk_hint = N_("If the patch applies cleanly, the edited hunk "
222222
"will immediately be marked for applying."),

0 commit comments

Comments
 (0)