Merge branch 'jk/reopen-tempfile-truncate'
Fix for a long-standing bug that leaves the index file corrupt when it shrinks during a partial commit. * jk/reopen-tempfile-truncate: reopen_tempfile(): truncate opened file
This commit is contained in:
@ -236,8 +236,8 @@ extern int close_tempfile_gently(struct tempfile *tempfile);
|
||||
* it (and nobody else) to inspect or even modify the file's
|
||||
* contents.
|
||||
*
|
||||
* * `reopen_tempfile()` to reopen the temporary file. Make further
|
||||
* updates to the contents.
|
||||
* * `reopen_tempfile()` to reopen the temporary file, truncating the existing
|
||||
* contents. Write out the new contents.
|
||||
*
|
||||
* * `rename_tempfile()` to move the file to its permanent location.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user