feat: add git snapshots, update helpers to work with wortrees

This commit is contained in:
Joe Fleming
2026-02-19 13:20:11 -07:00
parent ffd0ae92d3
commit 4dd974484f
2 changed files with 174 additions and 48 deletions

View File

@@ -20,7 +20,7 @@
gnc = goodness --cached
fa = fetch --all
pom = push origin master
b = "!git for-each-ref --sort=-committerdate refs/heads --format='%(authordate:short) %(color:red)%(objectname:short) %(color:yellow)%(refname:short)%(color:reset) (%(color:green)%(committerdate:relative)%(color:reset))'"
b = "!git for-each-ref --sort=-committerdate refs/heads --format='%(authordate:short) %(color:yellow)%(refname:short) %(color:red)%(objectname:short) %(color:reset) (%(color:green)%(committerdate:relative)%(color:reset))'"
ll = log --pretty='%C(yellow)%h %C(cyan)%cd %Cblue%aN%C(auto)%d %Creset%s' --graph --date=relative --topo-order --decorate
ds = diff --stat=160,120
dh1 = diff HEAD~1
@@ -45,6 +45,12 @@
prx = "!source ~/.githelpers && del_pr"
brx = "!source ~/.githelpers && clean_branches"
lbr = for-each-ref --sort='-committerdate:iso8601' --format=' %(committerdate:iso8601)%09%(refname)' refs/heads
snc = "!source ~/.githelpers && create_snap"
sna = "!source ~/.githelpers && apply_snap"
snl = "!source ~/.githelpers && list_snaps"
snS = "!source ~/.githelpers && show_snap"
snr = "!source ~/.githelpers && revert_snap"
snx = "!source ~/.githelpers && remove_snap"
[merge]
tool = vimdiff
ff = true