summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-08-14 17:57:24 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-08-14 22:04:24 (GMT)
commit2c2b6646c2723459dbd334c7ced6f77ffb0d596e (patch)
tree2db617e34a62cc84d1c744e14913b916202eb820 /refs.c
parentc1ebd90c832e28ff27654c21f9985aebe986352d (diff)
downloadgit-2c2b6646c2723459dbd334c7ced6f77ffb0d596e.zip
git-2c2b6646c2723459dbd334c7ced6f77ffb0d596e.tar.gz
git-2c2b6646c2723459dbd334c7ced6f77ffb0d596e.tar.bz2
Revert "Add new @ shortcut for HEAD"
This reverts commit cdfd94837b27c220f70f032b596ea993d195488f, as it does not just apply to "@" (and forms with modifiers like @{u} applied to it), but also affects e.g. "refs/heads/@/foo", which it shouldn't. The basic idea of giving a short-hand might be good, and the topic can be retried later, but let's revert to avoid affecting existing use cases for now for the upcoming release.
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/refs.c b/refs.c
index 7b08a37..7922261 100644
--- a/refs.c
+++ b/refs.c
@@ -72,10 +72,6 @@ int check_refname_format(const char *refname, int flags)
{
int component_len, component_count = 0;
- if (!strcmp(refname, "@"))
- /* Refname is a single character '@'. */
- return -1;
-
while (1) {
/* We are at the start of a path component. */
component_len = check_refname_component(refname, flags);