Re: git with custom diff for commits
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Dec 17, 2007, 23:11 UTC
- Message-ID
- <Pine.LNX.4.64.0712172310090.9446@racer.site>
- In-Reply-To
- <vpq1w9kaphg.fsf@bauges.imag.fr>
Hi,
On Tue, 18 Dec 2007, Matthieu Moy wrote:
Show 17 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes: > > > On Mon, 17 Dec 2007, Gerald Gutierrez wrote: > > > >> I've tried to set up an external diff script that runs diff -I "<<sql > >> timestamp comment>>" that effectively ignores the timestamp. While > >> this works with "git diff", it seems when git commits, it still sees > >> the differences. > >> > >> How do I properly teach git to ignore these types of differences? > > > > You might be interested in reading Documentation/gitattributes.txt, > > look for "diff driver". > > It will show an empty output for "git diff", but I doubt thit will > change anything at commit time. Probably the "filter" thing on the same > file (also "man gitattributes") can help though.
Ah, right. I completely missed that you were talking about git-commit, not git-log on git commits.
Yes, setting up a "clean" filter that removes the timestamps is probably the reasonable thing to do here.
Sorry for the noise, Dscho