Skip to content

CheckoutCommand does not support revision expressions using ~ and ^ operators #244

@kumarp149

Description

@kumarp149

Description

CheckoutCommand currently does not support Git revision expressions using the ~ and ^ operators (For example: HEAD~1, commit^1, commit^2 etc.)

C-git support these for checkout command. But, jgit is throwing InvalidRefExceoption while executing checkout command with the above operators.

Motivation

Developer will be able to seamlessly switch to an older commit to debug certain issues in the code.

For example, if the develop wants to create a new branch from the parent of HEAD, he can execute git checkout HEAD~1 and git checkout -b <branch-name> sequentially

Alternatives considered

No response

Additional context

No response

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