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 InvalidRefException 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
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
InvalidRefExceptionwhile 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~1andgit checkout -b <branch-name>sequentiallyAlternatives considered
No response
Additional context
No response