8

git add -p allows to stage selected parts of working tree changes to the index so that an uncommitted set of changes can be split into multiple commits.

Instead of git add -p, I would like to use meld or another graphical diff tool available on Linux (e.g. kdiff3) to stage changes.

I'm particularly keen to use a tool like meld that has a live intra-line diff viewer and those little arrows and x marks that let you merge and delete chunks of code quickly (or something very similar to that).

How can I do that?

Croad Langshan
  • 878
  • 9
  • 22

2 Answers2

4

The git-meld-index project allows meld to be used in order to incrementally update the index.

Mark
  • 426
1

Meld doesn't have such integration. However, you can use git gui.

On Linux, there is also Gitg.

On Windows and OS X, the GitHub app has this feature.

grawity
  • 501,077