diff options
| author | Patrick Steinhardt <ps@pks.im> | 2021-01-12 13:27:39 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2021-01-12 12:06:14 -0800 |
| commit | 929d044575ed4f9657074f098e3a9be410d511ef (patch) | |
| tree | 456547cb1e16e3059732886563a523aa31838e9c /commit.c | |
| parent | fetch: extract writing to FETCH_HEAD (diff) | |
| download | git-929d044575ed4f9657074f098e3a9be410d511ef.tar.gz git-929d044575ed4f9657074f098e3a9be410d511ef.zip | |
fetch: use strbuf to format FETCH_HEAD updates
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
serves as a preparatory step to implement atomic fetches where we need
to buffer all updates to FETCH_HEAD and only flush them out if all
reference updates succeeded.
No change in behaviour is expected from this commit.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions
