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.