Re: [PATCH 4/8] refs.c: add transaction function to append to the reflog

2014-12-11 Thread Junio C Hamano
Stefan Beller writes: > Unlike transaction_update_ref, this writes out the proposed contents of the > reflog to a temporary file at transaction_reflog_update time instead of > waiting for the transaction waiting to be committed. This avoids an > explosion of memory usage when writing lots of refl

[PATCH 4/8] refs.c: add transaction function to append to the reflog

2014-12-05 Thread Stefan Beller
Currently a transaction can include one or more reflog updates. But these are not part of the contract of the transaction committing all or nothing. Introduce a function transaction_update_reflog, which adds a reflog update to a transaction. Later patches will update code that writes to reflogs to