style(git): history alias

This commit is contained in:
TheK4n 2023-11-27 10:16:54 +03:00
parent 1571c5cd9c
commit 2e429ca9b4

View File

@ -38,7 +38,7 @@
br = branch br = branch
bm = branch --merged bm = branch --merged
bn = branch --no-merged bn = branch --no-merged
history = log --pretty=format:\"%Cgreen%h %Creset%cd %Cblue[%cn] %Creset%s%C(yellow)%d%C(reset)\" --graph --date=relative --decorate --color=always history = log --pretty=format:\"%Cgreen%h %Creset%cd %Cblue[%cn](%G?) %Creset%s%C(yellow)%d%C(reset)\" --graph --date=relative --decorate --color=always
hist = history --all hist = history --all
hs = "!git history -n 10" hs = "!git history -n 10"
df = "!f() { git log --pretty=format:\"%h %cd [%cn] %s%d\" --date=relative | fzf | awk '{print $1}' | xargs -I {} git diff {}^ {}; }; f" df = "!f() { git log --pretty=format:\"%h %cd [%cn] %s%d\" --date=relative | fzf | awk '{print $1}' | xargs -I {} git diff {}^ {}; }; f"