@@ -7,9 +7,9 @@ var Commit = NodeGit.Commit;
77
88/**
99 * Retrieves the commit pointed to by the oid
10+ * @async
1011 * @param {Repository } repo The repo that the commit lives in
1112 * @param {String|Oid|Commit } id The commit to lookup
12- * @param {Function } callback
1313 * @return {Commit }
1414 */
1515Commit . lookup = LookupWrapper ( Commit ) ;
@@ -41,7 +41,7 @@ Commit.prototype.date = function() {
4141/**
4242 * Get the tree associated with this commit.
4343 *
44- * @param { Function } callback
44+ * @async
4545 * @return {Tree }
4646 */
4747Commit . prototype . getTree = function ( callback ) {
@@ -52,8 +52,8 @@ Commit.prototype.getTree = function(callback) {
5252 * Retrieve the entry represented by path for this commit.
5353 * Path must be relative to repository root.
5454 *
55+ * @async
5556 * @param {String } path
56- * @param {Function } callback
5757 * @return {TreeEntry }
5858 */
5959Commit . prototype . getEntry = function ( path , callback ) {
@@ -68,16 +68,20 @@ Commit.prototype.getEntry = function(path, callback) {
6868 } , callback ) ;
6969} ;
7070
71+
7172/**
7273 * Walk the history from this commit backwards.
74+ *
7375 * An EventEmitter is returned that will emit a "commit" event for each
7476 * commit in the history, and one "end" event when the walk is completed.
75- * Don" t forget to call `start()` on the returned event.
77+ * Don' t forget to call `start()` on the returned event.
7678 *
77- * @fires Commit#commit
78- * @fires Commit#end
79+ * @fires EventEmitter#commit Commit
80+ * @fires EventEmitter#end Array<Commit>
81+ * @fires EventEmitter#error Error
7982 *
8083 * @return {EventEmitter }
84+ * @start start()
8185 */
8286Commit . prototype . history = function ( ) {
8387 var event = new events . EventEmitter ( ) ;
@@ -107,12 +111,14 @@ Commit.prototype.history = function() {
107111 return event ;
108112} ;
109113
114+
110115/**
111- * Retrieve the commit" s parents -- as commit objects.
116+ * Retrieve the commit' s parents as commit objects.
112117 *
113- * @param {number } limit - Optional amount of parents to return.
118+ * @async
119+ * @param {number } limit Optional amount of parents to return.
114120 * @param {Function } callback
115- * @return {[ Commit] } array of commits
121+ * @return {Array< Commit> } array of commits
116122 */
117123Commit . prototype . getParents = function ( limit , callback ) {
118124 var parents = [ ] ;
@@ -147,7 +153,7 @@ Commit.prototype.getParents = function(limit, callback) {
147153 * Retrieve the commit"s parent shas.
148154 *
149155 * @param {Function } callback
150- * @return {[Oid] } array of oids
156+ * @return {Array<Oids> } array of oids
151157 */
152158Commit . prototype . parents = function ( ) {
153159 var result = [ ] ;
@@ -163,8 +169,9 @@ Commit.prototype.parents = function() {
163169 * Generate an array of diff trees showing changes between this commit
164170 * and its parent(s).
165171 *
172+ * @async
166173 * @param {Function } callback
167- * @return {[ Diff] } an array of diffs
174+ * @return {Array< Diff> } an array of diffs
168175 */
169176Commit . prototype . getDiff = function ( callback ) {
170177 var commit = this ;
0 commit comments