summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-09-26 02:30:24 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-10-02 06:19:32 (GMT)
commit9b143c6e155a8eead165b2a813b533e0f3e0018a (patch)
tree49593ba36cdb22b5b3011b0a2ede03017fad3b47 /cache.h
parented1aadf1b0cb4afc7cb0aaf4cec4f5ad84e3307d (diff)
downloadgit-9b143c6e155a8eead165b2a813b533e0f3e0018a.zip
git-9b143c6e155a8eead165b2a813b533e0f3e0018a.tar.gz
git-9b143c6e155a8eead165b2a813b533e0f3e0018a.tar.bz2
Teach update-ref about a symbolic ref stored in a textfile.
A symbolic ref is a regular file whose contents is "ref:", followed by optional leading whitespaces, followed by a GIT_DIR relative pathname, followed by optional trailing whitespaces (the optional whitespaces are unconditionally removed, so you cannot have leading nor trailing whitespaces). This can be used in place of a traditional symbolic link .git/HEAD that usually points at "refs/heads/master". You can instead have a regular file .git/HEAD whose contents is "ref: refs/heads/master". [jc: currently the code does not enforce the symbolic ref to begin with refs/, unlike the symbolic link case. It may be worthwhile to require either case to begin with refs/ and not have any /./ nor /../ in them.] Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'cache.h')
0 files changed, 0 insertions, 0 deletions