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: Friday, August 3, 2007 - 2:32 pm

Junio C Hamano <gitster@pobox.com> writes:


To me, that patch makes sense, yes.

That said, a configuration option would probably be better than a
command-line option. The expected behavior seems to depend on user,
but not much on use-cases. So, people who like the old behavior could
set the option and forget about it, and other would not be distracted
about it.

Also, is there any particular reason not to update the index stat
information when files are found to be identical? Well, we've
discussed that quite much in this thread, but this is what status is
doing, and I still fail to see why diff shouldn't. (I can update the
patch myself if you agree it should be done. I don't know the git
codebase well, so it takes time for me, but the exercise is fun ;-) )

Side performance note: if I understand your patch correctly, you're
comparing the file content twice for actually modified changes. But
that probably doesn't matter much since the expansive thing is to load
the files and to compute the diff.

Thanks,

-- 
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, (Fri Aug 3, 2:32 pm)