Skip to content

Commit 3e06530

Browse files
authored
Merge pull request nodegit#1203 from rcjsuen/patch-2
Specify acceptable types for `lookup` and `dwim` in Reference
2 parents e359ca5 + 15cecff commit 3e06530

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

lib/reset.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ var _reset = Reset.reset;
1010
*
1111
* @async
1212
* @param {Repository} repo Repository where to perform the reset operation.
13-
* @param {Object} target The committish which content will be used to reset the
14-
* content of the index.
13+
* @param {Commit|Tag} target The committish which content will be used to reset
14+
* the content of the index.
1515
* @param {Strarray} pathspecs List of pathspecs to operate on.
1616
*
1717
* @return {Number} 0 on success or an error code
@@ -26,11 +26,12 @@ Reset.default = function(repo, target, pathspecs) {
2626
* @async
2727
* @param {Repository} repo Repository where to perform the reset operation.
2828
*
29-
* @param {Object} target Committish to which the Head should be moved to. This
30-
* object must belong to the given `repo` and can either
31-
* be a git_commit or a git_tag. When a git_tag is being
32-
* passed, it should be dereferencable to a git_commit
33-
* which oid will be used as the target of the branch.
29+
* @param {Commit|Tag} target Committish to which the Head should be moved to.
30+
* This object must belong to the given `repo` and can
31+
* either be a git_commit or a git_tag. When a git_tag is
32+
* being passed, it should be dereferencable to a
33+
* git_commit which oid will be used as the target of the
34+
* branch.
3435
* @param {Number} resetType Kind of reset operation to perform.
3536
*
3637
* @param {CheckoutOptions} opts Checkout options to be used for a HARD reset.

0 commit comments

Comments
 (0)