Skip to content

Instantly share code, notes, and snippets.

@runeh
Forked from githubteacher/git-loglive
Last active December 14, 2015 05:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save runeh/5038128 to your computer and use it in GitHub Desktop.
Save runeh/5038128 to your computer and use it in GitHub Desktop.
#!/bin/bash
while :
do
clear
lines=`tput lines`
lines=`expr $lines - 2`
git --no-pager log --graph --pretty=oneline --abbrev-commit --decorate --all --color $* | head -n $lines
sleep 1
done
@runeh
Copy link
Author

runeh commented Feb 26, 2013

Changed original to size output to terminal, so there's no need to fiddle with -n

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment