FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Correct parameter documentation for tree(*) · nodegit/nodegit@ffbd6a3 · GitHub

Repository navigation

Commit ffbd6a3

Browse files
committed
Correct parameter documentation for tree(*)
The treeish parameter claims that an Oid is valid but the underlying git_checkout_tree C api does not actually support Oid as a parameter. The JavaScript function does however take a String. Fix the documentation to replace Oid with String as a valid parameter.
1 parent de3583b commit ffbd6a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/checkout.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Checkout.index = function(repo, index, options) {
4040
*
4141
* @async
4242
* @param {Repository} repo
43-
* @param {Oid|Tree|Commit|Reference} treeish
43+
* @param {String|Tree|Commit|Reference} treeish
4444
* @param {CheckoutOptions} [options]
4545
* @return {Void} checkout complete
4646
*/

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL