author | Junio C Hamano <junio@twinsun.com> | |
Fri, 30 Sep 2005 21:26:57 +0000 (14:26 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 2 Oct 2005 06:19:33 +0000 (23:19 -0700) | ||
commit | 8098a178b26dc7a158d129a092a5b78da6d12b72 | |
tree | a91aec067dd33319e2f33de565c42ef43b449b56 | tree | snapshot |
parent | a876ed83be5467d6075da8a16306724cb1babc2a | commit | diff |
Add git-symbolic-ref
This adds the counterpart of git-update-ref that lets you read
and create "symbolic refs". By default it uses a symbolic link
to represent ".git/HEAD -> refs/heads/master", but it can be compiled
to use the textfile symbolic ref.
The places that did 'readlink .git/HEAD' and 'ln -s refs/heads/blah
.git/HEAD' have been converted to use new git-symbolic-ref command, so
that they can deal with either implementation.
Signed-off-by: Junio C Hamano <junio@twinsun.com>
This adds the counterpart of git-update-ref that lets you read
and create "symbolic refs". By default it uses a symbolic link
to represent ".git/HEAD -> refs/heads/master", but it can be compiled
to use the textfile symbolic ref.
The places that did 'readlink .git/HEAD' and 'ln -s refs/heads/blah
.git/HEAD' have been converted to use new git-symbolic-ref command, so
that they can deal with either implementation.
Signed-off-by: Junio C Hamano <junio@twinsun.com>
16 files changed:
.gitignore | diff | blob | history | |
Makefile | diff | blob | history | |
cache.h | diff | blob | history | |
fsck-objects.c | diff | blob | history | |
git-bisect.sh | diff | blob | history | |
git-branch.sh | diff | blob | history | |
git-checkout.sh | diff | blob | history | |
git-commit.sh | diff | blob | history | |
git-sh-setup.sh | diff | blob | history | |
git-status.sh | diff | blob | history | |
init-db.c | diff | blob | history | |
refs.c | diff | blob | history | |
setup.c | diff | blob | history | |
show-branch.c | diff | blob | history | |
symbolic-ref.c | [new file with mode: 0644] | blob |
t/t5400-send-pack.sh | diff | blob | history |