Re: git fast-import: how to prevent incremental commit with no changes

2014-05-06 Thread Timo Teras
On Tue, 06 May 2014 12:18:16 -0700 Junio C Hamano wrote: > Timo Teras writes: > > > I'm trying to script a setup that would periodically import a > > tarball to git with fast-import. But things do not always change, > > so I'd like fast-import to be able to n

git fast-import: how to prevent incremental commit with no changes

2014-05-05 Thread Timo Teras
Hi, I'm trying to script a setup that would periodically import a tarball to git with fast-import. But things do not always change, so I'd like fast-import to be able to not do the commit in case there is no change. That is, I'm constructing the commit with "deleteall" + importing each object by