isomorphic-git 1.38.10 → 1.40.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 CHANGED
@@ -66,6 +66,7 @@ var diff3Merge = _interopDefault(require('diff3'));
66
66
  * @property {string} message Commit message
67
67
  * @property {string} tree SHA-1 object id of corresponding file tree
68
68
  * @property {string[]} parent an array of zero or more SHA-1 object ids
69
+ * @property {Array.<Array.<string|null>>} [changes] Changed files as `[newOid, oldOid, filepath]`; present when `log` is called with `includeChanges: true`.
69
70
  * @property {Object} author
70
71
  * @property {string} author.name The author's name
71
72
  * @property {string} author.email The author's email
@@ -3745,6 +3746,16 @@ class CommitNotFetchedError extends BaseError {
3745
3746
  /** @type {'CommitNotFetchedError'} */
3746
3747
  CommitNotFetchedError.code = 'CommitNotFetchedError';
3747
3748
 
3749
+ class EmptyCommitError extends BaseError {
3750
+ constructor() {
3751
+ super('Cannot create an empty commit when disallowEmpty is true.');
3752
+ this.code = this.name = EmptyCommitError.code;
3753
+ this.data = {};
3754
+ }
3755
+ }
3756
+ /** @type {'EmptyCommitError'} */
3757
+ EmptyCommitError.code = 'EmptyCommitError';
3758
+
3748
3759
  class EmptyServerResponseError extends BaseError {
3749
3760
  constructor() {
3750
3761
  super(`Empty response from git server.`);
@@ -4063,6 +4074,7 @@ var Errors = /*#__PURE__*/Object.freeze({
4063
4074
  CherryPickMergeCommitError: CherryPickMergeCommitError,
4064
4075
  CherryPickRootCommitError: CherryPickRootCommitError,
4065
4076
  CommitNotFetchedError: CommitNotFetchedError,
4077
+ EmptyCommitError: EmptyCommitError,
4066
4078
  EmptyServerResponseError: EmptyServerResponseError,
4067
4079
  FastForwardError: FastForwardError,
4068
4080
  GitPushError: GitPushError,
@@ -5976,6 +5988,8 @@ async function _readCommit({ fs, cache, gitdir, oid }) {
5976
5988
 
5977
5989
  // @ts-check
5978
5990
 
5991
+ const EMPTY_TREE_OID = '4b825dc642cb6eb9a060e54bf8d69288fbee4904';
5992
+
5979
5993
  /**
5980
5994
  *
5981
5995
  * @param {Object} args
@@ -5998,6 +6012,7 @@ async function _readCommit({ fs, cache, gitdir, oid }) {
5998
6012
  * @param {boolean} [args.amend = false]
5999
6013
  * @param {boolean} [args.dryRun = false]
6000
6014
  * @param {boolean} [args.noUpdateBranch = false]
6015
+ * @param {boolean} [args.disallowEmpty = false]
6001
6016
  * @param {string} [args.ref]
6002
6017
  * @param {string[]} [args.parent]
6003
6018
  * @param {string} [args.tree]
@@ -6016,6 +6031,7 @@ async function _commit({
6016
6031
  amend = false,
6017
6032
  dryRun = false,
6018
6033
  noUpdateBranch = false,
6034
+ disallowEmpty = false,
6019
6035
  ref,
6020
6036
  parent,
6021
6037
  tree,
@@ -6103,6 +6119,15 @@ async function _commit({
6103
6119
  );
6104
6120
  }
6105
6121
 
6122
+ if (
6123
+ disallowEmpty &&
6124
+ !amend &&
6125
+ ((initialCommit && tree === EMPTY_TREE_OID) ||
6126
+ (!initialCommit && tree === refCommit.commit.tree))
6127
+ ) {
6128
+ throw new EmptyCommitError()
6129
+ }
6130
+
6106
6131
  // Determine message of this commit
6107
6132
  if (!message) {
6108
6133
  if (!amend) {
@@ -9499,8 +9524,8 @@ function filterCapabilities(server, client) {
9499
9524
 
9500
9525
  const pkg = {
9501
9526
  name: 'isomorphic-git',
9502
- version: '1.38.10',
9503
- agent: 'git/isomorphic-git@1.38.10',
9527
+ version: '1.40.0',
9528
+ agent: 'git/isomorphic-git@1.40.0',
9504
9529
  };
9505
9530
 
9506
9531
  class FIFO {
@@ -10487,6 +10512,7 @@ async function clone({
10487
10512
  * @param {boolean} [args.amend = false] - If true, replaces the last commit pointed to by `ref` with a new commit.
10488
10513
  * @param {boolean} [args.dryRun = false] - If true, simulates making a commit so you can test whether it would succeed. Implies `noUpdateBranch`.
10489
10514
  * @param {boolean} [args.noUpdateBranch = false] - If true, does not update the branch pointer after creating the commit.
10515
+ * @param {boolean} [args.disallowEmpty = false] - If true, throws an error instead of creating a commit with no staged changes.
10490
10516
  * @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.)
10491
10517
  * @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.
10492
10518
  * @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.
@@ -10519,6 +10545,7 @@ async function commit({
10519
10545
  amend = false,
10520
10546
  dryRun = false,
10521
10547
  noUpdateBranch = false,
10548
+ disallowEmpty = false,
10522
10549
  ref,
10523
10550
  parent,
10524
10551
  tree,
@@ -10547,6 +10574,7 @@ async function commit({
10547
10574
  amend,
10548
10575
  dryRun,
10549
10576
  noUpdateBranch,
10577
+ disallowEmpty,
10550
10578
  ref,
10551
10579
  parent,
10552
10580
  tree,
@@ -13070,7 +13098,7 @@ async function _resolveFileId({
13070
13098
  * @param {number|void} args.depth
13071
13099
  * @param {boolean=} [args.force=false] do not throw error if filepath is not exist (works only for a single file). defaults to false
13072
13100
  * @param {boolean=} [args.follow=false] Continue listing the history of a file beyond renames (works only for a single file). defaults to false
13073
- * @param {boolean=} args.follow Continue listing the history of a file beyond renames (works only for a single file). defaults to false
13101
+ * @param {boolean=} [args.includeChanges=false] Include changed file object ids for each commit.
13074
13102
  *
13075
13103
  * @returns {Promise<Array<ReadCommitResult>>} Resolves to an array of ReadCommitResult objects
13076
13104
  * @see ReadCommitResult
@@ -13091,6 +13119,7 @@ async function _log({
13091
13119
  since,
13092
13120
  force,
13093
13121
  follow,
13122
+ includeChanges,
13094
13123
  }) {
13095
13124
  const sinceTimestamp =
13096
13125
  typeof since === 'undefined'
@@ -13218,9 +13247,57 @@ async function _log({
13218
13247
  // Process tips in order by age
13219
13248
  tips.sort((a, b) => compareAge(a.commit, b.commit));
13220
13249
  }
13250
+ if (includeChanges) {
13251
+ for (const commit of commits) {
13252
+ commit.commit.changes = await getChanges({
13253
+ fs,
13254
+ cache,
13255
+ gitdir,
13256
+ commit,
13257
+ shallow: shallowCommits.has(commit.oid),
13258
+ });
13259
+ }
13260
+ }
13221
13261
  return commits
13222
13262
  }
13223
13263
 
13264
+ async function getChanges({ fs, cache, gitdir, commit, shallow }) {
13265
+ const parent =
13266
+ shallow || !commit.commit.parent[0]
13267
+ ? '4b825dc642cb6eb9a060e54bf8d69288fbee4904'
13268
+ : commit.commit.parent[0];
13269
+ return _walk({
13270
+ fs,
13271
+ cache,
13272
+ gitdir,
13273
+ trees: [TREE({ ref: commit.oid }), TREE({ ref: parent })],
13274
+ map: async (filepath, [current, previous]) => {
13275
+ const [currentType, previousType] = await Promise.all([
13276
+ current && current.type(),
13277
+ previous && previous.type(),
13278
+ ]);
13279
+ if (currentType === 'tree') {
13280
+ if (previousType && previousType !== 'tree') {
13281
+ return [null, await previous.oid(), filepath]
13282
+ }
13283
+ return
13284
+ }
13285
+ if (previousType === 'tree') {
13286
+ if (currentType) {
13287
+ return [await current.oid(), null, filepath]
13288
+ }
13289
+ return
13290
+ }
13291
+ const [newOid, oldOid] = await Promise.all([
13292
+ current ? current.oid() : null,
13293
+ previous ? previous.oid() : null,
13294
+ ]);
13295
+ if (newOid === oldOid) return
13296
+ return [newOid, oldOid, filepath]
13297
+ },
13298
+ })
13299
+ }
13300
+
13224
13301
  // @ts-check
13225
13302
 
13226
13303
  /**
@@ -13236,6 +13313,7 @@ async function _log({
13236
13313
  * @param {Date} [args.since] - Return history newer than the given date. Can be combined with `depth` to get whichever is shorter.
13237
13314
  * @param {boolean=} [args.force=false] do not throw error if filepath is not exist (works only for a single file). defaults to false
13238
13315
  * @param {boolean=} [args.follow=false] Continue listing the history of a file beyond renames (works only for a single file). defaults to false
13316
+ * @param {boolean=} [args.includeChanges=false] Include changed file object ids for each commit. Each tuple is `[newOid, oldOid, filepath]`; an added or removed file has a null old or new oid, respectively.
13239
13317
  * @param {object} [args.cache] - a [cache](cache.md) object
13240
13318
  *
13241
13319
  * @returns {Promise<Array<ReadCommitResult>>} Resolves to an array of ReadCommitResult objects
@@ -13262,6 +13340,7 @@ async function log({
13262
13340
  since, // Date
13263
13341
  force,
13264
13342
  follow,
13343
+ includeChanges = false,
13265
13344
  cache = {},
13266
13345
  }) {
13267
13346
  try {
@@ -13281,6 +13360,7 @@ async function log({
13281
13360
  since,
13282
13361
  force,
13283
13362
  follow,
13363
+ includeChanges,
13284
13364
  })
13285
13365
  } catch (err) {
13286
13366
  err.caller = 'git.log';
package/index.d.cts CHANGED
@@ -354,6 +354,10 @@ export type CommitObject = {
354
354
  * an array of zero or more SHA-1 object ids
355
355
  */
356
356
  parent: string[];
357
+ /**
358
+ * Changed files as `[newOid, oldOid, filepath]`; present when `log` is called with `includeChanges: true`.
359
+ */
360
+ changes?: (string | null)[][] | undefined;
357
361
  author: {
358
362
  name: string;
359
363
  email: string;
@@ -633,6 +637,7 @@ export var Errors: Readonly<{
633
637
  CherryPickMergeCommitError: typeof CherryPickMergeCommitError;
634
638
  CherryPickRootCommitError: typeof CherryPickRootCommitError;
635
639
  CommitNotFetchedError: typeof CommitNotFetchedError;
640
+ EmptyCommitError: typeof EmptyCommitError;
636
641
  EmptyServerResponseError: typeof EmptyServerResponseError;
637
642
  FastForwardError: typeof FastForwardError;
638
643
  GitPushError: typeof GitPushError;
@@ -1128,6 +1133,7 @@ export function clone({ fs, http, onProgress, onMessage, onAuth, onAuthSuccess,
1128
1133
  * @param {boolean} [args.amend = false] - If true, replaces the last commit pointed to by `ref` with a new commit.
1129
1134
  * @param {boolean} [args.dryRun = false] - If true, simulates making a commit so you can test whether it would succeed. Implies `noUpdateBranch`.
1130
1135
  * @param {boolean} [args.noUpdateBranch = false] - If true, does not update the branch pointer after creating the commit.
1136
+ * @param {boolean} [args.disallowEmpty = false] - If true, throws an error instead of creating a commit with no staged changes.
1131
1137
  * @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.)
1132
1138
  * @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.
1133
1139
  * @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.
@@ -1148,7 +1154,7 @@ export function clone({ fs, http, onProgress, onMessage, onAuth, onAuthSuccess,
1148
1154
  * console.log(sha)
1149
1155
  *
1150
1156
  */
1151
- export function commit({ fs: _fs, onSign, dir, gitdir, message, author, committer, signingKey, amend, dryRun, noUpdateBranch, ref, parent, tree, cache, }: {
1157
+ export function commit({ fs: _fs, onSign, dir, gitdir, message, author, committer, signingKey, amend, dryRun, noUpdateBranch, disallowEmpty, ref, parent, tree, cache, }: {
1152
1158
  fs: FsClient;
1153
1159
  onSign?: SignCallback | undefined;
1154
1160
  dir?: string | undefined;
@@ -1170,6 +1176,7 @@ export function commit({ fs: _fs, onSign, dir, gitdir, message, author, committe
1170
1176
  amend?: boolean | undefined;
1171
1177
  dryRun?: boolean | undefined;
1172
1178
  noUpdateBranch?: boolean | undefined;
1179
+ disallowEmpty?: boolean | undefined;
1173
1180
  ref?: string | undefined;
1174
1181
  parent?: string[] | undefined;
1175
1182
  tree?: string | undefined;
@@ -2178,6 +2185,7 @@ export function listTags({ fs, dir, gitdir }: {
2178
2185
  * @param {Date} [args.since] - Return history newer than the given date. Can be combined with `depth` to get whichever is shorter.
2179
2186
  * @param {boolean=} [args.force=false] do not throw error if filepath is not exist (works only for a single file). defaults to false
2180
2187
  * @param {boolean=} [args.follow=false] Continue listing the history of a file beyond renames (works only for a single file). defaults to false
2188
+ * @param {boolean=} [args.includeChanges=false] Include changed file object ids for each commit. Each tuple is `[newOid, oldOid, filepath]`; an added or removed file has a null old or new oid, respectively.
2181
2189
  * @param {object} [args.cache] - a [cache](cache.md) object
2182
2190
  *
2183
2191
  * @returns {Promise<Array<ReadCommitResult>>} Resolves to an array of ReadCommitResult objects
@@ -2194,7 +2202,7 @@ export function listTags({ fs, dir, gitdir }: {
2194
2202
  * console.log(commits)
2195
2203
  *
2196
2204
  */
2197
- export function log({ fs, dir, gitdir, filepath, ref, depth, since, force, follow, cache, }: {
2205
+ export function log({ fs, dir, gitdir, filepath, ref, depth, since, force, follow, includeChanges, cache, }: {
2198
2206
  fs: FsClient;
2199
2207
  dir?: string | undefined;
2200
2208
  gitdir?: string | undefined;
@@ -2204,6 +2212,7 @@ export function log({ fs, dir, gitdir, filepath, ref, depth, since, force, follo
2204
2212
  since?: Date | undefined;
2205
2213
  force?: boolean | undefined;
2206
2214
  follow?: boolean | undefined;
2215
+ includeChanges?: boolean | undefined;
2207
2216
  cache?: object;
2208
2217
  }): Promise<Array<ReadCommitResult>>;
2209
2218
  /**
@@ -4029,6 +4038,16 @@ declare namespace CommitNotFetchedError {
4029
4038
  let code_5: "CommitNotFetchedError";
4030
4039
  export { code_5 as code };
4031
4040
  }
4041
+ declare class EmptyCommitError extends BaseError {
4042
+ constructor();
4043
+ code: "EmptyCommitError";
4044
+ name: "EmptyCommitError";
4045
+ data: {};
4046
+ }
4047
+ declare namespace EmptyCommitError {
4048
+ let code_6: "EmptyCommitError";
4049
+ export { code_6 as code };
4050
+ }
4032
4051
  declare class EmptyServerResponseError extends BaseError {
4033
4052
  constructor();
4034
4053
  code: "EmptyServerResponseError";
@@ -4036,8 +4055,8 @@ declare class EmptyServerResponseError extends BaseError {
4036
4055
  data: {};
4037
4056
  }
4038
4057
  declare namespace EmptyServerResponseError {
4039
- let code_6: "EmptyServerResponseError";
4040
- export { code_6 as code };
4058
+ let code_7: "EmptyServerResponseError";
4059
+ export { code_7 as code };
4041
4060
  }
4042
4061
  declare class FastForwardError extends BaseError {
4043
4062
  constructor();
@@ -4046,8 +4065,8 @@ declare class FastForwardError extends BaseError {
4046
4065
  data: {};
4047
4066
  }
4048
4067
  declare namespace FastForwardError {
4049
- let code_7: "FastForwardError";
4050
- export { code_7 as code };
4068
+ let code_8: "FastForwardError";
4069
+ export { code_8 as code };
4051
4070
  }
4052
4071
  declare class GitPushError extends BaseError {
4053
4072
  /**
@@ -4063,8 +4082,8 @@ declare class GitPushError extends BaseError {
4063
4082
  };
4064
4083
  }
4065
4084
  declare namespace GitPushError {
4066
- let code_8: "GitPushError";
4067
- export { code_8 as code };
4085
+ let code_9: "GitPushError";
4086
+ export { code_9 as code };
4068
4087
  }
4069
4088
  declare class HttpError extends BaseError {
4070
4089
  /**
@@ -4082,8 +4101,8 @@ declare class HttpError extends BaseError {
4082
4101
  };
4083
4102
  }
4084
4103
  declare namespace HttpError {
4085
- let code_9: "HttpError";
4086
- export { code_9 as code };
4104
+ let code_10: "HttpError";
4105
+ export { code_10 as code };
4087
4106
  }
4088
4107
  declare class InternalError extends BaseError {
4089
4108
  /**
@@ -4097,8 +4116,8 @@ declare class InternalError extends BaseError {
4097
4116
  };
4098
4117
  }
4099
4118
  declare namespace InternalError {
4100
- let code_10: "InternalError";
4101
- export { code_10 as code };
4119
+ let code_11: "InternalError";
4120
+ export { code_11 as code };
4102
4121
  }
4103
4122
  declare class InvalidFilepathError extends BaseError {
4104
4123
  /**
@@ -4112,8 +4131,8 @@ declare class InvalidFilepathError extends BaseError {
4112
4131
  };
4113
4132
  }
4114
4133
  declare namespace InvalidFilepathError {
4115
- let code_11: "InvalidFilepathError";
4116
- export { code_11 as code };
4134
+ let code_12: "InvalidFilepathError";
4135
+ export { code_12 as code };
4117
4136
  }
4118
4137
  declare class InvalidOidError extends BaseError {
4119
4138
  /**
@@ -4127,8 +4146,8 @@ declare class InvalidOidError extends BaseError {
4127
4146
  };
4128
4147
  }
4129
4148
  declare namespace InvalidOidError {
4130
- let code_12: "InvalidOidError";
4131
- export { code_12 as code };
4149
+ let code_13: "InvalidOidError";
4150
+ export { code_13 as code };
4132
4151
  }
4133
4152
  declare class InvalidRefNameError extends BaseError {
4134
4153
  /**
@@ -4145,8 +4164,8 @@ declare class InvalidRefNameError extends BaseError {
4145
4164
  };
4146
4165
  }
4147
4166
  declare namespace InvalidRefNameError {
4148
- let code_13: "InvalidRefNameError";
4149
- export { code_13 as code };
4167
+ let code_14: "InvalidRefNameError";
4168
+ export { code_14 as code };
4150
4169
  }
4151
4170
  declare class MaxDepthError extends BaseError {
4152
4171
  /**
@@ -4160,8 +4179,8 @@ declare class MaxDepthError extends BaseError {
4160
4179
  };
4161
4180
  }
4162
4181
  declare namespace MaxDepthError {
4163
- let code_14: "MaxDepthError";
4164
- export { code_14 as code };
4182
+ let code_15: "MaxDepthError";
4183
+ export { code_15 as code };
4165
4184
  }
4166
4185
  declare class MergeNotSupportedError extends BaseError {
4167
4186
  constructor();
@@ -4170,8 +4189,8 @@ declare class MergeNotSupportedError extends BaseError {
4170
4189
  data: {};
4171
4190
  }
4172
4191
  declare namespace MergeNotSupportedError {
4173
- let code_15: "MergeNotSupportedError";
4174
- export { code_15 as code };
4192
+ let code_16: "MergeNotSupportedError";
4193
+ export { code_16 as code };
4175
4194
  }
4176
4195
  declare class MergeConflictError extends BaseError {
4177
4196
  /**
@@ -4191,8 +4210,8 @@ declare class MergeConflictError extends BaseError {
4191
4210
  };
4192
4211
  }
4193
4212
  declare namespace MergeConflictError {
4194
- let code_16: "MergeConflictError";
4195
- export { code_16 as code };
4213
+ let code_17: "MergeConflictError";
4214
+ export { code_17 as code };
4196
4215
  }
4197
4216
  declare class MissingNameError extends BaseError {
4198
4217
  /**
@@ -4206,8 +4225,8 @@ declare class MissingNameError extends BaseError {
4206
4225
  };
4207
4226
  }
4208
4227
  declare namespace MissingNameError {
4209
- let code_17: "MissingNameError";
4210
- export { code_17 as code };
4228
+ let code_18: "MissingNameError";
4229
+ export { code_18 as code };
4211
4230
  }
4212
4231
  declare class MissingParameterError extends BaseError {
4213
4232
  /**
@@ -4221,8 +4240,8 @@ declare class MissingParameterError extends BaseError {
4221
4240
  };
4222
4241
  }
4223
4242
  declare namespace MissingParameterError {
4224
- let code_18: "MissingParameterError";
4225
- export { code_18 as code };
4243
+ let code_19: "MissingParameterError";
4244
+ export { code_19 as code };
4226
4245
  }
4227
4246
  declare class MultipleGitError extends BaseError {
4228
4247
  /**
@@ -4238,8 +4257,8 @@ declare class MultipleGitError extends BaseError {
4238
4257
  errors: Error[];
4239
4258
  }
4240
4259
  declare namespace MultipleGitError {
4241
- let code_19: "MultipleGitError";
4242
- export { code_19 as code };
4260
+ let code_20: "MultipleGitError";
4261
+ export { code_20 as code };
4243
4262
  }
4244
4263
  declare class NoRefspecError extends BaseError {
4245
4264
  /**
@@ -4253,8 +4272,8 @@ declare class NoRefspecError extends BaseError {
4253
4272
  };
4254
4273
  }
4255
4274
  declare namespace NoRefspecError {
4256
- let code_20: "NoRefspecError";
4257
- export { code_20 as code };
4275
+ let code_21: "NoRefspecError";
4276
+ export { code_21 as code };
4258
4277
  }
4259
4278
  declare class NotFoundError extends BaseError {
4260
4279
  /**
@@ -4268,8 +4287,8 @@ declare class NotFoundError extends BaseError {
4268
4287
  };
4269
4288
  }
4270
4289
  declare namespace NotFoundError {
4271
- let code_21: "NotFoundError";
4272
- export { code_21 as code };
4290
+ let code_22: "NotFoundError";
4291
+ export { code_22 as code };
4273
4292
  }
4274
4293
  declare class ObjectTypeError extends BaseError {
4275
4294
  /**
@@ -4289,8 +4308,8 @@ declare class ObjectTypeError extends BaseError {
4289
4308
  };
4290
4309
  }
4291
4310
  declare namespace ObjectTypeError {
4292
- let code_22: "ObjectTypeError";
4293
- export { code_22 as code };
4311
+ let code_23: "ObjectTypeError";
4312
+ export { code_23 as code };
4294
4313
  }
4295
4314
  declare class ParseError extends BaseError {
4296
4315
  /**
@@ -4306,8 +4325,8 @@ declare class ParseError extends BaseError {
4306
4325
  };
4307
4326
  }
4308
4327
  declare namespace ParseError {
4309
- let code_23: "ParseError";
4310
- export { code_23 as code };
4328
+ let code_24: "ParseError";
4329
+ export { code_24 as code };
4311
4330
  }
4312
4331
  declare class PushRejectedError extends BaseError {
4313
4332
  /**
@@ -4321,8 +4340,8 @@ declare class PushRejectedError extends BaseError {
4321
4340
  };
4322
4341
  }
4323
4342
  declare namespace PushRejectedError {
4324
- let code_24: "PushRejectedError";
4325
- export { code_24 as code };
4343
+ let code_25: "PushRejectedError";
4344
+ export { code_25 as code };
4326
4345
  }
4327
4346
  declare class RemoteCapabilityError extends BaseError {
4328
4347
  /**
@@ -4338,8 +4357,8 @@ declare class RemoteCapabilityError extends BaseError {
4338
4357
  };
4339
4358
  }
4340
4359
  declare namespace RemoteCapabilityError {
4341
- let code_25: "RemoteCapabilityError";
4342
- export { code_25 as code };
4360
+ let code_26: "RemoteCapabilityError";
4361
+ export { code_26 as code };
4343
4362
  }
4344
4363
  declare class SmartHttpError extends BaseError {
4345
4364
  /**
@@ -4355,8 +4374,8 @@ declare class SmartHttpError extends BaseError {
4355
4374
  };
4356
4375
  }
4357
4376
  declare namespace SmartHttpError {
4358
- let code_26: "SmartHttpError";
4359
- export { code_26 as code };
4377
+ let code_27: "SmartHttpError";
4378
+ export { code_27 as code };
4360
4379
  }
4361
4380
  declare class UnknownTransportError extends BaseError {
4362
4381
  /**
@@ -4374,8 +4393,8 @@ declare class UnknownTransportError extends BaseError {
4374
4393
  };
4375
4394
  }
4376
4395
  declare namespace UnknownTransportError {
4377
- let code_27: "UnknownTransportError";
4378
- export { code_27 as code };
4396
+ let code_28: "UnknownTransportError";
4397
+ export { code_28 as code };
4379
4398
  }
4380
4399
  declare class UnsafeFilepathError extends BaseError {
4381
4400
  /**
@@ -4389,8 +4408,8 @@ declare class UnsafeFilepathError extends BaseError {
4389
4408
  };
4390
4409
  }
4391
4410
  declare namespace UnsafeFilepathError {
4392
- let code_28: "UnsafeFilepathError";
4393
- export { code_28 as code };
4411
+ let code_29: "UnsafeFilepathError";
4412
+ export { code_29 as code };
4394
4413
  }
4395
4414
  declare class UrlParseError extends BaseError {
4396
4415
  /**
@@ -4404,8 +4423,8 @@ declare class UrlParseError extends BaseError {
4404
4423
  };
4405
4424
  }
4406
4425
  declare namespace UrlParseError {
4407
- let code_29: "UrlParseError";
4408
- export { code_29 as code };
4426
+ let code_30: "UrlParseError";
4427
+ export { code_30 as code };
4409
4428
  }
4410
4429
  declare class UserCanceledError extends BaseError {
4411
4430
  constructor();
@@ -4414,8 +4433,8 @@ declare class UserCanceledError extends BaseError {
4414
4433
  data: {};
4415
4434
  }
4416
4435
  declare namespace UserCanceledError {
4417
- let code_30: "UserCanceledError";
4418
- export { code_30 as code };
4436
+ let code_31: "UserCanceledError";
4437
+ export { code_31 as code };
4419
4438
  }
4420
4439
  declare class UnmergedPathsError extends BaseError {
4421
4440
  /**
@@ -4429,8 +4448,8 @@ declare class UnmergedPathsError extends BaseError {
4429
4448
  };
4430
4449
  }
4431
4450
  declare namespace UnmergedPathsError {
4432
- let code_31: "UnmergedPathsError";
4433
- export { code_31 as code };
4451
+ let code_32: "UnmergedPathsError";
4452
+ export { code_32 as code };
4434
4453
  }
4435
4454
  declare class IndexResetError extends BaseError {
4436
4455
  /**
@@ -4444,8 +4463,8 @@ declare class IndexResetError extends BaseError {
4444
4463
  };
4445
4464
  }
4446
4465
  declare namespace IndexResetError {
4447
- let code_32: "IndexResetError";
4448
- export { code_32 as code };
4466
+ let code_33: "IndexResetError";
4467
+ export { code_33 as code };
4449
4468
  }
4450
4469
  declare class NoCommitError extends BaseError {
4451
4470
  /**
@@ -4459,8 +4478,8 @@ declare class NoCommitError extends BaseError {
4459
4478
  };
4460
4479
  }
4461
4480
  declare namespace NoCommitError {
4462
- let code_33: "NoCommitError";
4463
- export { code_33 as code };
4481
+ let code_34: "NoCommitError";
4482
+ export { code_34 as code };
4464
4483
  }
4465
4484
  /**
4466
4485
  * @typedef {Object} GitProgressEvent
@@ -4508,6 +4527,7 @@ declare namespace NoCommitError {
4508
4527
  * @property {string} message Commit message
4509
4528
  * @property {string} tree SHA-1 object id of corresponding file tree
4510
4529
  * @property {string[]} parent an array of zero or more SHA-1 object ids
4530
+ * @property {Array.<Array.<string|null>>} [changes] Changed files as `[newOid, oldOid, filepath]`; present when `log` is called with `includeChanges: true`.
4511
4531
  * @property {Object} author
4512
4532
  * @property {string} author.name The author's name
4513
4533
  * @property {string} author.email The author's email