We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b09b60c commit ba9a4c1Copy full SHA for ba9a4c1
1 file changed
aliases/git/git-aliases.nu
@@ -225,8 +225,12 @@ export alias gupav = git pull --rebase --autostash --verbose
225
export alias gwch = git whatchanged -p --abbrev-commit --pretty=medium
226
227
export alias gwt = git worktree
228
-export def gwta [path: path, branch: string] {
229
- git worktree add $path $branch
+export def gwta [path: path, branch?: string] {
+ if $branch != null {
230
+ git worktree add $path $branch
231
+ } else {
232
+ git worktree add $path
233
+ }
234
}
235
export alias gwtls = git worktree list
236
export alias gwtmv = git worktree move
@@ -239,3 +243,4 @@ export alias gamc = git am --continue
239
243
export alias gams = git am --skip
240
244
export alias gama = git am --abort
241
245
export alias gamscp = git am --show-current-patch
246
+
0 commit comments