From: Mike Hommey Date: Tue, 18 Nov 2014 02:35:20 GMT Subject: Re: Getting a commit sha1 from fast-import in a remote-helper Message-ID: <20141118023520.GB14034@glandium.org> In-Reply-To: <20141118022137.GA8418@glandium.org> On Tue, Nov 18, 2014 at 11:21:37AM +0900, Mike Hommey wrote: > On Tue, Nov 18, 2014 at 09:34:26AM +0900, Mike Hommey wrote: > > Hi, > > > > For some reason, I need to know the sha1 corresponding to some marks > > I'm putting in a fast-import stream. Unfortunately, this does not appear > > to be possible. > > - I'd rather not require a checkpoint to export marks each time I need > > such a sha1, and I'd rather not do that work that requires them after > > all the marks have been created (although currently, I'm forced to). > > BTW, if it so happens that all the operations that were done end up > creating objects that already existed for some reason, checkpoint > doesn't do anything, which is fine for the pack and tags, but not > necessarily so for export-marks. And while I'm here, it's sad that one needs to emit a dummy cat-blob or ls command to wait for a checkpoint to be finished because they are the only commands that trigger something written on the cat-blob fd that can be waited for. Mike.