On Monday, October 29, 2012 1:02:22 AM UTC+1, Joe Cabezas wrote:

> my project have files with very large lines (very common in latex 
> projects), sometimes i have to modify a single word, and is very simple to 
> see differences using
> git diff --word-diff
> but when I want to make a
> git add --patch
> show hunks like 'git diff' without --word-diff option... and is very 
> difficult to see whats is the difference
> there is any way to see differences word by word in git add?

I doubt this is possible today. As far as I can judge from reading the 
docs, git add -p uses the Interactive Mode of git add, which operates on 
"hunks". Hunks *are* inherently line diffs, and can even be edited on the 
fly during an interactive add, and I guess this is why they can't be 
handled as mere diffs. 

Of course, this should be possible to implement inside of Git, but I doubt 
it's a feature in high demand.. Most users out there don't stage hunks, and 
most people who do are already used to line-diffs.

You could of course suggest it as a feature to the Git development list. In 
the mean time, I would suggest combining two console windows to achieve 
what you want: 

   - in the first window, run git add -p, and 
   - in the second run git diff --word-diff to guide you through the 

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to