Re:A better git log
by leephillips on Friday June 07, 2013 @08:31AM
(#5838482)
What terminal does this work in? I just got raw escape codes.
[ Parent
| on HN ]
Oh, I had no idea it wasn't portable, sorry. I'm using iTerm2 on OSX, but maybe worth trying them without the colouring:
git log --graph --all --abbrev-commit --pretty=format:'%d%x20%h%x20%an%x20%s'
git log --abbrev-commit --pretty=format:'%h%x20%an%x20%s' master..HEAD
Re:A better git log
by leephillips on Friday June 07, 2013 @09:20AM
(#5838684)
Those work, thanks. I'm on Linux using xfce4-terminal at the moment. There's probably a way to get the color codes to work, but I don't know it.
Which PAGER are you using? If it's less, try setting PAGER='less -R', or LESS=-R to enable raw control character output.
Re:A better git log
by leephillips on Friday June 07, 2013 @10:55AM
(#5839234)
Bingo! Nothing to do with the terminal at all! Thanks!