Project

General

Profile

Actions

Feature #3945

closed

Shorten revision ID for git events

Added by Corry Haines about 15 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
2009-09-30
Due date:
% Done:

0%

Estimated time:
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.


Files

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

Related issues

Is duplicate of Redmine - Feature #6092: Truncate Git revision labels in Activity page/feed and allow configurable lengthClosedToshi MARUYAMA2010-08-09

Actions
Actions

Also available in: Atom PDF