Re: [PATCH 2/3] show_ref(): remove unused "flag" and "cb_data" arguments
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 7, 2012, 05:08 UTC
- Message-ID
- <7vobuggkvs.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1325859153-31016-3-git-send-email-mhagger@alum.mit.edu>
mhagger@alum.mit.edu writes:
> I suppose, though I didn't verify, that the old function signature was > a vestige of its earlier having been used as a callback function. But > it doesn't really matter; the point is that the extra arguments are > currently not needed.
Yeah, since 8a65ff7 (Generalize the "show each ref" code in receice-pack, 2005-07-02) the function has always been fed to for_each_ref(), but when 6b01ecf (ref namespaces: Support remote repositories via upload-pack and receive-pack, 2011-07-08) introduced show_ref_cb() as the callback that uses show_ref() as a helper, it forgot to do the clean-up in this patch.