From: Gerald Gutierrez Date: Tue, 18 Dec 2007 20:35:28 GMT Subject: RE: git with custom diff for commits Message-ID: <000001c841b5$89fcef00$762a14ac@na.acco.com> In-Reply-To: <7vodco1him.fsf@gitster.siamese.dyndns.org> > > So my updated suggestion would be: > > - Keep a checkout of that mysql dump; > > - Make the dump procedure to dump to that checkout area; > > - Run "git diff HEAD", perhaps with the external diff that > filters out > the cruft as suggested in the thread, and run "git checkout $path" > for paths that had only meaningless changes; > > - Run "git commit" if the above step did not nuke all changes. > 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 ". 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. Gerald.