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

Specify acceptable types for `lookup` and `dwim` in Reference by rcjsuen · Pull Request #1203 · nodegit/nodegit · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .js  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
15 changes: 8 additions & 7 deletions lib/reset.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ var _reset = Reset.reset;
*
* @async
* @param {Repository} repo Repository where to perform the reset operation.
* @param {Object} target The committish which content will be used to reset the
* content of the index.
* @param {Commit|Tag} target The committish which content will be used to reset
* the content of the index.
* @param {Strarray} pathspecs List of pathspecs to operate on.
*
* @return {Number} 0 on success or an error code
Expand All @@ -26,11 +26,12 @@ Reset.default = function(repo, target, pathspecs) {
* @async
* @param {Repository} repo Repository where to perform the reset operation.
*
* @param {Object} target Committish to which the Head should be moved to. This
* object must belong to the given `repo` and can either
* be a git_commit or a git_tag. When a git_tag is being
* passed, it should be dereferencable to a git_commit
* which oid will be used as the target of the branch.
* @param {Commit|Tag} target Committish to which the Head should be moved to.
* This object must belong to the given `repo` and can
* either be a git_commit or a git_tag. When a git_tag is
* being passed, it should be dereferencable to a
* git_commit which oid will be used as the target of the
* branch.
* @param {Number} resetType Kind of reset operation to perform.
*
* @param {CheckoutOptions} opts Checkout options to be used for a HARD reset.
Expand Down

Back | FazBrowse Home | New Git URL