mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
Added documentation for Checkout
This commit is contained in:
42
types/nodegit/checkout.d.ts
vendored
42
types/nodegit/checkout.d.ts
vendored
@@ -44,8 +44,50 @@ export namespace Checkout {
|
||||
}
|
||||
|
||||
export class Checkout {
|
||||
/**
|
||||
* Patch head checkout to automatically coerce objects.
|
||||
*
|
||||
* @static
|
||||
* @param {Repository} repo
|
||||
* @param {CheckoutOptions} [options]
|
||||
* @returns {Promise<void>}
|
||||
*
|
||||
* @memberof Checkout
|
||||
*/
|
||||
static head(repo: Repository, options?: CheckoutOptions): Promise<void>;
|
||||
/**
|
||||
* Patch index checkout to automatically coerce objects.
|
||||
*
|
||||
* @static
|
||||
* @param {Repository} repo
|
||||
* @param {Index} The
|
||||
* @param {CheckoutOptions} [options]
|
||||
* @returns {Promise<void>}
|
||||
*
|
||||
* @memberof Checkout
|
||||
*/
|
||||
static index(repo: Repository, The: Index, options?: CheckoutOptions): Promise<void>;
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @static
|
||||
* @param {CheckoutOptions} opts
|
||||
* @param {number} version
|
||||
* @returns {number}
|
||||
*
|
||||
* @memberof Checkout
|
||||
*/
|
||||
static initOptions(opts: CheckoutOptions, version: number): number;
|
||||
/**
|
||||
* Patch tree checkout to automatically coerce objects.
|
||||
*
|
||||
* @static
|
||||
* @param {Repository} repo
|
||||
* @param {(Oid | Tree | Commit | Reference)} treeish
|
||||
* @param {CheckoutOptions} [options]
|
||||
* @returns {Promise<void>}
|
||||
*
|
||||
* @memberof Checkout
|
||||
*/
|
||||
static tree(repo: Repository, treeish: Oid | Tree | Commit | Reference, options?: CheckoutOptions): Promise<void>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user