author | Junio C Hamano <gitster@pobox.com> | |
Mon, 12 Oct 2009 23:39:43 +0000 (16:39 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 12 Oct 2009 23:39:59 +0000 (16:39 -0700) | ||
commit | 38eedc634bc5d30e8a7a2356d9eb3ae95d9b1d75 | |
tree | 4ed08365e305beb2dc7a2e7344124cdfeee69d2a | tree | snapshot |
parent | 58a05c74e7a9341af80eb98731d6b0dafe1b5c29 | commit | diff |
git check-ref-format --print
Tolerating empty path components in ref names means each ref does
not have a unique name. This creates difficulty for porcelains
that want to see if two branches are equal. Add a helper associating
to each ref a canonical name.
If a user asks a porcelain to create a ref "refs/heads//master",
the porcelain can run "git check-ref-format --print refs/heads//master"
and only deal with "refs/heads/master" from then on.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Tolerating empty path components in ref names means each ref does
not have a unique name. This creates difficulty for porcelains
that want to see if two branches are equal. Add a helper associating
to each ref a canonical name.
If a user asks a porcelain to create a ref "refs/heads//master",
the porcelain can run "git check-ref-format --print refs/heads//master"
and only deal with "refs/heads/master" from then on.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-check-ref-format.txt | diff | blob | history | |
builtin-check-ref-format.c | diff | blob | history | |
t/t1402-check-ref-format.sh | diff | blob | history |