Skip to content

abuyakub/smartlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smartlog

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.

Installation

Install via pipx:

pipx install git+https://github.com/abuyakub/smartlog.git

Requirements:

  • Python >= 3.7

Usage

Use smartlog like a drop-in replacement for git log:

Examples

  • View recent commits:

    smartlog
  • Compact view with graphical history:

    smartlog --oneline --graph
  • Search commit meassages:

    smartlog --oneline | grep "fix"

Optional: Shell Alias

To override git log with smartlog in your shell:

alias gitlog="smartlog"

Then use as:

gitlog --oneline --graph

License

This project is licensed under the MIT License

About

Smart pager for 'git log' with pipe-sensitive formatting

Topics

Resources

License

Stars

Watchers

Forks

Languages