summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryushyin <yushyin@saga>2019-04-28 17:36:42 +0200
committeryushyin <yushyin@saga>2019-04-28 17:36:42 +0200
commit68ae5a04e141f57017eb9653607077673924af64 (patch)
treef99548163b2d58ed334820ad8bbdb07433bf71a5
parentd432cf106f210935c64a46aa5f24007e45852adc (diff)
downloaddotfiles-68ae5a04e141f57017eb9653607077673924af64.tar.gz
dotfiles-68ae5a04e141f57017eb9653607077673924af64.tar.xz
Git: Update log aliases
-rw-r--r--git/config14
1 files changed, 10 insertions, 4 deletions
diff --git a/git/config b/git/config
index 339ebe7..069f4f9 100644
--- a/git/config
+++ b/git/config
@@ -1,8 +1,14 @@
+[pretty]
+ log = %C(yellow)%h%C(reset) %C(normal)%s%C(reset) %C(dim white)%an%C(reset) %C(dim blue)(%ar)%C(reset) %C(auto)%d%C(reset)
+ oldlog = %C(blue)%h%C(reset) - %C(white)(%ar)%C(reset) %s %C(red)%d%C(reset) %C(bold blue)— %an%C(reset)
+
[alias]
- l = log --color --graph --format=format:'%C(blue)%h%C(reset) - %C(white)(%ar)%C(reset) %s %C(red)%d%C(reset) %C(bold blue)— %an%C(reset)' --abbrev-commit
- lg = log --color --graph -n 15 --format=format:'%C(blue)%h%C(reset) - %C(white)(%ar)%C(reset) %s %C(red)%d%C(reset) %C(bold blue)— %an%C(reset)' --abbrev-commit
- lf = log --color --graph --name-status --format=format:'%C(blue)%h%C(reset) - %C(white)(%ar)%C(reset) %s %C(red)%d%C(reset) %C(bold blue)— %an%C(reset)' --abbrev-commit
- ll = log --color --graph --all --format=format:'%C(blue)%h%C(reset) - %C(white)(%ar)%C(reset) %s %C(red)%d%C(reset) %C(bold blue)— %an%C(reset)' --abbrev-commit
+ lg = log --graph --abbrev-commit --color --pretty=log
+
+ l = lg -n 15
+ ll = lg --all
+ lf = lg --name-status
+ lp = lg --first-parent
s = status -s
ss = status