]> git.ipfire.org Git - thirdparty/git.git/commit - refs/refs-internal.h
refname_is_safe(): correct docstring
authorMichael Haggerty <mhagger@alum.mit.edu>
Fri, 6 Jan 2017 16:22:22 +0000 (17:22 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 8 Jan 2017 03:30:08 +0000 (19:30 -0800)
commit15ee2c72e76fa79e957990b43277a4591371e70e
tree242a1d2e9e23e6b1492f2580c905ffb945d010dc
parent583643248a28c5d3f678fdd042a63e5d1c48f39e
refname_is_safe(): correct docstring

The behavior of refname_is_safe() was changed in

    e40f355 "refname_is_safe(): insist that the refname already be normalized", 2016-04-27

without a corresponding update to its docstring. The function is in fact
stricter than documented, because it now insists that the result of
normalizing the part of a refname following "refs/" is identical to that
part of the original refname. Fix the docstring.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs/refs-internal.h