diff options
author | Scoots Dash <contact@minteck.org> | 2022-04-23 14:12:30 +0000 |
---|---|---|
committer | Scoots Dash <contact@minteck.org> | 2022-04-23 14:12:30 +0000 |
commit | a927497b43cbe1438f3d7478932f3f7d03ea347c (patch) | |
tree | 0a3c88978b4294fb30afad58daa86c46fbedc2f6 /node_modules/simple-git/src/lib/errors/git-error.d.ts | |
parent | ba5fa694351774f2684c1aefdc215da5c6f39ba6 (diff) | |
parent | f0db5bbbcd623812a391862d217519afafe197c6 (diff) | |
download | twilight-a927497b43cbe1438f3d7478932f3f7d03ea347c.tar.gz twilight-a927497b43cbe1438f3d7478932f3f7d03ea347c.tar.bz2 twilight-a927497b43cbe1438f3d7478932f3f7d03ea347c.zip |
Disable the Twilight Package Manager
See merge request minteck/twilight!1
Diffstat (limited to 'node_modules/simple-git/src/lib/errors/git-error.d.ts')
-rw-r--r-- | node_modules/simple-git/src/lib/errors/git-error.d.ts | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/node_modules/simple-git/src/lib/errors/git-error.d.ts b/node_modules/simple-git/src/lib/errors/git-error.d.ts deleted file mode 100644 index a0677ab..0000000 --- a/node_modules/simple-git/src/lib/errors/git-error.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * The `GitError` is thrown when the underlying `git` process throws a - * fatal exception (eg an `ENOENT` exception when attempting to use a - * non-writable directory as the root for your repo), and acts as the - * base class for more specific errors thrown by the parsing of the - * git response or errors in the configuration of the task about to - * be run. - * - * When an exception is thrown, pending tasks in the same instance will - * not be executed. The recommended way to run a series of tasks that - * can independently fail without needing to prevent future tasks from - * running is to catch them individually: - * - * ```typescript - import { gitP, SimpleGit, GitError, PullResult } from 'simple-git'; - - function catchTask (e: GitError) { - return e. - } - - const git = gitP(repoWorkingDir); - const pulled: PullResult | GitError = await git.pull().catch(catchTask); - const pushed: string | GitError = await git.pushTags().catch(catchTask); - ``` - */ -export declare class GitError extends Error { - task?: import("../tasks/task").EmptyTask | import("../types").StringTask<any> | import("../types").BufferTask<any> | undefined; - constructor(task?: import("../tasks/task").EmptyTask | import("../types").StringTask<any> | import("../types").BufferTask<any> | undefined, message?: string); -} |