This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 224055 - copy hash to clipboard
Summary: copy hash to clipboard
Status: NEW
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ondrej Vrabec
Depends on:
Reported: 2012-12-19 21:31 UTC by maxym
Modified: 2012-12-19 22:17 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description maxym 2012-12-19 21:31:53 UTC
I'm not sure it would be useful for others, but I often need to use the hash found in git history in other app. Currently I have to write this hash down by myself. 
I would find adding "copy hash to clipboard" as the context menu option very useful. 

Further, also other things might be copied the same way: tags or even commit message. Just from commit history window.

with regards
Comment 1 Ondrej Vrabec 2012-12-19 21:38:20 UTC
It should already be possible. Simply select the revision from the result view in Git -> Show History and press Ctrl+C. Commit message, commit id and possibly other info is copied to the clipboard. Or not?
Comment 2 maxym 2012-12-19 22:17:27 UTC
I didn't knew that. Indeed it's possible to copy a few of those informations.
But to split them and get single one, I have to use notepad which costs additional time (probably I would enter short hash manually faster then copying though notepad).

Additionally hash is copied in full length version. I think short version is often enough.

There are a few issues also (out of scope of this ticket):
- no tags are not copied
- EOLs are removed from commit message.

I think, would be still nice to see copy feature for each attribute using context menu.

thanx for fast answer
with regards