How to wrap git log

I display the log of Git in my own custom format. When the display text for a commit is longer than the width of the terminal, it is just truncated!

I could not find any way to make Git wrap the display of log message in the terminal. What I instead do is to pipe the git log through the classic Unix fold command:

$ git log | fold

By default, fold wraps to a width of 80 columns. You can specify the width of your terminal to it using the -w or --width option.

Tried with: Git 1.9.1 and Ubuntu 14.04

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s