Skip to content

Commit 2bb0fe4

Browse files
author
Bhavi Dhingra
committed
refactor(gswitch): move clear ahead
1 parent 2d7083d commit 2bb0fe4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/gswitch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ main () {
1414

1515
__assertgitrepo
1616

17+
clear
1718
local branchName="$(__select_local_branch "gswitch" "select local branch to switch to" "exit")"
1819
__exit_if_empty_str "${branchName}" ${SUCCESS}
1920

20-
clear
2121
git switch "${branchName}"
2222
}
2323

cmd/gswitchremote

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ main () {
1414

1515
__assertgitrepo
1616

17+
clear
1718
local branchName="$(__select_remote_branch "gswitchremote" "select remote branch to switch to" "exit")"
1819
__exit_if_empty_str "${branchName}" ${SUCCESS}
1920

20-
clear
2121
git switch "${branchName}"
2222
}
2323

0 commit comments

Comments
 (0)