Smart pager for 'git log' with pipe-sensitive formatting
smartlog is a terminal-friendly wrapper for git log that improves usability by eliminating the pager when not needed. It dynamically evaluates the terminal height and falls back to the default behavior when the output would otherwise exceed the visible screen.
Install via pipx:
pipx install git+https://github.com/abuyakub/smartlog.gitRequirements:
- Python >= 3.7
Use smartlog like a drop-in replacement for git log:
-
View recent commits:
smartlog
-
Compact view with graphical history:
smartlog --oneline --graph
-
Search commit meassages:
smartlog --oneline | grep "fix"
To override git log with smartlog in your shell:
alias gitlog="smartlog"Then use as:
gitlog --oneline --graphThis project is licensed under the MIT License