News for hackers. Stuff that matters.
Re:Highlights from Git 2.28 by magikarpsalesmn on Monday July 27, 2020 @05:13PM (#23969464)
Just use vim, it even highlights the git log file:

$ git log | vim -

Inside vim search what you want with '/' When you find the commit you want put the cursor everywhere over the commit ID and run this normal mode command:

<Esc>:!git show <Ctrl+R><Ctrl+W><Enter>

You will be shown the diff in your default text view program (normally it's 'more' but can also be vimdiff), press <Enter> when you finish and you will be sent directly to the place where you left off.

You can also remap this behaviour to any key/alias you want.

Hope this helped!

There are no comments on this comment yet.