File tree Expand file tree Collapse file tree 4 files changed +19
-0
lines changed
Expand file tree Collapse file tree 4 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ for (var key in rawApi) {
1919require ( './lib/commit.js' ) ;
2020require ( './lib/blob.js' ) ;
2121require ( './lib/object.js' ) ;
22+ require ( './lib/signature.js' ) ;
2223require ( './lib/odb.js' ) ;
2324require ( './lib/oid.js' ) ;
2425require ( './lib/index.js' ) ;
Original file line number Diff line number Diff line change @@ -158,3 +158,8 @@ Commit.prototype.getDiff = function(callback) {
158158 } ) ;
159159 } ) ;
160160} ;
161+
162+ Commit . prototype . toString = function ( ) {
163+ return this . sha ( ) ;
164+ }
165+
Original file line number Diff line number Diff line change 1+ var git = require ( '../' ) ,
2+ Signature = git . Signature ;
3+
4+ /**
5+ * Standard string representation of an author.
6+ */
7+ Signature . prototype . toString = function ( ) {
8+ return this . name ( ) . toString ( ) + " <" + this . email ( ) . toString ( ) + ">" ;
9+ } ;
Original file line number Diff line number Diff line change @@ -61,3 +61,7 @@ TreeEntry.prototype.getBlob = function(callback) {
6161TreeEntry . prototype . path = function ( callback ) {
6262 return path . join ( this . parent . path ( ) , this . name ( ) ) ;
6363} ;
64+
65+ TreeEntry . prototype . toString = function ( ) {
66+ return this . name ( ) ;
67+ } ;
You can’t perform that action at this time.
0 commit comments