Skip to content
Snippets Groups Projects

Abbreviate SHA-1 in output to client

Merged Christopher Guindon requested to merge github/fork/spearce/master into master

Created by: spearce

getId().toString() returns an ugly internal JGit string listing the current revision flags attached to the RevCommit. This is not interesting or relevant to the end-user of Gerrit.

Instead abbreviate the SHA-1 to be 8 hex digits and print that as a clean string. For most Git repositories this will be uniquely identified. It is shorter to use in commands like git show when the end-user wants to inspect a commit that was rejected by the CLA plugin.

Merge request reports

Approval is optional

Merged by Wayne BeatonWayne Beaton 11 years ago (Mar 25, 2014 8:04pm UTC)

Merge details

  • Changes merged into master with 32065c77.
  • Deleted the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading