michael-reichenauer / GitMind

Windows UI Git client
MIT License
28 stars 3 forks source link

Display long git commit hash #8

Closed FantasticFiasco closed 6 years ago

FantasticFiasco commented 6 years ago

When working with git from the command line and one wishes to specify a specific commit, I often find myself copying the commit hash from the commit details pane in GitMind. One thing I constantly wonder however is whether the short hash is unique in the repository. I would love to see that the commit hash I get from GitMind is the long version. Proposed solutions for this could be:

What are your thoughts?

michael-reichenauer commented 6 years ago

It is very unlikely that the short hash is not unique and if it is not unique, git will complain when it is used. But I do agree that the long hash should be more accessible. Currently, it is only shown as a tool tip. But based on your comment I will probably add a "..." toggle button, which will display the long hash and thus make it accessible for e.g. copying. Thanks for your comment, it got me to think about at possible solution.

michael-reichenauer commented 6 years ago

Now the id is shown as 12 chars and there is a "Copy" button, which copies all 40 chars of the id to the clipboard in the commits details pane.