Skip to content

Commit 1a94271

Browse files
committed
Show short SHA for commit repr() output.
1 parent fa49672 commit 1a94271

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

github2/commits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Commit(BaseData):
2020
"been modified since last commit.")
2121

2222
def __repr__(self):
23-
return "<Commit: %s %s>" % (self.id, self.message[:64])
23+
return "<Commit: %s %s>" % (self.id[:8], self.message[:64])
2424

2525

2626
class Commits(GithubCommand):

0 commit comments

Comments
 (0)