Skip to content

Branch is 'HEAD' in detached state #1

@polys

Description

@polys

In detached HEAD state, git rev-parse --abbrev-ref HEAD returns HEAD.

git log -n 1 --pretty=%D HEAD could be used to get all refs but which one do we choose?

Maybe branch should just be null or an empty string in detached HEAD state?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions