• L
    [PATCH] Allow reading "symbolic refs" that point to other refs · ca8db142
    Linus Torvalds 提交于
    This extends the ref reading to understand a "symbolic ref": a ref file
    that starts with "ref: " and points to another ref file, and thus
    introduces the notion of ref aliases.
    
    This is in preparation of allowing HEAD to eventually not be a symlink,
    but one of these symbolic refs instead.
    
    [jc: Linus originally required the prefix to be "ref: " five bytes
     and nothing else, but I changed it to allow and strip any number of
     leading whitespaces to match what update-ref.c does.]
    Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
    Signed-off-by: NJunio C Hamano <junkio@cox.net>
    ca8db142
refs.c 5.6 KB