isomorphic-git
Advanced tools
+20
-0
@@ -586,2 +586,22 @@ export const __esModule: boolean; | ||
| /** | ||
| * Checks whether a ref names the branch HEAD points at in a repository where | ||
| * that branch has no commits yet. | ||
| * | ||
| * A repository created by `git init` has a HEAD pointing at a branch that | ||
| * does not exist on disk. Resolving that branch fails the same way resolving | ||
| * a misspelled ref does, so callers that want to treat the two differently | ||
| * need this to tell them apart. | ||
| * | ||
| * @param {Object} args | ||
| * @param {FSClient} args.fs - A file system implementation. | ||
| * @param {string} [args.gitdir=join(dir, '.git')] - [required] The [git directory](dir-vs-gitdir.md) path | ||
| * @param {string} args.ref - The ref to check. | ||
| * @returns {Promise<boolean>} - True if the ref names an unborn branch. | ||
| */ | ||
| static isUnbornBranch({ fs, gitdir, ref }: { | ||
| fs: FSClient; | ||
| gitdir?: string | undefined; | ||
| ref: string; | ||
| }): Promise<boolean>; | ||
| /** | ||
| * Checks if a ref exists. | ||
@@ -588,0 +608,0 @@ * |
+20
-0
@@ -585,2 +585,22 @@ export type TreeEntry = { | ||
| /** | ||
| * Checks whether a ref names the branch HEAD points at in a repository where | ||
| * that branch has no commits yet. | ||
| * | ||
| * A repository created by `git init` has a HEAD pointing at a branch that | ||
| * does not exist on disk. Resolving that branch fails the same way resolving | ||
| * a misspelled ref does, so callers that want to treat the two differently | ||
| * need this to tell them apart. | ||
| * | ||
| * @param {Object} args | ||
| * @param {FSClient} args.fs - A file system implementation. | ||
| * @param {string} [args.gitdir=join(dir, '.git')] - [required] The [git directory](dir-vs-gitdir.md) path | ||
| * @param {string} args.ref - The ref to check. | ||
| * @returns {Promise<boolean>} - True if the ref names an unborn branch. | ||
| */ | ||
| static isUnbornBranch({ fs, gitdir, ref }: { | ||
| fs: FSClient; | ||
| gitdir?: string | undefined; | ||
| ref: string; | ||
| }): Promise<boolean>; | ||
| /** | ||
| * Checks if a ref exists. | ||
@@ -587,0 +607,0 @@ * |
+1
-1
| { | ||
| "name": "isomorphic-git", | ||
| "version": "1.41.7", | ||
| "version": "1.41.8", | ||
| "description": "A pure JavaScript reimplementation of git for node and browsers", | ||
@@ -5,0 +5,0 @@ "type": "module", |
+1
-1
@@ -112,3 +112,3 @@ <p align="center"> | ||
| // or | ||
| import {plugins, clone, commit, push} from 'isomorphic-git' | ||
| import {add, clone, commit, push} from 'isomorphic-git' | ||
| ``` | ||
@@ -115,0 +115,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
4921172
0.23%60058
0.29%