Skip to content

Commit d379cba

Browse files
committed
➖ remove gstat dependency from git-aliases
1 parent 759218d commit d379cba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

aliases/git/git-aliases.nu

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
# returns the name of the current branch
12
export def git_current_branch [] {
2-
(gstat).branch
3+
^git rev-parse --abbrev-ref HEAD
34
}
45

56
export def git_main_branch [] {

0 commit comments

Comments
 (0)