git: consolidate git log commands

This commit is contained in:
Charles Gould 2024-06-07 14:32:49 -05:00
parent 47ac25f0de
commit 50bdae07e6
2 changed files with 1 additions and 4 deletions

View File

@ -20,7 +20,6 @@ abbr -a gdc 'git diff --cached'
abbr -a gdh 'git diff --cached HEAD~' abbr -a gdh 'git diff --cached HEAD~'
abbr -a gf 'git fetch --prune' abbr -a gf 'git fetch --prune'
abbr -a gl 'git logsearch -10' abbr -a gl 'git logsearch -10'
abbr -a glo 'git log --oneline -10'
abbr -a gr 'git restore' abbr -a gr 'git restore'
abbr -a gs 'git status' abbr -a gs 'git status'
abbr -a gst 'git stash' abbr -a gst 'git stash'

View File

@ -1,9 +1,7 @@
[alias] [alias]
aliases = config --get-regexp --includes alias aliases = config --get-regexp --includes alias
branchsort = branch --sort='-committerdate' --format='%(HEAD) %(color:blue)%(committerdate:short)%(color:reset) %(if)%(worktreepath)%(then)%(color:reverse yellow)%(refname:short)%(color:reset)%(else)%(color:yellow)%(refname:short)%(color:reset)%(end) %(color:green)%(upstream:short)%(color:reset)' branchsort = branch --sort='-committerdate' --format='%(HEAD) %(color:blue)%(committerdate:short)%(color:reset) %(if)%(worktreepath)%(then)%(color:reverse yellow)%(refname:short)%(color:reset)%(else)%(color:yellow)%(refname:short)%(color:reset)%(end) %(color:green)%(upstream:short)%(color:reset)'
can = commit --amend --no-edit logsearch = log --color=always --pretty=tformat:'%C(blue)%cs %C(auto)%h%d %s%C(reset)'
cand = commit --amend --no-edit --date=now
logsearch = log --color=always --format=tformat:'%C(blue)%cs%C(reset) %C(yellow)%h%C(reset) %C(normal)%s%C(reset)'
rbi = rebase --interactive rbi = rebase --interactive
wipe = restore --staged --worktree wipe = restore --staged --worktree
[color "status"] [color "status"]