Make HEAD a PSEUDOREF rather than PER_WORKTREE.
This is consistent with the definition of REF_TYPE_PSEUDOREF (uppercase in the root ref namespace). Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
parent
09743417a2
commit
55dd8b9108
3
refs.c
3
refs.c
|
@ -676,8 +676,7 @@ int dwim_log(const char *str, int len, struct object_id *oid, char **log)
|
||||||
|
|
||||||
static int is_per_worktree_ref(const char *refname)
|
static int is_per_worktree_ref(const char *refname)
|
||||||
{
|
{
|
||||||
return !strcmp(refname, "HEAD") ||
|
return starts_with(refname, "refs/worktree/") ||
|
||||||
starts_with(refname, "refs/worktree/") ||
|
|
||||||
starts_with(refname, "refs/bisect/") ||
|
starts_with(refname, "refs/bisect/") ||
|
||||||
starts_with(refname, "refs/rewritten/");
|
starts_with(refname, "refs/rewritten/");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue