Skip to content

Conflicting {change, commit}.shortest() and bookmark or tag name #2416

@avamsi

Description

@avamsi

Description

I have a change for which jj reports the shortest change ID is l, but turns out there's an (old) branch in the repo named l (which jj resolves to, when asked for l), but I would probably expect for jj to resolve to both (out of caution) or maybe consider branches (and other references) when reporting shortest, so this is not an issue in the first place.

Steps to Reproduce the Problem

Pick {change, commit}.shortest() from a random commit and create a new branch with the same name on another commit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions