From 282732392fde7c6e23b45f1cf9143158c099a05e Mon Sep 17 00:00:00 2001 From: Ian MacFarlane Date: Thu, 6 Feb 2020 13:04:31 -0500 Subject: [PATCH] Clarify language when creating new git branch When using the git extension, the intent is clear when clicking on "+ Create new branch..." and immediately being prompted "Please provide a branch name". But, when clicking on "+ Create a new branch from..." the intent is ambiguous, since the statement "Please provide a branch name" could refer to the branch from which you wish to base the new branch on or the name of the new branch, the latter being what actually happens. By specifying "Please provide a *new* branch name...", the intent is clear: the prompt is asking for the name you wish to call the new branch. --- extensions/git/src/commands.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/git/src/commands.ts b/extensions/git/src/commands.ts index 20f7ddf284a65..dba21595ea8ab 100644 --- a/extensions/git/src/commands.ts +++ b/extensions/git/src/commands.ts @@ -1620,7 +1620,7 @@ export class CommandCenter { const rawBranchName = defaultName || await window.showInputBox({ placeHolder: localize('branch name', "Branch name"), - prompt: localize('provide branch name', "Please provide a branch name"), + prompt: localize('provide branch name', "Please provide a new branch name"), value: initialValue, ignoreFocusOut: true, validateInput: (name: string) => {