From: Brad King Date: Mon, 10 Mar 2014 17:08:37 GMT Subject: Re: [PATCH 13/26] update-ref --stdin: Simplify error messages for missing oldvalues Message-ID: <531DF195.7020304@kitware.com> In-Reply-To: <1394455603-2968-14-git-send-email-mhagger@alum.mit.edu> On 03/10/2014 08:46 AM, Michael Haggerty wrote: > Instead of, for example, > > fatal: update refs/heads/master missing [] NUL > > emit > > fatal: update refs/heads/master missing [snip] > - die("update %s missing [] NUL", update->ref_name); > + die("update %s missing ", update->ref_name); The reason for the original wording is that the is indeed optional. This can only occur at end-of-input, and it is actually the *NUL* that is missing because an empty old value can be specified to mean that it it intentionally missing. -Brad