Feature #3945

Shorten revision ID for git events

Added by Corry Haines about 8 years ago. Updated almost 7 years ago.

Status:ClosedStart date:2009-09-30
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:SCM
Target version:-
Resolution:Duplicate

Description

Using the full SHA1 hash in the activity tab is really annoying. They take up a tremendous amount of screen space, for no added value, as 7-8 characters from the hash is enough to ID a revision in most projects.

Attached is a patch that achieves the shortening effect, in the same way that the repository file browser does (basically truncating to the first 8 characters from the revision id).

Ideally this should be done by asking Git for what it thinks the short id is for each revision, as it is aware of how many bits are needed to ensure unique-ness. But I have no idea how to do that, as I am new to Ruby.

rev_id_len.patch Magnifier (820 Bytes) Corry Haines, 2009-09-30 00:39


Related issues

Duplicates Redmine - Feature #6092: Truncate Git revision labels in Activity page/feed and al... Closed 2010-08-09

History

#1 Updated by Eric Davis about 8 years ago

  • Category set to SCM

#2 Updated by Matthias Kuehn over 7 years ago

Also see #3244. A review of the patch included would be nice.

#3 Updated by Kennon Ballou over 7 years ago

+1

This is extremely annoying in the activity view when you have alot of commits. I'm looking into this to see if there is a cleaner way of doing this, as initial poster suggested using git instead of arbitrarily truncating the id.

#4 Updated by Toshi MARUYAMA almost 7 years ago

#3244, #3945 and #6092 are duplicate.

#5 Updated by Toshi MARUYAMA almost 7 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

This issue duplicates #6092.

Also available in: Atom PDF