Copy revision number in short format

Answered

Right now it's possible to copy full-length revision number. But I'd like to have `git rev-parse --short HEAD` as an action. Is there any way I can achieve that?

4 comments

Could you please specify why you'd like to have it? What is the use-case that short one allows and that isn't covered by the full or doesn't work well with it? 

0

To referrer to particular gem version, one can specify `ref` param in the Gemfile.

gem 'foo', git: 'https://github.com/foo.git', branch: 'test', ref: 'fd82fe4'

Putting full revision number in there will make Gemfile less readable. So now there are 2 options:

  1. run command from a terminal
  2. copy short revision number from version control tab (but that can't be done in a keyboard-only way)

 

0

There was a request for copying only full revision number (https://youtrack.jetbrains.com/issue/IDEA-131714) so now it's now possible to copy the short one from the Log details. Still you can submit a corresponding feature request on our platform tracker:

https://youtrack.jetbrains.com/issues/IDEA

0

Hm. I missed that ticket :/ Will review.

Thanks!

0

Please sign in to leave a comment.