...
|
...
|
@@ -167,12 +167,21 @@
|
167
|
167
|
maxStack = 100
|
168
|
168
|
|
169
|
169
|
[pretty]
|
170
|
|
- patch = format:%C(BrightYellow)commit %h%C(auto)%d%n%C(BrightYellow)Author: %aN <%aE>%n%C(BrightYellow)Date: %ad%n%n%C(Yellow)%s%n
|
171
|
|
- compact = tformat:%C(BrightYellow)%h %C(BrightMagenta)%>(13,trunc)%ar %C(BrightBlue)%<(15,trunc)%aN %C(BrightWhite)%s%C(auto)%d
|
|
170
|
+ patch = format:%C(BrightYellow)commit %h%C(auto)%d%n%C(BrightYellow)Author: %aN <%aE>%n%C(BrightYellow)Date: %ad%n%n%C(Yellow)%s%n
|
|
171
|
+ compact = tformat:%C(BrightYellow)%h%x20%C(BrightMagenta)%>(13,trunc)%ar%x20%C(BrightBlue)%<(15,trunc)%aN%x20%C(BrightWhite)%s%C(auto)%d
|
|
172
|
+ compactt = tformat:%C(BrightYellow)%h%x09%C(BrightMagenta)%>(1 )%ar%x09%C(BrightBlue)%<(1 )%aN%x09%C(BrightWhite)%s%C(auto)%d
|
172
|
173
|
|
173
|
174
|
[alias]
|
174
|
175
|
; Log.
|
175
|
|
- l = log --graph --pretty=compact
|
|
176
|
+ l = "!f() { : git log ; \
|
|
177
|
+ git config --get-colorbool color.diff && color_diff=always; \
|
|
178
|
+ git -c color.diff=$color_diff log --graph --pretty=compactt \"$@\" \
|
|
179
|
+ | sed -E 's/^([^\\t]+\\t[^\\t,]+)(,.+)? ago(.*\\t.*)$/\\1\\3/' \
|
|
180
|
+ | sed -E 's/^(.*) +(.*[0-9a-f]{7}.*\\t)/\\1\\t\\2/' \
|
|
181
|
+ | sed -E 's/ *$//' \
|
|
182
|
+ | column -t -o ' ' -s \"$(printf '\\t')\" \
|
|
183
|
+ | eval \"LESS=${LESS-FRX} $(git var GIT_PAGER)\"; \
|
|
184
|
+ }; f"
|
176
|
185
|
ls = log --oneline --decorate=no
|
177
|
186
|
lf = log --first-parent
|
178
|
187
|
lp = log --patch --pretty=patch
|