# Re: \[PATCH v3 2/5\] fetch: use strbuf to format FETCH\_HEAD updates

- From: Christian Couder \<hidden\>
- Date: 2021-01-11 11:18:28 
- List: git
- Page: https://ratatoskr.run/git/2021/01/7872023
- Thread: https://ratatoskr.run/git/2021/01/7871300/t.md

```text
On Mon, Jan 11, 2021 at 12:05 PM Patrick Steinhardt [ref] wrote:
>
> This commit refactors `append_fetch_head()` to use a `struct strbuf` for
> formatting the update which we're about to append to the FETCH_HEAD
> file. While the refactoring doesn't have much of a benefit right now, it
> servers as a preparatory step to implement atomic fetches where we need

s/servers/serves/

> to buffer all updates to FETCH_HEAD and only flush them out if all
> reference updates succeeded.
```
