1

If I run git diff and have several files changed I find I get one long listing of the diffs with no clear separation between one diff and the next.

Is there any way to highlight the first line of a diff or have some visual marker between diff hunks?

Snowcrash
  • 80,579
  • 89
  • 266
  • 376

1 Answers1

2

The easiest way that I found is to use a difftool.

I use meld. To start using it properly:

  • install meld
  • configure meld as your default difftool

    git config --global diff.tool meld

  • navigate to a git repository and start digging

    git difftool

You will then see a diff for each file separately

Sagi Dayan
  • 118
  • 1
  • 7