Re: [PATCH] Add --show-touched option to show "diff --git" line when contents are unchanged

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matthieu Moy
Date: Monday, August 6, 2007 - 11:47 pm

Linus Torvalds <torvalds@linux-foundation.org> writes:


Yes. Junio's patch has this as a comment, it's probably good to
uncomment it, and perhaps print it directly on stdout so that you see
it even with a pager.


Err, what's the relationship between the two parts of your sentence?
You can't be sure that git-diff will update the index (because you may
be working on a read-only setup, yes), but git-diff can at least _try_
to, and fall-back to the read-only behavior if updating the index
fails.

That's not a highly original idea since this is what git already does
with "status".

Once more, I'm willing to write the code for that if it has a chance
to be accepted.

-- 
Matthieu
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: git-diff on touched files: bug or feature?, Matthieu Moy, (Thu Aug 2, 2:23 am)
Re: git-diff on touched files: bug or feature?, Johannes Schindelin, (Thu Aug 2, 2:51 am)
Re: git-diff on touched files: bug or feature?, Matthieu Moy, (Thu Aug 2, 2:57 am)
Re: git-diff on touched files: bug or feature?, Johannes Schindelin, (Thu Aug 2, 3:48 am)
Re: git-diff on touched files: bug or feature?, jean_francois_veillette, (Thu Aug 2, 7:04 am)
Re: git-diff on touched files: bug or feature?, Johannes Schindelin, (Thu Aug 2, 7:43 am)
Re: git-diff on touched files: bug or feature?, Steven Grimm, (Thu Aug 2, 8:10 am)
Re: git-diff on touched files: bug or feature?, Johannes Schindelin, (Thu Aug 2, 8:23 am)
Re: git-diff on touched files: bug or feature?, Matthieu Moy, (Thu Aug 2, 8:45 am)
Re: git-diff on touched files: bug or feature?, J. Bruce Fields, (Thu Aug 2, 10:58 am)
Re: git-diff on touched files: bug or feature?, Junio C Hamano, (Thu Aug 2, 1:50 pm)
Re: [PATCH] Add --show-touched option to show "diff --git" ..., Matthieu Moy, (Mon Aug 6, 11:47 pm)