Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions 12 lib/repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ Repository.prototype.getBranchCommit = function(name, callback) {
/**
* Gets the branch that HEAD currently points to
* Is an alias to head()
*
* @async
* @return {Reference}
*/
Expand Down Expand Up @@ -502,6 +503,7 @@ Repository.prototype.createCommit = function(

/**
* Creates a new commit on HEAD from the list of passed in files
*
* @async
* @param {Array} filesToAdd
* @param {Signature} author
Expand Down Expand Up @@ -586,6 +588,7 @@ Repository.prototype.defaultSignature = function() {
/**
* Lists out the remotes in the given repository.
*
* @async
* @param {Function} Optional callback
* @return {Object} Promise object.
*/
Expand All @@ -602,6 +605,7 @@ Repository.prototype.getRemotes = function(callback) {
/**
* Gets a remote from the repo
*
* @async
* @param {String|Remote} remote
* @param {Function} callback
* @return {Remote} The remote object
Expand Down Expand Up @@ -629,6 +633,7 @@ Repository.prototype.getRemote = function(remote, callback) {
/**
* Fetches from a remote
*
* @async
* @param {String|Remote} remote
* @param {Object|FetchOptions} fetchOptions Options for the fetch, includes
* callbacks for fetching
Expand Down Expand Up @@ -663,6 +668,8 @@ Repository.prototype.fetch = function(
/**
* Fetches from all remotes. This is done in series due to deadlocking issues
* with fetching from many remotes that can happen.
*
* @async
* @param {Object|FetchOptions} fetchOptions Options for the fetch, includes
* callbacks for fetching
* @param {Function} callback
Expand Down Expand Up @@ -728,6 +735,7 @@ Repository.prototype.fetchAll = function(
/**
* Merge a branch onto another branch
*
* @async
* @param {String|Reference} to
* @param {String|Reference} from
* @param {Signature} signature
Expand Down Expand Up @@ -928,6 +936,7 @@ function performRebase(repository, rebase, signature, beforeNextFn) {
/**
* Rebases a branch onto another branch
*
* @async
* @param {String} branch
* @param {String} upstream
* @param {String} onto
Expand Down Expand Up @@ -1006,6 +1015,7 @@ Repository.prototype.rebaseBranches = function(
/**
* Continues an existing rebase
*
* @async
* @param {Signature} signature Identity of the one performing the rebase
* @param {Function} beforeNextFn Callback to be called before each step
* of the rebase. If the callback returns a
Expand Down Expand Up @@ -1176,6 +1186,7 @@ Repository.prototype.fetchheadForeach = function(callback) {

/**
* Stages or unstages line selection of a specified file
*
* @async
* @param {String|Array} filePath The relative path of this file in the repo
* @param {Boolean} stageNew Set to stage new filemode. Unset to unstage.
Expand Down Expand Up @@ -1250,6 +1261,7 @@ Repository.prototype.stageFilemode = function(filePath, stageNew) {

/**
* Stages or unstages line selection of a specified file
*
* @async
* @param {String} filePath The relative path of this file in the repo
* @param {Array} newLines The array of DiffLine objects
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.