10 lines
264 B
Bash
10 lines
264 B
Bash
#!/usr/bin/env bash
|
|
|
|
PREFIX='%C(bold magenta)%h%C(reset)' # hash
|
|
SUFFIX='%C(auto)%d%C(reset) %C(dim white)%aN%C(reset)|%C(green)%ar%C(reset)' # branch, author, time
|
|
format="$PREFIX %C(bold)%s%C(reset)$SUFFIX"
|
|
|
|
exec git \
|
|
log \
|
|
--format=tformat:"$format" \
|
|
"$@"
|