mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 08:28:50 +02:00
Add git switch --create
This commit is contained in:
parent
8a3dd90e35
commit
2edc86e9a0
2 changed files with 20 additions and 10 deletions
|
@ -82,6 +82,13 @@ describe('Git', function() {
|
|||
'{"branches":{"main":{"target":"C1","id":"main"},"side":{"target":"C1","id":"side"}},"commits":{"C0":{"parents":[],"id":"C0","rootCommit":true},"C1":{"parents":["C0"],"id":"C1"}},"HEAD":{"target":"side","id":"HEAD"}}'
|
||||
);
|
||||
});
|
||||
|
||||
it('to a branch with --create option', function() {
|
||||
return expectTreeAsync(
|
||||
'git switch --create side',
|
||||
'{"branches":{"main":{"target":"C1","id":"main"},"side":{"target":"C1","id":"side"}},"commits":{"C0":{"parents":[],"id":"C0","rootCommit":true},"C1":{"parents":["C0"],"id":"C1"}},"HEAD":{"target":"side","id":"HEAD"}}'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
it('Rebases', function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue