Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tig show with partial SHAs #980

Closed
rfs613 opened this issue Jan 7, 2020 · 0 comments
Closed

tig show with partial SHAs #980

rfs613 opened this issue Jan 7, 2020 · 0 comments
Labels

Comments

@rfs613
Copy link

rfs613 commented Jan 7, 2020

Not sure if this is an intended feature or a bug...

The behaviour of tig show, when given a partial SHA on the command line, appears to be:

  • if the SHA is long enough to be unique, then operate on that SHA
  • if there is no match for the given (partial) sha, then operate on HEAD
  • if there are multiple matches, then operate on HEAD

While the first case is correct, the latter two cases are unexpected. The behaviour differs from plain git show where the latter two cases result in error message being displayed. Showing HEAD commit when it was not requested seems odd, and potentially very confusing to user.

I see this with both tig 2.3 (Ubuntu 18.04) and 2.5 (Fedora 31).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants