summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormediocregopher <mediocregopher@gmail.com>2023-08-16 14:22:09 +0200
committermediocregopher <mediocregopher@gmail.com>2023-08-16 14:22:09 +0200
commitdde4ecfeb0fdb28b0ee360e4846725226d044c3a (patch)
tree28a99798848521fdcd6ae0647a8c4d61467885e2
parentf19039269260c61cd6471b8a4341764ce48dc96d (diff)
Fix git main-branch once and for all
-rw-r--r--base/gitconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/gitconfig b/base/gitconfig
index b4cd420..eb1ca38 100644
--- a/base/gitconfig
+++ b/base/gitconfig
@@ -7,7 +7,7 @@
[alias]
# main-branch outputs 'main' if there is a main branch, otherwise it outputs
# 'master'
- main-branch = "!if git rev-parse --verify main 2>&1 >/dev/null; then echo 'main'; else echo 'master'; fi"
+ main-branch = "!if git rev-parse --verify main >/dev/null 2>&1; then echo 'main'; else echo 'master'; fi"
#Shows diff in log
ll = log --stat --abbrev-commit