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

Summary: copy hash to clipboard
Product: versioncontrol Reporter: maxym
Component: GitAssignee: Ondrej Vrabec <ovrabec>
Status: NEW ---    
Severity: normal CC: git
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

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