update-ref --stdin: reimplement using reference transactions
commitaebfc13337e503b5a7d064cb1e9c9916f24c2baf
authorMichael Haggerty <mhagger@alum.mit.edu>
Mon, 7 Apr 2014 13:48:11 +0000 (7 15:48 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Apr 2014 19:09:14 +0000 (7 12:09 -0700)
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 <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/update-ref.c