summaryrefslogtreecommitdiff
path: root/.gitconfig
diff options
context:
space:
mode:
authorSteph Enders <steph@senders.io>2023-03-30 16:20:31 -0400
committerSteph Enders <steph@senders.io>2023-03-30 16:20:31 -0400
commit6422e91c326233097ca9d0079913f7e6b3eeb1d8 (patch)
tree31a52e49b7a61c040ffd644a4dceef1407c8ae05 /.gitconfig
parentda88a8ca391183a001ecc2e5a65009185087d99e (diff)
Fix sum method to be defaultBranch agnostic
Diffstat (limited to '.gitconfig')
-rw-r--r--.gitconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitconfig b/.gitconfig
index 083687f..1afad63 100644
--- a/.gitconfig
+++ b/.gitconfig
@@ -1,7 +1,7 @@
[alias]
st = status -sb
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --all
- sum = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative master..HEAD
+ sum = "!git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative \"$(git config --get init.defaultBranch)\"..HEAD"
co = checkout
df = diff
cp = cherry-pick