update-ref --stdin: reimplement using reference transactions
authorMichael Haggerty <redacted>
Mon, 7 Apr 2014 13:48:11 +0000 (15:48 +0200)
committerJunio C Hamano <redacted>
Mon, 7 Apr 2014 19:09:14 +0000 (12:09 -0700)
commitaebfc13337e503b5a7d064cb1e9c9916f24c2baf
tree35d7f2a52ee545e1bec90f22f99167e5dff496fa
parentcaa4046c4f480ceae5afb20e3172a437865cc51f
update-ref --stdin: reimplement using reference transactions

This change is mostly clerical: the parse_cmd_*() functions need to
use local variables rather than a struct ref_update to collect the
arguments needed for each update, and then call ref_transaction_*() to
queue the change rather than building up the list of changes at the
caller side.

Signed-off-by: Michael Haggerty <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/update-ref.c
git clone https://git.99rst.org/PROJECT