isomorphic-git 1.38.10 → 1.39.0
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/index.cjs +29 -2
- package/index.d.cts +70 -57
- package/index.d.ts +70 -57
- package/index.js +29 -2
- package/index.umd.min.d.ts +70 -57
- package/index.umd.min.js +1 -1
- package/index.umd.min.js.map +1 -1
- package/managers/index.cjs +10 -0
- package/managers/index.js +10 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -705,6 +705,7 @@ export var Errors: Readonly<{
|
|
|
705
705
|
CherryPickMergeCommitError: typeof CherryPickMergeCommitError;
|
|
706
706
|
CherryPickRootCommitError: typeof CherryPickRootCommitError;
|
|
707
707
|
CommitNotFetchedError: typeof CommitNotFetchedError;
|
|
708
|
+
EmptyCommitError: typeof EmptyCommitError;
|
|
708
709
|
EmptyServerResponseError: typeof EmptyServerResponseError;
|
|
709
710
|
FastForwardError: typeof FastForwardError;
|
|
710
711
|
GitPushError: typeof GitPushError;
|
|
@@ -1200,6 +1201,7 @@ export function clone({ fs, http, onProgress, onMessage, onAuth, onAuthSuccess,
|
|
|
1200
1201
|
* @param {boolean} [args.amend = false] - If true, replaces the last commit pointed to by `ref` with a new commit.
|
|
1201
1202
|
* @param {boolean} [args.dryRun = false] - If true, simulates making a commit so you can test whether it would succeed. Implies `noUpdateBranch`.
|
|
1202
1203
|
* @param {boolean} [args.noUpdateBranch = false] - If true, does not update the branch pointer after creating the commit.
|
|
1204
|
+
* @param {boolean} [args.disallowEmpty = false] - If true, throws an error instead of creating a commit with no staged changes.
|
|
1203
1205
|
* @param {string} [args.ref] - The fully expanded name of the branch to commit to. Default is the current branch pointed to by HEAD. (TODO: fix it so it can expand branch names without throwing if the branch doesn't exist yet.)
|
|
1204
1206
|
* @param {string[]} [args.parent] - The SHA-1 object ids of the commits to use as parents. If not specified, the commit pointed to by `ref` is used.
|
|
1205
1207
|
* @param {string} [args.tree] - The SHA-1 object id of the tree to use. If not specified, a new tree object is created from the current git index.
|
|
@@ -1220,7 +1222,7 @@ export function clone({ fs, http, onProgress, onMessage, onAuth, onAuthSuccess,
|
|
|
1220
1222
|
* console.log(sha)
|
|
1221
1223
|
*
|
|
1222
1224
|
*/
|
|
1223
|
-
export function commit({ fs: _fs, onSign, dir, gitdir, message, author, committer, signingKey, amend, dryRun, noUpdateBranch, ref, parent, tree, cache, }: {
|
|
1225
|
+
export function commit({ fs: _fs, onSign, dir, gitdir, message, author, committer, signingKey, amend, dryRun, noUpdateBranch, disallowEmpty, ref, parent, tree, cache, }: {
|
|
1224
1226
|
fs: FsClient;
|
|
1225
1227
|
onSign?: SignCallback | undefined;
|
|
1226
1228
|
dir?: string | undefined;
|
|
@@ -1242,6 +1244,7 @@ export function commit({ fs: _fs, onSign, dir, gitdir, message, author, committe
|
|
|
1242
1244
|
amend?: boolean | undefined;
|
|
1243
1245
|
dryRun?: boolean | undefined;
|
|
1244
1246
|
noUpdateBranch?: boolean | undefined;
|
|
1247
|
+
disallowEmpty?: boolean | undefined;
|
|
1245
1248
|
ref?: string | undefined;
|
|
1246
1249
|
parent?: string[] | undefined;
|
|
1247
1250
|
tree?: string | undefined;
|
|
@@ -4028,6 +4031,16 @@ declare namespace CommitNotFetchedError {
|
|
|
4028
4031
|
let code_5: "CommitNotFetchedError";
|
|
4029
4032
|
export { code_5 as code };
|
|
4030
4033
|
}
|
|
4034
|
+
declare class EmptyCommitError extends BaseError {
|
|
4035
|
+
constructor();
|
|
4036
|
+
code: "EmptyCommitError";
|
|
4037
|
+
name: "EmptyCommitError";
|
|
4038
|
+
data: {};
|
|
4039
|
+
}
|
|
4040
|
+
declare namespace EmptyCommitError {
|
|
4041
|
+
let code_6: "EmptyCommitError";
|
|
4042
|
+
export { code_6 as code };
|
|
4043
|
+
}
|
|
4031
4044
|
declare class EmptyServerResponseError extends BaseError {
|
|
4032
4045
|
constructor();
|
|
4033
4046
|
code: "EmptyServerResponseError";
|
|
@@ -4035,8 +4048,8 @@ declare class EmptyServerResponseError extends BaseError {
|
|
|
4035
4048
|
data: {};
|
|
4036
4049
|
}
|
|
4037
4050
|
declare namespace EmptyServerResponseError {
|
|
4038
|
-
let
|
|
4039
|
-
export {
|
|
4051
|
+
let code_7: "EmptyServerResponseError";
|
|
4052
|
+
export { code_7 as code };
|
|
4040
4053
|
}
|
|
4041
4054
|
declare class FastForwardError extends BaseError {
|
|
4042
4055
|
constructor();
|
|
@@ -4045,8 +4058,8 @@ declare class FastForwardError extends BaseError {
|
|
|
4045
4058
|
data: {};
|
|
4046
4059
|
}
|
|
4047
4060
|
declare namespace FastForwardError {
|
|
4048
|
-
let
|
|
4049
|
-
export {
|
|
4061
|
+
let code_8: "FastForwardError";
|
|
4062
|
+
export { code_8 as code };
|
|
4050
4063
|
}
|
|
4051
4064
|
declare class GitPushError extends BaseError {
|
|
4052
4065
|
/**
|
|
@@ -4062,8 +4075,8 @@ declare class GitPushError extends BaseError {
|
|
|
4062
4075
|
};
|
|
4063
4076
|
}
|
|
4064
4077
|
declare namespace GitPushError {
|
|
4065
|
-
let
|
|
4066
|
-
export {
|
|
4078
|
+
let code_9: "GitPushError";
|
|
4079
|
+
export { code_9 as code };
|
|
4067
4080
|
}
|
|
4068
4081
|
declare class HttpError extends BaseError {
|
|
4069
4082
|
/**
|
|
@@ -4081,8 +4094,8 @@ declare class HttpError extends BaseError {
|
|
|
4081
4094
|
};
|
|
4082
4095
|
}
|
|
4083
4096
|
declare namespace HttpError {
|
|
4084
|
-
let
|
|
4085
|
-
export {
|
|
4097
|
+
let code_10: "HttpError";
|
|
4098
|
+
export { code_10 as code };
|
|
4086
4099
|
}
|
|
4087
4100
|
declare class InternalError extends BaseError {
|
|
4088
4101
|
/**
|
|
@@ -4096,8 +4109,8 @@ declare class InternalError extends BaseError {
|
|
|
4096
4109
|
};
|
|
4097
4110
|
}
|
|
4098
4111
|
declare namespace InternalError {
|
|
4099
|
-
let
|
|
4100
|
-
export {
|
|
4112
|
+
let code_11: "InternalError";
|
|
4113
|
+
export { code_11 as code };
|
|
4101
4114
|
}
|
|
4102
4115
|
declare class InvalidFilepathError extends BaseError {
|
|
4103
4116
|
/**
|
|
@@ -4111,8 +4124,8 @@ declare class InvalidFilepathError extends BaseError {
|
|
|
4111
4124
|
};
|
|
4112
4125
|
}
|
|
4113
4126
|
declare namespace InvalidFilepathError {
|
|
4114
|
-
let
|
|
4115
|
-
export {
|
|
4127
|
+
let code_12: "InvalidFilepathError";
|
|
4128
|
+
export { code_12 as code };
|
|
4116
4129
|
}
|
|
4117
4130
|
declare class InvalidOidError extends BaseError {
|
|
4118
4131
|
/**
|
|
@@ -4126,8 +4139,8 @@ declare class InvalidOidError extends BaseError {
|
|
|
4126
4139
|
};
|
|
4127
4140
|
}
|
|
4128
4141
|
declare namespace InvalidOidError {
|
|
4129
|
-
let
|
|
4130
|
-
export {
|
|
4142
|
+
let code_13: "InvalidOidError";
|
|
4143
|
+
export { code_13 as code };
|
|
4131
4144
|
}
|
|
4132
4145
|
declare class InvalidRefNameError extends BaseError {
|
|
4133
4146
|
/**
|
|
@@ -4144,8 +4157,8 @@ declare class InvalidRefNameError extends BaseError {
|
|
|
4144
4157
|
};
|
|
4145
4158
|
}
|
|
4146
4159
|
declare namespace InvalidRefNameError {
|
|
4147
|
-
let
|
|
4148
|
-
export {
|
|
4160
|
+
let code_14: "InvalidRefNameError";
|
|
4161
|
+
export { code_14 as code };
|
|
4149
4162
|
}
|
|
4150
4163
|
declare class MaxDepthError extends BaseError {
|
|
4151
4164
|
/**
|
|
@@ -4159,8 +4172,8 @@ declare class MaxDepthError extends BaseError {
|
|
|
4159
4172
|
};
|
|
4160
4173
|
}
|
|
4161
4174
|
declare namespace MaxDepthError {
|
|
4162
|
-
let
|
|
4163
|
-
export {
|
|
4175
|
+
let code_15: "MaxDepthError";
|
|
4176
|
+
export { code_15 as code };
|
|
4164
4177
|
}
|
|
4165
4178
|
declare class MergeNotSupportedError extends BaseError {
|
|
4166
4179
|
constructor();
|
|
@@ -4169,8 +4182,8 @@ declare class MergeNotSupportedError extends BaseError {
|
|
|
4169
4182
|
data: {};
|
|
4170
4183
|
}
|
|
4171
4184
|
declare namespace MergeNotSupportedError {
|
|
4172
|
-
let
|
|
4173
|
-
export {
|
|
4185
|
+
let code_16: "MergeNotSupportedError";
|
|
4186
|
+
export { code_16 as code };
|
|
4174
4187
|
}
|
|
4175
4188
|
declare class MergeConflictError extends BaseError {
|
|
4176
4189
|
/**
|
|
@@ -4190,8 +4203,8 @@ declare class MergeConflictError extends BaseError {
|
|
|
4190
4203
|
};
|
|
4191
4204
|
}
|
|
4192
4205
|
declare namespace MergeConflictError {
|
|
4193
|
-
let
|
|
4194
|
-
export {
|
|
4206
|
+
let code_17: "MergeConflictError";
|
|
4207
|
+
export { code_17 as code };
|
|
4195
4208
|
}
|
|
4196
4209
|
declare class MissingNameError extends BaseError {
|
|
4197
4210
|
/**
|
|
@@ -4205,8 +4218,8 @@ declare class MissingNameError extends BaseError {
|
|
|
4205
4218
|
};
|
|
4206
4219
|
}
|
|
4207
4220
|
declare namespace MissingNameError {
|
|
4208
|
-
let
|
|
4209
|
-
export {
|
|
4221
|
+
let code_18: "MissingNameError";
|
|
4222
|
+
export { code_18 as code };
|
|
4210
4223
|
}
|
|
4211
4224
|
declare class MissingParameterError extends BaseError {
|
|
4212
4225
|
/**
|
|
@@ -4220,8 +4233,8 @@ declare class MissingParameterError extends BaseError {
|
|
|
4220
4233
|
};
|
|
4221
4234
|
}
|
|
4222
4235
|
declare namespace MissingParameterError {
|
|
4223
|
-
let
|
|
4224
|
-
export {
|
|
4236
|
+
let code_19: "MissingParameterError";
|
|
4237
|
+
export { code_19 as code };
|
|
4225
4238
|
}
|
|
4226
4239
|
declare class MultipleGitError extends BaseError {
|
|
4227
4240
|
/**
|
|
@@ -4237,8 +4250,8 @@ declare class MultipleGitError extends BaseError {
|
|
|
4237
4250
|
errors: Error[];
|
|
4238
4251
|
}
|
|
4239
4252
|
declare namespace MultipleGitError {
|
|
4240
|
-
let
|
|
4241
|
-
export {
|
|
4253
|
+
let code_20: "MultipleGitError";
|
|
4254
|
+
export { code_20 as code };
|
|
4242
4255
|
}
|
|
4243
4256
|
declare class NoRefspecError extends BaseError {
|
|
4244
4257
|
/**
|
|
@@ -4252,8 +4265,8 @@ declare class NoRefspecError extends BaseError {
|
|
|
4252
4265
|
};
|
|
4253
4266
|
}
|
|
4254
4267
|
declare namespace NoRefspecError {
|
|
4255
|
-
let
|
|
4256
|
-
export {
|
|
4268
|
+
let code_21: "NoRefspecError";
|
|
4269
|
+
export { code_21 as code };
|
|
4257
4270
|
}
|
|
4258
4271
|
declare class NotFoundError extends BaseError {
|
|
4259
4272
|
/**
|
|
@@ -4267,8 +4280,8 @@ declare class NotFoundError extends BaseError {
|
|
|
4267
4280
|
};
|
|
4268
4281
|
}
|
|
4269
4282
|
declare namespace NotFoundError {
|
|
4270
|
-
let
|
|
4271
|
-
export {
|
|
4283
|
+
let code_22: "NotFoundError";
|
|
4284
|
+
export { code_22 as code };
|
|
4272
4285
|
}
|
|
4273
4286
|
declare class ObjectTypeError extends BaseError {
|
|
4274
4287
|
/**
|
|
@@ -4288,8 +4301,8 @@ declare class ObjectTypeError extends BaseError {
|
|
|
4288
4301
|
};
|
|
4289
4302
|
}
|
|
4290
4303
|
declare namespace ObjectTypeError {
|
|
4291
|
-
let
|
|
4292
|
-
export {
|
|
4304
|
+
let code_23: "ObjectTypeError";
|
|
4305
|
+
export { code_23 as code };
|
|
4293
4306
|
}
|
|
4294
4307
|
declare class ParseError extends BaseError {
|
|
4295
4308
|
/**
|
|
@@ -4305,8 +4318,8 @@ declare class ParseError extends BaseError {
|
|
|
4305
4318
|
};
|
|
4306
4319
|
}
|
|
4307
4320
|
declare namespace ParseError {
|
|
4308
|
-
let
|
|
4309
|
-
export {
|
|
4321
|
+
let code_24: "ParseError";
|
|
4322
|
+
export { code_24 as code };
|
|
4310
4323
|
}
|
|
4311
4324
|
declare class PushRejectedError extends BaseError {
|
|
4312
4325
|
/**
|
|
@@ -4320,8 +4333,8 @@ declare class PushRejectedError extends BaseError {
|
|
|
4320
4333
|
};
|
|
4321
4334
|
}
|
|
4322
4335
|
declare namespace PushRejectedError {
|
|
4323
|
-
let
|
|
4324
|
-
export {
|
|
4336
|
+
let code_25: "PushRejectedError";
|
|
4337
|
+
export { code_25 as code };
|
|
4325
4338
|
}
|
|
4326
4339
|
declare class RemoteCapabilityError extends BaseError {
|
|
4327
4340
|
/**
|
|
@@ -4337,8 +4350,8 @@ declare class RemoteCapabilityError extends BaseError {
|
|
|
4337
4350
|
};
|
|
4338
4351
|
}
|
|
4339
4352
|
declare namespace RemoteCapabilityError {
|
|
4340
|
-
let
|
|
4341
|
-
export {
|
|
4353
|
+
let code_26: "RemoteCapabilityError";
|
|
4354
|
+
export { code_26 as code };
|
|
4342
4355
|
}
|
|
4343
4356
|
declare class SmartHttpError extends BaseError {
|
|
4344
4357
|
/**
|
|
@@ -4354,8 +4367,8 @@ declare class SmartHttpError extends BaseError {
|
|
|
4354
4367
|
};
|
|
4355
4368
|
}
|
|
4356
4369
|
declare namespace SmartHttpError {
|
|
4357
|
-
let
|
|
4358
|
-
export {
|
|
4370
|
+
let code_27: "SmartHttpError";
|
|
4371
|
+
export { code_27 as code };
|
|
4359
4372
|
}
|
|
4360
4373
|
declare class UnknownTransportError extends BaseError {
|
|
4361
4374
|
/**
|
|
@@ -4373,8 +4386,8 @@ declare class UnknownTransportError extends BaseError {
|
|
|
4373
4386
|
};
|
|
4374
4387
|
}
|
|
4375
4388
|
declare namespace UnknownTransportError {
|
|
4376
|
-
let
|
|
4377
|
-
export {
|
|
4389
|
+
let code_28: "UnknownTransportError";
|
|
4390
|
+
export { code_28 as code };
|
|
4378
4391
|
}
|
|
4379
4392
|
declare class UnsafeFilepathError extends BaseError {
|
|
4380
4393
|
/**
|
|
@@ -4388,8 +4401,8 @@ declare class UnsafeFilepathError extends BaseError {
|
|
|
4388
4401
|
};
|
|
4389
4402
|
}
|
|
4390
4403
|
declare namespace UnsafeFilepathError {
|
|
4391
|
-
let
|
|
4392
|
-
export {
|
|
4404
|
+
let code_29: "UnsafeFilepathError";
|
|
4405
|
+
export { code_29 as code };
|
|
4393
4406
|
}
|
|
4394
4407
|
declare class UrlParseError extends BaseError {
|
|
4395
4408
|
/**
|
|
@@ -4403,8 +4416,8 @@ declare class UrlParseError extends BaseError {
|
|
|
4403
4416
|
};
|
|
4404
4417
|
}
|
|
4405
4418
|
declare namespace UrlParseError {
|
|
4406
|
-
let
|
|
4407
|
-
export {
|
|
4419
|
+
let code_30: "UrlParseError";
|
|
4420
|
+
export { code_30 as code };
|
|
4408
4421
|
}
|
|
4409
4422
|
declare class UserCanceledError extends BaseError {
|
|
4410
4423
|
constructor();
|
|
@@ -4413,8 +4426,8 @@ declare class UserCanceledError extends BaseError {
|
|
|
4413
4426
|
data: {};
|
|
4414
4427
|
}
|
|
4415
4428
|
declare namespace UserCanceledError {
|
|
4416
|
-
let
|
|
4417
|
-
export {
|
|
4429
|
+
let code_31: "UserCanceledError";
|
|
4430
|
+
export { code_31 as code };
|
|
4418
4431
|
}
|
|
4419
4432
|
declare class UnmergedPathsError extends BaseError {
|
|
4420
4433
|
/**
|
|
@@ -4428,8 +4441,8 @@ declare class UnmergedPathsError extends BaseError {
|
|
|
4428
4441
|
};
|
|
4429
4442
|
}
|
|
4430
4443
|
declare namespace UnmergedPathsError {
|
|
4431
|
-
let
|
|
4432
|
-
export {
|
|
4444
|
+
let code_32: "UnmergedPathsError";
|
|
4445
|
+
export { code_32 as code };
|
|
4433
4446
|
}
|
|
4434
4447
|
declare class IndexResetError extends BaseError {
|
|
4435
4448
|
/**
|
|
@@ -4443,8 +4456,8 @@ declare class IndexResetError extends BaseError {
|
|
|
4443
4456
|
};
|
|
4444
4457
|
}
|
|
4445
4458
|
declare namespace IndexResetError {
|
|
4446
|
-
let
|
|
4447
|
-
export {
|
|
4459
|
+
let code_33: "IndexResetError";
|
|
4460
|
+
export { code_33 as code };
|
|
4448
4461
|
}
|
|
4449
4462
|
declare class NoCommitError extends BaseError {
|
|
4450
4463
|
/**
|
|
@@ -4458,8 +4471,8 @@ declare class NoCommitError extends BaseError {
|
|
|
4458
4471
|
};
|
|
4459
4472
|
}
|
|
4460
4473
|
declare namespace NoCommitError {
|
|
4461
|
-
let
|
|
4462
|
-
export {
|
|
4474
|
+
let code_34: "NoCommitError";
|
|
4475
|
+
export { code_34 as code };
|
|
4463
4476
|
}
|
|
4464
4477
|
/**
|
|
4465
4478
|
* @typedef {Object} GitProgressEvent
|
package/index.js
CHANGED
|
@@ -3732,6 +3732,16 @@ class CommitNotFetchedError extends BaseError {
|
|
|
3732
3732
|
/** @type {'CommitNotFetchedError'} */
|
|
3733
3733
|
CommitNotFetchedError.code = 'CommitNotFetchedError';
|
|
3734
3734
|
|
|
3735
|
+
class EmptyCommitError extends BaseError {
|
|
3736
|
+
constructor() {
|
|
3737
|
+
super('Cannot create an empty commit when disallowEmpty is true.');
|
|
3738
|
+
this.code = this.name = EmptyCommitError.code;
|
|
3739
|
+
this.data = {};
|
|
3740
|
+
}
|
|
3741
|
+
}
|
|
3742
|
+
/** @type {'EmptyCommitError'} */
|
|
3743
|
+
EmptyCommitError.code = 'EmptyCommitError';
|
|
3744
|
+
|
|
3735
3745
|
class EmptyServerResponseError extends BaseError {
|
|
3736
3746
|
constructor() {
|
|
3737
3747
|
super(`Empty response from git server.`);
|
|
@@ -4050,6 +4060,7 @@ var Errors = /*#__PURE__*/Object.freeze({
|
|
|
4050
4060
|
CherryPickMergeCommitError: CherryPickMergeCommitError,
|
|
4051
4061
|
CherryPickRootCommitError: CherryPickRootCommitError,
|
|
4052
4062
|
CommitNotFetchedError: CommitNotFetchedError,
|
|
4063
|
+
EmptyCommitError: EmptyCommitError,
|
|
4053
4064
|
EmptyServerResponseError: EmptyServerResponseError,
|
|
4054
4065
|
FastForwardError: FastForwardError,
|
|
4055
4066
|
GitPushError: GitPushError,
|
|
@@ -5963,6 +5974,8 @@ async function _readCommit({ fs, cache, gitdir, oid }) {
|
|
|
5963
5974
|
|
|
5964
5975
|
// @ts-check
|
|
5965
5976
|
|
|
5977
|
+
const EMPTY_TREE_OID = '4b825dc642cb6eb9a060e54bf8d69288fbee4904';
|
|
5978
|
+
|
|
5966
5979
|
/**
|
|
5967
5980
|
*
|
|
5968
5981
|
* @param {Object} args
|
|
@@ -5985,6 +5998,7 @@ async function _readCommit({ fs, cache, gitdir, oid }) {
|
|
|
5985
5998
|
* @param {boolean} [args.amend = false]
|
|
5986
5999
|
* @param {boolean} [args.dryRun = false]
|
|
5987
6000
|
* @param {boolean} [args.noUpdateBranch = false]
|
|
6001
|
+
* @param {boolean} [args.disallowEmpty = false]
|
|
5988
6002
|
* @param {string} [args.ref]
|
|
5989
6003
|
* @param {string[]} [args.parent]
|
|
5990
6004
|
* @param {string} [args.tree]
|
|
@@ -6003,6 +6017,7 @@ async function _commit({
|
|
|
6003
6017
|
amend = false,
|
|
6004
6018
|
dryRun = false,
|
|
6005
6019
|
noUpdateBranch = false,
|
|
6020
|
+
disallowEmpty = false,
|
|
6006
6021
|
ref,
|
|
6007
6022
|
parent,
|
|
6008
6023
|
tree,
|
|
@@ -6090,6 +6105,15 @@ async function _commit({
|
|
|
6090
6105
|
);
|
|
6091
6106
|
}
|
|
6092
6107
|
|
|
6108
|
+
if (
|
|
6109
|
+
disallowEmpty &&
|
|
6110
|
+
!amend &&
|
|
6111
|
+
((initialCommit && tree === EMPTY_TREE_OID) ||
|
|
6112
|
+
(!initialCommit && tree === refCommit.commit.tree))
|
|
6113
|
+
) {
|
|
6114
|
+
throw new EmptyCommitError()
|
|
6115
|
+
}
|
|
6116
|
+
|
|
6093
6117
|
// Determine message of this commit
|
|
6094
6118
|
if (!message) {
|
|
6095
6119
|
if (!amend) {
|
|
@@ -9486,8 +9510,8 @@ function filterCapabilities(server, client) {
|
|
|
9486
9510
|
|
|
9487
9511
|
const pkg = {
|
|
9488
9512
|
name: 'isomorphic-git',
|
|
9489
|
-
version: '1.
|
|
9490
|
-
agent: 'git/isomorphic-git@1.
|
|
9513
|
+
version: '1.39.0',
|
|
9514
|
+
agent: 'git/isomorphic-git@1.39.0',
|
|
9491
9515
|
};
|
|
9492
9516
|
|
|
9493
9517
|
class FIFO {
|
|
@@ -10474,6 +10498,7 @@ async function clone({
|
|
|
10474
10498
|
* @param {boolean} [args.amend = false] - If true, replaces the last commit pointed to by `ref` with a new commit.
|
|
10475
10499
|
* @param {boolean} [args.dryRun = false] - If true, simulates making a commit so you can test whether it would succeed. Implies `noUpdateBranch`.
|
|
10476
10500
|
* @param {boolean} [args.noUpdateBranch = false] - If true, does not update the branch pointer after creating the commit.
|
|
10501
|
+
* @param {boolean} [args.disallowEmpty = false] - If true, throws an error instead of creating a commit with no staged changes.
|
|
10477
10502
|
* @param {string} [args.ref] - The fully expanded name of the branch to commit to. Default is the current branch pointed to by HEAD. (TODO: fix it so it can expand branch names without throwing if the branch doesn't exist yet.)
|
|
10478
10503
|
* @param {string[]} [args.parent] - The SHA-1 object ids of the commits to use as parents. If not specified, the commit pointed to by `ref` is used.
|
|
10479
10504
|
* @param {string} [args.tree] - The SHA-1 object id of the tree to use. If not specified, a new tree object is created from the current git index.
|
|
@@ -10506,6 +10531,7 @@ async function commit({
|
|
|
10506
10531
|
amend = false,
|
|
10507
10532
|
dryRun = false,
|
|
10508
10533
|
noUpdateBranch = false,
|
|
10534
|
+
disallowEmpty = false,
|
|
10509
10535
|
ref,
|
|
10510
10536
|
parent,
|
|
10511
10537
|
tree,
|
|
@@ -10534,6 +10560,7 @@ async function commit({
|
|
|
10534
10560
|
amend,
|
|
10535
10561
|
dryRun,
|
|
10536
10562
|
noUpdateBranch,
|
|
10563
|
+
disallowEmpty,
|
|
10537
10564
|
ref,
|
|
10538
10565
|
parent,
|
|
10539
10566
|
tree,
|