RE: git with custom diff for commits
- From
- Gerald Gutierrez <ggmlfs@gmail.com>
- Date
- Dec 18, 2007, 20:48 UTC
- Message-ID
- <000101c841b7$5f1d1060$762a14ac@na.acco.com>
- In-Reply-To
- <7vzlw7ybx7.fsf@gitster.siamese.dyndns.org>
Yes, but wouldn't it be slick to actually teach git's internal diff to do things like GNU diff can, like the ignore option -I, case insensitivity, etc. I thought that's what the external diff capability is for, but it is not so.
Gerald.
Show 22 quoted lines
> -----Original Message----- > From: Junio C Hamano [mailto:gitster@pobox.com] > Sent: Tuesday, December 18, 2007 12:40 PM > To: Gerald Gutierrez > Cc: 'Junio C Hamano'; 'Matthieu Moy'; 'Johannes Schindelin'; > git@vger.kernel.org > Subject: Re: git with custom diff for commits > > "Gerald Gutierrez" <ggmlfs@gmail.com> writes: > > > I ended up doing the following, which sounds similar to the above. > > Instead of doing mysqldump into data.sql, it goes into data.sql.2 > > which I compare with the checked in data.sql using "diff -I > <timestamp > > RE>". If there are no differences, I delete data.sql.2. If > there are > > differences, I move > > data.sql.2 into data.sql and check in. Perhaps not as elegant but > > certainly works. > > Heh, that's essentially how automated html/man branches are > managed ;-)