.sh

Multi-shell dotfiles manager
Log | Files | Refs | README | LICENSE

commit cc1895808bfe7962c09039d9580f3791f4471be8
parent 75a49cc775ef4a7418f76769cb64615564b1cc48
Author: Byron Torres <b@torresjrjr.com>
Date:   Tue, 11 May 2021 21:59:16 +0100

runtime_print(): Print 2 lines of git log

The 'oneline' git log would frequently exceed 80 characters and wrap
undesirably.

runtime_print() now prints the commit hash and decoration, and the
commit title, on two separate lines. This improves readability.

Diffstat:
Msh/.rc.sh | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sh/.rc.sh b/sh/.rc.sh @@ -48,7 +48,8 @@ runtime_print() { $FETCH ls -FAX ; echo git log -0 2>&- && { # if git repo - git log -1 --oneline --decorate + git log -1 --abbrev-commit --format=short --color --decorate \ + | sed -n '1p; /^ /p' git status -s echo }