mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-26 07:58:34 +02:00
much better interaction on levels keys with tabs
This commit is contained in:
parent
12e921a781
commit
c522722513
4 changed files with 56 additions and 2 deletions
|
@ -685,6 +685,13 @@ var commandConfig = {
|
|||
var refspecParts = firstArg.split(':');
|
||||
source = refspecParts[0];
|
||||
destination = validateBranchName(engine, refspecParts[1]);
|
||||
if (source === "" && !engine.origin.refs[options.destination]) {
|
||||
throw new GitError({
|
||||
msg: intl.todo(
|
||||
'cannot delete branch ' + options.destination + ' which doesnt exist'
|
||||
)
|
||||
});
|
||||
}
|
||||
} else {
|
||||
if (firstArg) {
|
||||
// we are using this arg as destination AND source. the dest branch
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue