File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -225,8 +225,12 @@ export alias gupav = git pull --rebase --autostash --verbose
225225export alias gwch = git whatchanged - p -- abbrev-commit -- pretty=medium
226226
227227export alias gwt = git worktree
228- export def gwta [path : path , branch : string ] {
229- git worktree add $path $branch
228+ export def gwta [path : path , branch ?: string ] {
229+ if $branch != null {
230+ git worktree add $path $branch
231+ } else {
232+ git worktree add $path
233+ }
230234}
231235export alias gwtls = git worktree list
232236export alias gwtmv = git worktree move
@@ -239,3 +243,4 @@ export alias gamc = git am --continue
239243export alias gams = git am -- skip
240244export alias gama = git am -- abort
241245export alias gamscp = git am -- show-current-patch
246+
You can’t perform that action at this time.
0 commit comments