isomorphic-git 1.42.5 → 1.42.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/index.cjs +181 -9
- package/index.d.cts +84 -64
- package/index.d.ts +84 -64
- package/index.js +181 -9
- package/index.umd.min.d.ts +84 -64
- package/index.umd.min.js +1 -1
- package/index.umd.min.js.map +1 -1
- package/managers/index.cjs +72 -7
- package/managers/index.js +72 -7
- package/managers/index.umd.min.js +1 -1
- package/managers/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -455,6 +455,8 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
|
|
|
455
455
|
<td align="center"><a href="https://github.com/amxmln"><img src="https://avatars.githubusercontent.com/u/15271679?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Amadeus Maximilian</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=amxmln" title="Code">💻</a> <a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3Aamxmln" title="Bug reports">🐛</a></td>
|
|
456
456
|
<td align="center"><a href="http://toxik.us/"><img src="https://avatars.githubusercontent.com/u/235319?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Alexandru Georoceanu</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=toxik" title="Code">💻</a></td>
|
|
457
457
|
<td align="center"><a href="https://github.com/arisgk"><img src="https://avatars.githubusercontent.com/u/4354335?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Aris Goudouras</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=arisgk" title="Code">💻</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=arisgk" title="Documentation">📖</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=arisgk" title="Tests">⚠️</a> <a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3Aarisgk" title="Bug reports">🐛</a></td>
|
|
458
|
+
<td align="center"><a href="https://github.com/TonyWu2333"><img src="https://avatars.githubusercontent.com/u/75903587?v=4?s=60" width="60px;" alt=""/><br /><sub><b>TonyWu</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=TonyWu2333" title="Code">💻</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=TonyWu2333" title="Tests">⚠️</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=TonyWu2333" title="Documentation">📖</a></td>
|
|
459
|
+
<td align="center"><a href="https://github.com/MadalinTurluianu"><img src="https://avatars.githubusercontent.com/u/81984912?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Madalin Turluianu</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=MadalinTurluianu" title="Code">💻</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=MadalinTurluianu" title="Tests">⚠️</a></td>
|
|
458
460
|
</tr>
|
|
459
461
|
</table>
|
|
460
462
|
|
package/index.cjs
CHANGED
|
@@ -1094,7 +1094,16 @@ async function isIndexStale(fs, filepath, cache) {
|
|
|
1094
1094
|
|
|
1095
1095
|
const currStats = await fs.lstat(filepath);
|
|
1096
1096
|
if (currStats === null) return false
|
|
1097
|
-
|
|
1097
|
+
if (compareStats(savedStats, currStats)) return true
|
|
1098
|
+
// compareStats only looks at whole seconds, but the index is often rewritten
|
|
1099
|
+
// in the same second with the same size (an entry got a new oid). Both stats
|
|
1100
|
+
// come from the same fs, so compare the full timestamps too.
|
|
1101
|
+
const saved = normalizeStats(savedStats);
|
|
1102
|
+
const curr = normalizeStats(currStats);
|
|
1103
|
+
return (
|
|
1104
|
+
saved.mtimeNanoseconds !== curr.mtimeNanoseconds ||
|
|
1105
|
+
saved.ctimeNanoseconds !== curr.ctimeNanoseconds
|
|
1106
|
+
)
|
|
1098
1107
|
}
|
|
1099
1108
|
|
|
1100
1109
|
class GitIndexManager {
|
|
@@ -3888,6 +3897,23 @@ class CheckoutConflictError extends BaseError {
|
|
|
3888
3897
|
/** @type {'CheckoutConflictError'} */
|
|
3889
3898
|
CheckoutConflictError.code = 'CheckoutConflictError';
|
|
3890
3899
|
|
|
3900
|
+
class CherryPickLocalChangesError extends BaseError {
|
|
3901
|
+
/**
|
|
3902
|
+
* @param {string[]} filepaths
|
|
3903
|
+
*/
|
|
3904
|
+
constructor(filepaths) {
|
|
3905
|
+
super(
|
|
3906
|
+
`Your local changes to the following files would be overwritten by cherry-pick: ${filepaths.join(
|
|
3907
|
+
', '
|
|
3908
|
+
)}`
|
|
3909
|
+
);
|
|
3910
|
+
this.code = this.name = CherryPickLocalChangesError.code;
|
|
3911
|
+
this.data = { filepaths };
|
|
3912
|
+
}
|
|
3913
|
+
}
|
|
3914
|
+
/** @type {'CherryPickLocalChangesError'} */
|
|
3915
|
+
CherryPickLocalChangesError.code = 'CherryPickLocalChangesError';
|
|
3916
|
+
|
|
3891
3917
|
class CherryPickMergeCommitError extends BaseError {
|
|
3892
3918
|
/**
|
|
3893
3919
|
* @param {string} oid
|
|
@@ -4244,6 +4270,7 @@ var Errors = /*#__PURE__*/Object.freeze({
|
|
|
4244
4270
|
AlreadyExistsError: AlreadyExistsError,
|
|
4245
4271
|
AmbiguousError: AmbiguousError,
|
|
4246
4272
|
CheckoutConflictError: CheckoutConflictError,
|
|
4273
|
+
CherryPickLocalChangesError: CherryPickLocalChangesError,
|
|
4247
4274
|
CherryPickMergeCommitError: CherryPickMergeCommitError,
|
|
4248
4275
|
CherryPickRootCommitError: CherryPickRootCommitError,
|
|
4249
4276
|
CommitNotFetchedError: CommitNotFetchedError,
|
|
@@ -4806,6 +4833,10 @@ class GitWalkerFs {
|
|
|
4806
4833
|
this.dir = dir;
|
|
4807
4834
|
this.gitdir = gitdir;
|
|
4808
4835
|
this.refresh = refresh;
|
|
4836
|
+
// Index entries whose stat info needs a refresh. `flush` writes them to
|
|
4837
|
+
// the index together when the walk is finished.
|
|
4838
|
+
this.refreshQueue = [];
|
|
4839
|
+
this.flushed = false;
|
|
4809
4840
|
|
|
4810
4841
|
this.config = null;
|
|
4811
4842
|
const walker = this;
|
|
@@ -4950,11 +4981,20 @@ class GitWalkerFs {
|
|
|
4950
4981
|
(!filemode || stats.mode === stage.mode) &&
|
|
4951
4982
|
compareStats(stats, stage, filemode, trustino)
|
|
4952
4983
|
) {
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
oid
|
|
4957
|
-
}
|
|
4984
|
+
if (self.flushed) {
|
|
4985
|
+
// The walk is finished and `flush` already ran, so write
|
|
4986
|
+
// it right away.
|
|
4987
|
+
index.insert({ filepath: entry._fullpath, stats, oid });
|
|
4988
|
+
} else {
|
|
4989
|
+
// Queue the refresh so `flush` can write all of them to the
|
|
4990
|
+
// index in one go when the walk is finished.
|
|
4991
|
+
self.refreshQueue.push({
|
|
4992
|
+
filepath: entry._fullpath,
|
|
4993
|
+
stage,
|
|
4994
|
+
stats,
|
|
4995
|
+
oid,
|
|
4996
|
+
});
|
|
4997
|
+
}
|
|
4958
4998
|
}
|
|
4959
4999
|
}
|
|
4960
5000
|
} else {
|
|
@@ -4968,6 +5008,26 @@ class GitWalkerFs {
|
|
|
4968
5008
|
return entry._oid
|
|
4969
5009
|
}
|
|
4970
5010
|
|
|
5011
|
+
/**
|
|
5012
|
+
* Write the queued stat refreshes to the index in a single pass.
|
|
5013
|
+
* `_walk` calls this once the walk is finished. The entries it returned
|
|
5014
|
+
* can still be asked for their oid afterwards, so from then on `oid`
|
|
5015
|
+
* writes a refresh right away instead of queueing it.
|
|
5016
|
+
*/
|
|
5017
|
+
async flush() {
|
|
5018
|
+
const { fs, gitdir, cache, refreshQueue } = this;
|
|
5019
|
+
this.refreshQueue = [];
|
|
5020
|
+
this.flushed = true;
|
|
5021
|
+
if (refreshQueue.length === 0) return
|
|
5022
|
+
await GitIndexManager.acquire({ fs, gitdir, cache }, async index => {
|
|
5023
|
+
for (const { filepath, stage, stats, oid } of refreshQueue) {
|
|
5024
|
+
// Only refresh entries that are still the ones we looked at.
|
|
5025
|
+
if (index.entriesMap.get(filepath) !== stage) continue
|
|
5026
|
+
index.insert({ filepath, stats, oid });
|
|
5027
|
+
}
|
|
5028
|
+
});
|
|
5029
|
+
}
|
|
5030
|
+
|
|
4971
5031
|
async _getGitConfig(fs, gitdir) {
|
|
4972
5032
|
if (this.config) {
|
|
4973
5033
|
return this.config
|
|
@@ -5165,7 +5225,13 @@ async function _walk({
|
|
|
5165
5225
|
return reduce(parent, walkedChildren)
|
|
5166
5226
|
}
|
|
5167
5227
|
};
|
|
5168
|
-
|
|
5228
|
+
const result = await walk(root);
|
|
5229
|
+
// Let walkers write out what they queued during the walk. WORKDIR queues
|
|
5230
|
+
// its index stat refreshes so the index is written once at the end.
|
|
5231
|
+
for (const walker of walkers) {
|
|
5232
|
+
if (walker.flush) await walker.flush();
|
|
5233
|
+
}
|
|
5234
|
+
return result
|
|
5169
5235
|
}
|
|
5170
5236
|
|
|
5171
5237
|
/**
|
|
@@ -8877,6 +8943,27 @@ async function _cherryPick({
|
|
|
8877
8943
|
oid: cherryParentOid,
|
|
8878
8944
|
});
|
|
8879
8945
|
|
|
8946
|
+
// The working tree is rewritten after a successful cherry-pick, and also when
|
|
8947
|
+
// conflicts are written out. Like `git cherry-pick`, refuse to start if that
|
|
8948
|
+
// would overwrite local changes to the files the picked commit touches.
|
|
8949
|
+
// Writing out conflicts rewrites every tracked file, so in that mode any local
|
|
8950
|
+
// change to a tracked file is in the way.
|
|
8951
|
+
if (dir && ((!dryRun && !noUpdateBranch) || !abortOnConflict)) {
|
|
8952
|
+
const filepaths = await findLocalChanges({
|
|
8953
|
+
fs,
|
|
8954
|
+
cache,
|
|
8955
|
+
dir,
|
|
8956
|
+
gitdir,
|
|
8957
|
+
headTree: currentCommit.tree,
|
|
8958
|
+
baseTree: cherryParent.tree,
|
|
8959
|
+
theirTree: cherryCommit.tree,
|
|
8960
|
+
allTracked: !abortOnConflict,
|
|
8961
|
+
});
|
|
8962
|
+
if (filepaths.length > 0) {
|
|
8963
|
+
throw new CherryPickLocalChangesError(filepaths)
|
|
8964
|
+
}
|
|
8965
|
+
}
|
|
8966
|
+
|
|
8880
8967
|
// Three-way merge
|
|
8881
8968
|
// - ourOid: current HEAD tree
|
|
8882
8969
|
// - baseOid: parent of commit being cherry-picked
|
|
@@ -8939,11 +9026,96 @@ async function _cherryPick({
|
|
|
8939
9026
|
return newOid
|
|
8940
9027
|
}
|
|
8941
9028
|
|
|
9029
|
+
/**
|
|
9030
|
+
* Lists the files changed between `baseTree` and `theirTree` whose index or
|
|
9031
|
+
* working tree copy differs from `headTree`, including untracked files that
|
|
9032
|
+
* would be replaced. With `allTracked`, every file tracked in `headTree` is
|
|
9033
|
+
* checked as well.
|
|
9034
|
+
*
|
|
9035
|
+
* @param {object} args
|
|
9036
|
+
* @param {import('../models/FileSystem.js').FileSystem} args.fs
|
|
9037
|
+
* @param {object} args.cache
|
|
9038
|
+
* @param {string} args.dir
|
|
9039
|
+
* @param {string} args.gitdir
|
|
9040
|
+
* @param {string} args.headTree
|
|
9041
|
+
* @param {string} args.baseTree
|
|
9042
|
+
* @param {string} args.theirTree
|
|
9043
|
+
* @param {boolean} args.allTracked
|
|
9044
|
+
*
|
|
9045
|
+
* @returns {Promise<string[]>}
|
|
9046
|
+
*/
|
|
9047
|
+
async function findLocalChanges({
|
|
9048
|
+
fs,
|
|
9049
|
+
cache,
|
|
9050
|
+
dir,
|
|
9051
|
+
gitdir,
|
|
9052
|
+
headTree,
|
|
9053
|
+
baseTree,
|
|
9054
|
+
theirTree,
|
|
9055
|
+
allTracked,
|
|
9056
|
+
}) {
|
|
9057
|
+
/** @type {string[]} */
|
|
9058
|
+
const changed = await _walk({
|
|
9059
|
+
fs,
|
|
9060
|
+
cache,
|
|
9061
|
+
dir,
|
|
9062
|
+
gitdir,
|
|
9063
|
+
trees: [TREE({ ref: baseTree }), TREE({ ref: theirTree })],
|
|
9064
|
+
map: async (filepath, [base, their]) => {
|
|
9065
|
+
if (filepath === '.') return
|
|
9066
|
+
if (base && their && (await base.oid()) === (await their.oid())) {
|
|
9067
|
+
return null
|
|
9068
|
+
}
|
|
9069
|
+
const types = [
|
|
9070
|
+
base ? await base.type() : undefined,
|
|
9071
|
+
their ? await their.type() : undefined,
|
|
9072
|
+
];
|
|
9073
|
+
if (types.includes('blob')) return filepath
|
|
9074
|
+
},
|
|
9075
|
+
});
|
|
9076
|
+
if (changed.length === 0 && !allTracked) return []
|
|
9077
|
+
|
|
9078
|
+
return _walk({
|
|
9079
|
+
fs,
|
|
9080
|
+
cache,
|
|
9081
|
+
dir,
|
|
9082
|
+
gitdir,
|
|
9083
|
+
trees: [TREE({ ref: headTree }), STAGE(), WORKDIR()],
|
|
9084
|
+
map: async (filepath, [head, stage, workdir]) => {
|
|
9085
|
+
if (filepath === '.') return
|
|
9086
|
+
if (!allTracked && !changed.some(path => worthWalking(filepath, path))) {
|
|
9087
|
+
return null
|
|
9088
|
+
}
|
|
9089
|
+
const headOid =
|
|
9090
|
+
head && (await head.type()) === 'blob' ? await head.oid() : undefined;
|
|
9091
|
+
if (!changed.includes(filepath) && !(allTracked && headOid)) return
|
|
9092
|
+
|
|
9093
|
+
const stageOid = stage ? await stage.oid() : undefined;
|
|
9094
|
+
// Staged changes would be replaced by the cherry-picked version.
|
|
9095
|
+
if (stageOid !== headOid) return filepath
|
|
9096
|
+
// A file missing from the working tree has nothing to lose.
|
|
9097
|
+
if (!workdir) return
|
|
9098
|
+
// Untracked files, directories in the way, and unstaged edits.
|
|
9099
|
+
if (
|
|
9100
|
+
!headOid ||
|
|
9101
|
+
(await workdir.type()) !== 'blob' ||
|
|
9102
|
+
(await workdir.oid()) !== headOid
|
|
9103
|
+
) {
|
|
9104
|
+
return filepath
|
|
9105
|
+
}
|
|
9106
|
+
},
|
|
9107
|
+
})
|
|
9108
|
+
}
|
|
9109
|
+
|
|
8942
9110
|
// @ts-check
|
|
8943
9111
|
|
|
8944
9112
|
/**
|
|
8945
9113
|
* Cherry-pick a commit onto the current branch
|
|
8946
9114
|
*
|
|
9115
|
+
* Like `git cherry-pick`, this refuses to run when it would overwrite local changes in the working tree.
|
|
9116
|
+
* If a file the picked commit changes has staged or unstaged changes, or an untracked file is in the way,
|
|
9117
|
+
* a `CherryPickLocalChangesError` listing those files is thrown before anything is written.
|
|
9118
|
+
*
|
|
8947
9119
|
* @param {object} args
|
|
8948
9120
|
* @param {FsClient} args.fs - a file system implementation
|
|
8949
9121
|
* @param {string} [args.dir] - The [working tree](dir-vs-gitdir.md) directory path
|
|
@@ -9851,8 +10023,8 @@ function filterCapabilities(server, client) {
|
|
|
9851
10023
|
|
|
9852
10024
|
const pkg = {
|
|
9853
10025
|
name: 'isomorphic-git',
|
|
9854
|
-
version: '1.42.
|
|
9855
|
-
agent: 'git/isomorphic-git@1.42.
|
|
10026
|
+
version: '1.42.7',
|
|
10027
|
+
agent: 'git/isomorphic-git@1.42.7',
|
|
9856
10028
|
};
|
|
9857
10029
|
|
|
9858
10030
|
class FIFO {
|
package/index.d.cts
CHANGED
|
@@ -638,6 +638,7 @@ export var Errors: Readonly<{
|
|
|
638
638
|
AlreadyExistsError: typeof AlreadyExistsError;
|
|
639
639
|
AmbiguousError: typeof AmbiguousError;
|
|
640
640
|
CheckoutConflictError: typeof CheckoutConflictError;
|
|
641
|
+
CherryPickLocalChangesError: typeof CherryPickLocalChangesError;
|
|
641
642
|
CherryPickMergeCommitError: typeof CherryPickMergeCommitError;
|
|
642
643
|
CherryPickRootCommitError: typeof CherryPickRootCommitError;
|
|
643
644
|
CommitNotFetchedError: typeof CommitNotFetchedError;
|
|
@@ -996,6 +997,10 @@ export function checkout({ fs, onProgress, onPostCheckout, dir, gitdir, remote,
|
|
|
996
997
|
/**
|
|
997
998
|
* Cherry-pick a commit onto the current branch
|
|
998
999
|
*
|
|
1000
|
+
* Like `git cherry-pick`, this refuses to run when it would overwrite local changes in the working tree.
|
|
1001
|
+
* If a file the picked commit changes has staged or unstaged changes, or an untracked file is in the way,
|
|
1002
|
+
* a `CherryPickLocalChangesError` listing those files is thrown before anything is written.
|
|
1003
|
+
*
|
|
999
1004
|
* @param {object} args
|
|
1000
1005
|
* @param {FsClient} args.fs - a file system implementation
|
|
1001
1006
|
* @param {string} [args.dir] - The [working tree](dir-vs-gitdir.md) directory path
|
|
@@ -3984,6 +3989,21 @@ declare namespace CheckoutConflictError {
|
|
|
3984
3989
|
let code_2: "CheckoutConflictError";
|
|
3985
3990
|
export { code_2 as code };
|
|
3986
3991
|
}
|
|
3992
|
+
declare class CherryPickLocalChangesError extends BaseError {
|
|
3993
|
+
/**
|
|
3994
|
+
* @param {string[]} filepaths
|
|
3995
|
+
*/
|
|
3996
|
+
constructor(filepaths: string[]);
|
|
3997
|
+
code: "CherryPickLocalChangesError";
|
|
3998
|
+
name: "CherryPickLocalChangesError";
|
|
3999
|
+
data: {
|
|
4000
|
+
filepaths: string[];
|
|
4001
|
+
};
|
|
4002
|
+
}
|
|
4003
|
+
declare namespace CherryPickLocalChangesError {
|
|
4004
|
+
let code_3: "CherryPickLocalChangesError";
|
|
4005
|
+
export { code_3 as code };
|
|
4006
|
+
}
|
|
3987
4007
|
declare class CherryPickMergeCommitError extends BaseError {
|
|
3988
4008
|
/**
|
|
3989
4009
|
* @param {string} oid
|
|
@@ -3998,8 +4018,8 @@ declare class CherryPickMergeCommitError extends BaseError {
|
|
|
3998
4018
|
};
|
|
3999
4019
|
}
|
|
4000
4020
|
declare namespace CherryPickMergeCommitError {
|
|
4001
|
-
let
|
|
4002
|
-
export {
|
|
4021
|
+
let code_4: "CherryPickMergeCommitError";
|
|
4022
|
+
export { code_4 as code };
|
|
4003
4023
|
}
|
|
4004
4024
|
declare class CherryPickRootCommitError extends BaseError {
|
|
4005
4025
|
/**
|
|
@@ -4013,8 +4033,8 @@ declare class CherryPickRootCommitError extends BaseError {
|
|
|
4013
4033
|
};
|
|
4014
4034
|
}
|
|
4015
4035
|
declare namespace CherryPickRootCommitError {
|
|
4016
|
-
let
|
|
4017
|
-
export {
|
|
4036
|
+
let code_5: "CherryPickRootCommitError";
|
|
4037
|
+
export { code_5 as code };
|
|
4018
4038
|
}
|
|
4019
4039
|
declare class CommitNotFetchedError extends BaseError {
|
|
4020
4040
|
/**
|
|
@@ -4030,8 +4050,8 @@ declare class CommitNotFetchedError extends BaseError {
|
|
|
4030
4050
|
};
|
|
4031
4051
|
}
|
|
4032
4052
|
declare namespace CommitNotFetchedError {
|
|
4033
|
-
let
|
|
4034
|
-
export {
|
|
4053
|
+
let code_6: "CommitNotFetchedError";
|
|
4054
|
+
export { code_6 as code };
|
|
4035
4055
|
}
|
|
4036
4056
|
declare class EmptyCommitError extends BaseError {
|
|
4037
4057
|
constructor();
|
|
@@ -4040,8 +4060,8 @@ declare class EmptyCommitError extends BaseError {
|
|
|
4040
4060
|
data: {};
|
|
4041
4061
|
}
|
|
4042
4062
|
declare namespace EmptyCommitError {
|
|
4043
|
-
let
|
|
4044
|
-
export {
|
|
4063
|
+
let code_7: "EmptyCommitError";
|
|
4064
|
+
export { code_7 as code };
|
|
4045
4065
|
}
|
|
4046
4066
|
declare class EmptyServerResponseError extends BaseError {
|
|
4047
4067
|
constructor();
|
|
@@ -4050,8 +4070,8 @@ declare class EmptyServerResponseError extends BaseError {
|
|
|
4050
4070
|
data: {};
|
|
4051
4071
|
}
|
|
4052
4072
|
declare namespace EmptyServerResponseError {
|
|
4053
|
-
let
|
|
4054
|
-
export {
|
|
4073
|
+
let code_8: "EmptyServerResponseError";
|
|
4074
|
+
export { code_8 as code };
|
|
4055
4075
|
}
|
|
4056
4076
|
declare class FastForwardError extends BaseError {
|
|
4057
4077
|
constructor();
|
|
@@ -4060,8 +4080,8 @@ declare class FastForwardError extends BaseError {
|
|
|
4060
4080
|
data: {};
|
|
4061
4081
|
}
|
|
4062
4082
|
declare namespace FastForwardError {
|
|
4063
|
-
let
|
|
4064
|
-
export {
|
|
4083
|
+
let code_9: "FastForwardError";
|
|
4084
|
+
export { code_9 as code };
|
|
4065
4085
|
}
|
|
4066
4086
|
declare class GitPushError extends BaseError {
|
|
4067
4087
|
/**
|
|
@@ -4077,8 +4097,8 @@ declare class GitPushError extends BaseError {
|
|
|
4077
4097
|
};
|
|
4078
4098
|
}
|
|
4079
4099
|
declare namespace GitPushError {
|
|
4080
|
-
let
|
|
4081
|
-
export {
|
|
4100
|
+
let code_10: "GitPushError";
|
|
4101
|
+
export { code_10 as code };
|
|
4082
4102
|
}
|
|
4083
4103
|
declare class HttpError extends BaseError {
|
|
4084
4104
|
/**
|
|
@@ -4096,8 +4116,8 @@ declare class HttpError extends BaseError {
|
|
|
4096
4116
|
};
|
|
4097
4117
|
}
|
|
4098
4118
|
declare namespace HttpError {
|
|
4099
|
-
let
|
|
4100
|
-
export {
|
|
4119
|
+
let code_11: "HttpError";
|
|
4120
|
+
export { code_11 as code };
|
|
4101
4121
|
}
|
|
4102
4122
|
declare class InternalError extends BaseError {
|
|
4103
4123
|
/**
|
|
@@ -4111,8 +4131,8 @@ declare class InternalError extends BaseError {
|
|
|
4111
4131
|
};
|
|
4112
4132
|
}
|
|
4113
4133
|
declare namespace InternalError {
|
|
4114
|
-
let
|
|
4115
|
-
export {
|
|
4134
|
+
let code_12: "InternalError";
|
|
4135
|
+
export { code_12 as code };
|
|
4116
4136
|
}
|
|
4117
4137
|
declare class InvalidFilepathError extends BaseError {
|
|
4118
4138
|
/**
|
|
@@ -4126,8 +4146,8 @@ declare class InvalidFilepathError extends BaseError {
|
|
|
4126
4146
|
};
|
|
4127
4147
|
}
|
|
4128
4148
|
declare namespace InvalidFilepathError {
|
|
4129
|
-
let
|
|
4130
|
-
export {
|
|
4149
|
+
let code_13: "InvalidFilepathError";
|
|
4150
|
+
export { code_13 as code };
|
|
4131
4151
|
}
|
|
4132
4152
|
declare class InvalidOidError extends BaseError {
|
|
4133
4153
|
/**
|
|
@@ -4141,8 +4161,8 @@ declare class InvalidOidError extends BaseError {
|
|
|
4141
4161
|
};
|
|
4142
4162
|
}
|
|
4143
4163
|
declare namespace InvalidOidError {
|
|
4144
|
-
let
|
|
4145
|
-
export {
|
|
4164
|
+
let code_14: "InvalidOidError";
|
|
4165
|
+
export { code_14 as code };
|
|
4146
4166
|
}
|
|
4147
4167
|
declare class InvalidRefNameError extends BaseError {
|
|
4148
4168
|
/**
|
|
@@ -4159,8 +4179,8 @@ declare class InvalidRefNameError extends BaseError {
|
|
|
4159
4179
|
};
|
|
4160
4180
|
}
|
|
4161
4181
|
declare namespace InvalidRefNameError {
|
|
4162
|
-
let
|
|
4163
|
-
export {
|
|
4182
|
+
let code_15: "InvalidRefNameError";
|
|
4183
|
+
export { code_15 as code };
|
|
4164
4184
|
}
|
|
4165
4185
|
declare class MaxDepthError extends BaseError {
|
|
4166
4186
|
/**
|
|
@@ -4174,8 +4194,8 @@ declare class MaxDepthError extends BaseError {
|
|
|
4174
4194
|
};
|
|
4175
4195
|
}
|
|
4176
4196
|
declare namespace MaxDepthError {
|
|
4177
|
-
let
|
|
4178
|
-
export {
|
|
4197
|
+
let code_16: "MaxDepthError";
|
|
4198
|
+
export { code_16 as code };
|
|
4179
4199
|
}
|
|
4180
4200
|
declare class MergeNotSupportedError extends BaseError {
|
|
4181
4201
|
constructor();
|
|
@@ -4184,8 +4204,8 @@ declare class MergeNotSupportedError extends BaseError {
|
|
|
4184
4204
|
data: {};
|
|
4185
4205
|
}
|
|
4186
4206
|
declare namespace MergeNotSupportedError {
|
|
4187
|
-
let
|
|
4188
|
-
export {
|
|
4207
|
+
let code_17: "MergeNotSupportedError";
|
|
4208
|
+
export { code_17 as code };
|
|
4189
4209
|
}
|
|
4190
4210
|
declare class MergeConflictError extends BaseError {
|
|
4191
4211
|
/**
|
|
@@ -4205,8 +4225,8 @@ declare class MergeConflictError extends BaseError {
|
|
|
4205
4225
|
};
|
|
4206
4226
|
}
|
|
4207
4227
|
declare namespace MergeConflictError {
|
|
4208
|
-
let
|
|
4209
|
-
export {
|
|
4228
|
+
let code_18: "MergeConflictError";
|
|
4229
|
+
export { code_18 as code };
|
|
4210
4230
|
}
|
|
4211
4231
|
declare class MissingNameError extends BaseError {
|
|
4212
4232
|
/**
|
|
@@ -4220,8 +4240,8 @@ declare class MissingNameError extends BaseError {
|
|
|
4220
4240
|
};
|
|
4221
4241
|
}
|
|
4222
4242
|
declare namespace MissingNameError {
|
|
4223
|
-
let
|
|
4224
|
-
export {
|
|
4243
|
+
let code_19: "MissingNameError";
|
|
4244
|
+
export { code_19 as code };
|
|
4225
4245
|
}
|
|
4226
4246
|
declare class MissingParameterError extends BaseError {
|
|
4227
4247
|
/**
|
|
@@ -4235,8 +4255,8 @@ declare class MissingParameterError extends BaseError {
|
|
|
4235
4255
|
};
|
|
4236
4256
|
}
|
|
4237
4257
|
declare namespace MissingParameterError {
|
|
4238
|
-
let
|
|
4239
|
-
export {
|
|
4258
|
+
let code_20: "MissingParameterError";
|
|
4259
|
+
export { code_20 as code };
|
|
4240
4260
|
}
|
|
4241
4261
|
declare class MultipleGitError extends BaseError {
|
|
4242
4262
|
/**
|
|
@@ -4252,8 +4272,8 @@ declare class MultipleGitError extends BaseError {
|
|
|
4252
4272
|
errors: Error[];
|
|
4253
4273
|
}
|
|
4254
4274
|
declare namespace MultipleGitError {
|
|
4255
|
-
let
|
|
4256
|
-
export {
|
|
4275
|
+
let code_21: "MultipleGitError";
|
|
4276
|
+
export { code_21 as code };
|
|
4257
4277
|
}
|
|
4258
4278
|
declare class NoRefspecError extends BaseError {
|
|
4259
4279
|
/**
|
|
@@ -4267,8 +4287,8 @@ declare class NoRefspecError extends BaseError {
|
|
|
4267
4287
|
};
|
|
4268
4288
|
}
|
|
4269
4289
|
declare namespace NoRefspecError {
|
|
4270
|
-
let
|
|
4271
|
-
export {
|
|
4290
|
+
let code_22: "NoRefspecError";
|
|
4291
|
+
export { code_22 as code };
|
|
4272
4292
|
}
|
|
4273
4293
|
declare class NotFoundError extends BaseError {
|
|
4274
4294
|
/**
|
|
@@ -4282,8 +4302,8 @@ declare class NotFoundError extends BaseError {
|
|
|
4282
4302
|
};
|
|
4283
4303
|
}
|
|
4284
4304
|
declare namespace NotFoundError {
|
|
4285
|
-
let
|
|
4286
|
-
export {
|
|
4305
|
+
let code_23: "NotFoundError";
|
|
4306
|
+
export { code_23 as code };
|
|
4287
4307
|
}
|
|
4288
4308
|
declare class ObjectTypeError extends BaseError {
|
|
4289
4309
|
/**
|
|
@@ -4303,8 +4323,8 @@ declare class ObjectTypeError extends BaseError {
|
|
|
4303
4323
|
};
|
|
4304
4324
|
}
|
|
4305
4325
|
declare namespace ObjectTypeError {
|
|
4306
|
-
let
|
|
4307
|
-
export {
|
|
4326
|
+
let code_24: "ObjectTypeError";
|
|
4327
|
+
export { code_24 as code };
|
|
4308
4328
|
}
|
|
4309
4329
|
declare class ParseError extends BaseError {
|
|
4310
4330
|
/**
|
|
@@ -4320,8 +4340,8 @@ declare class ParseError extends BaseError {
|
|
|
4320
4340
|
};
|
|
4321
4341
|
}
|
|
4322
4342
|
declare namespace ParseError {
|
|
4323
|
-
let
|
|
4324
|
-
export {
|
|
4343
|
+
let code_25: "ParseError";
|
|
4344
|
+
export { code_25 as code };
|
|
4325
4345
|
}
|
|
4326
4346
|
declare class PushRejectedError extends BaseError {
|
|
4327
4347
|
/**
|
|
@@ -4335,8 +4355,8 @@ declare class PushRejectedError extends BaseError {
|
|
|
4335
4355
|
};
|
|
4336
4356
|
}
|
|
4337
4357
|
declare namespace PushRejectedError {
|
|
4338
|
-
let
|
|
4339
|
-
export {
|
|
4358
|
+
let code_26: "PushRejectedError";
|
|
4359
|
+
export { code_26 as code };
|
|
4340
4360
|
}
|
|
4341
4361
|
declare class RemoteCapabilityError extends BaseError {
|
|
4342
4362
|
/**
|
|
@@ -4352,8 +4372,8 @@ declare class RemoteCapabilityError extends BaseError {
|
|
|
4352
4372
|
};
|
|
4353
4373
|
}
|
|
4354
4374
|
declare namespace RemoteCapabilityError {
|
|
4355
|
-
let
|
|
4356
|
-
export {
|
|
4375
|
+
let code_27: "RemoteCapabilityError";
|
|
4376
|
+
export { code_27 as code };
|
|
4357
4377
|
}
|
|
4358
4378
|
declare class SmartHttpError extends BaseError {
|
|
4359
4379
|
/**
|
|
@@ -4369,8 +4389,8 @@ declare class SmartHttpError extends BaseError {
|
|
|
4369
4389
|
};
|
|
4370
4390
|
}
|
|
4371
4391
|
declare namespace SmartHttpError {
|
|
4372
|
-
let
|
|
4373
|
-
export {
|
|
4392
|
+
let code_28: "SmartHttpError";
|
|
4393
|
+
export { code_28 as code };
|
|
4374
4394
|
}
|
|
4375
4395
|
declare class UnknownTransportError extends BaseError {
|
|
4376
4396
|
/**
|
|
@@ -4388,8 +4408,8 @@ declare class UnknownTransportError extends BaseError {
|
|
|
4388
4408
|
};
|
|
4389
4409
|
}
|
|
4390
4410
|
declare namespace UnknownTransportError {
|
|
4391
|
-
let
|
|
4392
|
-
export {
|
|
4411
|
+
let code_29: "UnknownTransportError";
|
|
4412
|
+
export { code_29 as code };
|
|
4393
4413
|
}
|
|
4394
4414
|
declare class UnsafeFilepathError extends BaseError {
|
|
4395
4415
|
/**
|
|
@@ -4403,8 +4423,8 @@ declare class UnsafeFilepathError extends BaseError {
|
|
|
4403
4423
|
};
|
|
4404
4424
|
}
|
|
4405
4425
|
declare namespace UnsafeFilepathError {
|
|
4406
|
-
let
|
|
4407
|
-
export {
|
|
4426
|
+
let code_30: "UnsafeFilepathError";
|
|
4427
|
+
export { code_30 as code };
|
|
4408
4428
|
}
|
|
4409
4429
|
declare class UrlParseError extends BaseError {
|
|
4410
4430
|
/**
|
|
@@ -4418,8 +4438,8 @@ declare class UrlParseError extends BaseError {
|
|
|
4418
4438
|
};
|
|
4419
4439
|
}
|
|
4420
4440
|
declare namespace UrlParseError {
|
|
4421
|
-
let
|
|
4422
|
-
export {
|
|
4441
|
+
let code_31: "UrlParseError";
|
|
4442
|
+
export { code_31 as code };
|
|
4423
4443
|
}
|
|
4424
4444
|
declare class UserCanceledError extends BaseError {
|
|
4425
4445
|
constructor();
|
|
@@ -4428,8 +4448,8 @@ declare class UserCanceledError extends BaseError {
|
|
|
4428
4448
|
data: {};
|
|
4429
4449
|
}
|
|
4430
4450
|
declare namespace UserCanceledError {
|
|
4431
|
-
let
|
|
4432
|
-
export {
|
|
4451
|
+
let code_32: "UserCanceledError";
|
|
4452
|
+
export { code_32 as code };
|
|
4433
4453
|
}
|
|
4434
4454
|
declare class UnmergedPathsError extends BaseError {
|
|
4435
4455
|
/**
|
|
@@ -4443,8 +4463,8 @@ declare class UnmergedPathsError extends BaseError {
|
|
|
4443
4463
|
};
|
|
4444
4464
|
}
|
|
4445
4465
|
declare namespace UnmergedPathsError {
|
|
4446
|
-
let
|
|
4447
|
-
export {
|
|
4466
|
+
let code_33: "UnmergedPathsError";
|
|
4467
|
+
export { code_33 as code };
|
|
4448
4468
|
}
|
|
4449
4469
|
declare class IndexResetError extends BaseError {
|
|
4450
4470
|
/**
|
|
@@ -4458,8 +4478,8 @@ declare class IndexResetError extends BaseError {
|
|
|
4458
4478
|
};
|
|
4459
4479
|
}
|
|
4460
4480
|
declare namespace IndexResetError {
|
|
4461
|
-
let
|
|
4462
|
-
export {
|
|
4481
|
+
let code_34: "IndexResetError";
|
|
4482
|
+
export { code_34 as code };
|
|
4463
4483
|
}
|
|
4464
4484
|
declare class NoCommitError extends BaseError {
|
|
4465
4485
|
/**
|
|
@@ -4473,8 +4493,8 @@ declare class NoCommitError extends BaseError {
|
|
|
4473
4493
|
};
|
|
4474
4494
|
}
|
|
4475
4495
|
declare namespace NoCommitError {
|
|
4476
|
-
let
|
|
4477
|
-
export {
|
|
4496
|
+
let code_35: "NoCommitError";
|
|
4497
|
+
export { code_35 as code };
|
|
4478
4498
|
}
|
|
4479
4499
|
/**
|
|
4480
4500
|
* @typedef {Object} GitProgressEvent
|