Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

What terminal does this work in? I just got raw escape codes.


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


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.


Bingo! Nothing to do with the terminal at all! Thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: