Allow some aliases to work on empty commits

This commit is contained in:
Andrew Tomaka 2024-02-02 11:14:17 -05:00
parent a2955fb51d
commit cc7cdf95ca
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@
hist-tags = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative hist-tags = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
most-recent-by-branch = for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))' most-recent-by-branch = for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'
root = rev-parse --show-toplevel root = rev-parse --show-toplevel
add-trailer = commit --no-edit --amend --trailer add-trailer = commit --allow-empty --no-edit --amend --trailer
[commit] [commit]

View file

@ -21,7 +21,7 @@ alias gaa="git add --all"
alias gap="git add --patch" alias gap="git add --patch"
alias gb="git branch" alias gb="git branch"
alias gc="git commit" alias gc="git commit"
alias gca="git commit --amend" alias gca="git commit --amend --allow-empty"
alias gcl="git commit -m 'Linting'" alias gcl="git commit -m 'Linting'"
alias gcn="git commit --allow-empty --message 'noop'" alias gcn="git commit --allow-empty --message 'noop'"
alias gco="advanced-git-checkout" alias gco="advanced-git-checkout"