summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorRonnie Sahlberg <sahlberg@google.com>2014-12-12 08:56:42 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-12-12 19:42:00 (GMT)
commit2c6207abbd6c430be06ddfef97d145d7e21446fb (patch)
tree5fe0456248291dc56f77a81d538cf8e250e27661 /builtin
parenta785d3f77c9922846f25d09fb04af9a3400ffbd1 (diff)
downloadgit-2c6207abbd6c430be06ddfef97d145d7e21446fb.zip
git-2c6207abbd6c430be06ddfef97d145d7e21446fb.tar.gz
git-2c6207abbd6c430be06ddfef97d145d7e21446fb.tar.bz2
refs.c: add a function to append a reflog entry to a fd
Break out the code to create the string and writing it to the file descriptor from log_ref_write and add it into a dedicated function log_ref_write_fd. It is a nice unit of work. For now this is only used from log_ref_write, but in the future it might have other callers. Signed-off-by: Ronnie Sahlberg <sahlberg@google.com> Signed-off-by: Stefan Beller <sbeller@google.com> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
0 files changed, 0 insertions, 0 deletions