RE: git with custom diff for commits
- From
- Gerald Gutierrez <ggmlfs@gmail.com>
- Date
- Dec 18, 2007, 20:35 UTC
- Message-ID
- <000001c841b5$89fcef00$762a14ac@na.acco.com>
- In-Reply-To
- <7vodco1him.fsf@gitster.siamese.dyndns.org>
Show 14 quoted lines
> > 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 <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.
Gerald.