@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Decrease commit identifier display length

Summary: We are running out of horizontal space, this should help a bit.

Test Plan: Homepage, revision.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D4518

vrana 9a3d0f71 4f5123e2

+9 -4
+9 -4
src/applications/differential/view/DifferentialLocalCommitsView.php
··· 48 48 49 49 $row = array(); 50 50 if (idx($commit, 'commit')) { 51 - $commit_hash = substr($commit['commit'], 0, 16); 51 + $commit_hash = self::formatCommit($commit['commit']); 52 52 } else if (isset($commit['rev'])) { 53 - $commit_hash = substr($commit['rev'], 0, 16); 53 + $commit_hash = self::formatCommit($commit['rev']); 54 54 } else { 55 55 $commit_hash = null; 56 56 } ··· 58 58 59 59 if ($has_tree) { 60 60 $tree = idx($commit, 'tree'); 61 - $tree = substr($tree, 0, 16); 61 + $tree = self::formatCommit($tree); 62 62 $row[] = phutil_tag('td', array(), $tree); 63 63 } 64 64 ··· 72 72 if (is_array($parent)) { 73 73 $parent = idx($parent, 'rev'); 74 74 } 75 - $parents[$k] = substr($parent, 0, 16); 75 + $parents[$k] = self::formatCommit($parent); 76 76 } 77 77 $parents = phutil_implode_html(phutil_tag('br'), $parents); 78 78 $row[] = phutil_tag('td', array(), $parents); ··· 141 141 $headers, 142 142 phutil_implode_html("\n", $rows)); 143 143 } 144 + 145 + private static function formatCommit($commit) { 146 + return substr($commit, 0, 12); 147 + } 148 + 144 149 }