summaryrefslogtreecommitdiffstats
path: root/git-check-ref-format.txt
diff options
context:
space:
mode:
authorJunio C Hamano <junio@kernel.org>2011-07-13 23:51:56 +0000
committerJunio C Hamano <junio@kernel.org>2011-07-13 23:51:56 +0000
commit360e3a1e2a1605a257fceaa3f9a5cd99ce19f0f6 (patch)
treebc06dbf2b7efe1c3cde933f43e6f92fae86e870d /git-check-ref-format.txt
parentc652aed8923d6b63b98c910666b861a766217891 (diff)
downloadgit-htmldocs-360e3a1e2a1605a257fceaa3f9a5cd99ce19f0f6.tar.gz
Autogenerated HTML docs for v1.7.6-178-g55272
Diffstat (limited to 'git-check-ref-format.txt')
-rw-r--r--git-check-ref-format.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/git-check-ref-format.txt b/git-check-ref-format.txt
index 205d83dd0..c9fdf84a0 100644
--- a/git-check-ref-format.txt
+++ b/git-check-ref-format.txt
@@ -18,9 +18,12 @@ Checks if a given 'refname' is acceptable, and exits with a non-zero
status if it is not.
A reference is used in git to specify branches and tags. A
-branch head is stored under the `$GIT_DIR/refs/heads` directory, and
-a tag is stored under the `$GIT_DIR/refs/tags` directory (or, if refs
-are packed by `git gc`, as entries in the `$GIT_DIR/packed-refs` file).
+branch head is stored in the `refs/heads` hierarchy, while
+a tag is stored in the `refs/tags` hierarchy of the ref namespace
+(typically in `$GIT_DIR/refs/heads` and `$GIT_DIR/refs/tags`
+directories or, as entries in file `$GIT_DIR/packed-refs`
+if refs are packed by `git gc`).
+
git imposes the following rules on how references are named:
. They can include slash `/` for hierarchical (directory)