Moving some parts around

This commit is contained in:
2017-10-16 15:58:44 +02:00
parent fd97ab9c7a
commit bade4f97ae
8 changed files with 26 additions and 1 deletions

19
terminal/git/prettygit Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
HASH="%C(yellow)%h%C(reset)"
RELATIVE_TIME="%C(green)%ar%C(reset)"
AUTHOR="%C(blue)<%an>%C(reset)"
REFS="%C(red)%d%C(reset)"
SUBJECT="%C(reset)%s%C(reset)"
FORMAT="}$HASH}$RELATIVE_TIME}$AUTHOR}$REFS $SUBJECT"
function pretty_git_log() {
git log --graph --all --color=always --pretty="tformat:$FORMAT" $* |
sed -Ee 's/(^[^<]*) ago}/\1}/' |
columnize -t -s '}' |
less -FXR
}
# grep -v Merge |
pretty_git_log $@