isomorphic-git 1.19.3 → 1.20.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/browser-tests.json +2 -2
- package/index.cjs +8 -4
- package/index.d.ts +3 -1
- package/index.js +8 -4
- package/index.umd.min.d.ts +3 -1
- package/index.umd.min.js +1 -1
- package/index.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/size_report.html +1 -1
package/browser-tests.json
CHANGED
package/index.cjs
CHANGED
|
@@ -5391,6 +5391,7 @@ async function annotatedTag({
|
|
|
5391
5391
|
* @param {import('../models/FileSystem.js').FileSystem} args.fs
|
|
5392
5392
|
* @param {string} args.gitdir
|
|
5393
5393
|
* @param {string} args.ref
|
|
5394
|
+
* @param {string} [args.object = 'HEAD']
|
|
5394
5395
|
* @param {boolean} [args.checkout = false]
|
|
5395
5396
|
*
|
|
5396
5397
|
* @returns {Promise<void>} Resolves successfully when filesystem operations are complete
|
|
@@ -5400,7 +5401,7 @@ async function annotatedTag({
|
|
|
5400
5401
|
* console.log('done')
|
|
5401
5402
|
*
|
|
5402
5403
|
*/
|
|
5403
|
-
async function _branch({ fs, gitdir, ref, checkout = false }) {
|
|
5404
|
+
async function _branch({ fs, gitdir, ref, object, checkout = false }) {
|
|
5404
5405
|
if (ref !== cleanGitRef.clean(ref)) {
|
|
5405
5406
|
throw new InvalidRefNameError(ref, cleanGitRef.clean(ref))
|
|
5406
5407
|
}
|
|
@@ -5415,7 +5416,7 @@ async function _branch({ fs, gitdir, ref, checkout = false }) {
|
|
|
5415
5416
|
// Get current HEAD tree oid
|
|
5416
5417
|
let oid;
|
|
5417
5418
|
try {
|
|
5418
|
-
oid = await GitRefManager.resolve({ fs, gitdir, ref: 'HEAD' });
|
|
5419
|
+
oid = await GitRefManager.resolve({ fs, gitdir, ref: object || 'HEAD' });
|
|
5419
5420
|
} catch (e) {
|
|
5420
5421
|
// Probably an empty repo
|
|
5421
5422
|
}
|
|
@@ -5446,6 +5447,7 @@ async function _branch({ fs, gitdir, ref, checkout = false }) {
|
|
|
5446
5447
|
* @param {string} [args.dir] - The [working tree](dir-vs-gitdir.md) directory path
|
|
5447
5448
|
* @param {string} [args.gitdir=join(dir,'.git')] - [required] The [git directory](dir-vs-gitdir.md) path
|
|
5448
5449
|
* @param {string} args.ref - What to name the branch
|
|
5450
|
+
* @param {string} [args.object = 'HEAD'] - What oid to use as the start point. Accepts a symbolic ref.
|
|
5449
5451
|
* @param {boolean} [args.checkout = false] - Update `HEAD` to point at the newly created branch
|
|
5450
5452
|
*
|
|
5451
5453
|
* @returns {Promise<void>} Resolves successfully when filesystem operations are complete
|
|
@@ -5460,6 +5462,7 @@ async function branch({
|
|
|
5460
5462
|
dir,
|
|
5461
5463
|
gitdir = join(dir, '.git'),
|
|
5462
5464
|
ref,
|
|
5465
|
+
object,
|
|
5463
5466
|
checkout = false,
|
|
5464
5467
|
}) {
|
|
5465
5468
|
try {
|
|
@@ -5470,6 +5473,7 @@ async function branch({
|
|
|
5470
5473
|
fs: new FileSystem(fs),
|
|
5471
5474
|
gitdir,
|
|
5472
5475
|
ref,
|
|
5476
|
+
object,
|
|
5473
5477
|
checkout,
|
|
5474
5478
|
})
|
|
5475
5479
|
} catch (err) {
|
|
@@ -6990,8 +6994,8 @@ function filterCapabilities(server, client) {
|
|
|
6990
6994
|
|
|
6991
6995
|
const pkg = {
|
|
6992
6996
|
name: 'isomorphic-git',
|
|
6993
|
-
version: '1.
|
|
6994
|
-
agent: 'git/isomorphic-git@1.
|
|
6997
|
+
version: '1.20.0',
|
|
6998
|
+
agent: 'git/isomorphic-git@1.20.0',
|
|
6995
6999
|
};
|
|
6996
7000
|
|
|
6997
7001
|
class FIFO {
|
package/index.d.ts
CHANGED
|
@@ -932,6 +932,7 @@ export function annotatedTag({ fs: _fs, onSign, dir, gitdir, ref, tagger: _tagge
|
|
|
932
932
|
* @param {string} [args.dir] - The [working tree](dir-vs-gitdir.md) directory path
|
|
933
933
|
* @param {string} [args.gitdir=join(dir,'.git')] - [required] The [git directory](dir-vs-gitdir.md) path
|
|
934
934
|
* @param {string} args.ref - What to name the branch
|
|
935
|
+
* @param {string} [args.object = 'HEAD'] - What oid to use as the start point. Accepts a symbolic ref.
|
|
935
936
|
* @param {boolean} [args.checkout = false] - Update `HEAD` to point at the newly created branch
|
|
936
937
|
*
|
|
937
938
|
* @returns {Promise<void>} Resolves successfully when filesystem operations are complete
|
|
@@ -941,11 +942,12 @@ export function annotatedTag({ fs: _fs, onSign, dir, gitdir, ref, tagger: _tagge
|
|
|
941
942
|
* console.log('done')
|
|
942
943
|
*
|
|
943
944
|
*/
|
|
944
|
-
export function branch({ fs, dir, gitdir, ref, checkout, }: {
|
|
945
|
+
export function branch({ fs, dir, gitdir, ref, object, checkout, }: {
|
|
945
946
|
fs: CallbackFsClient | PromiseFsClient;
|
|
946
947
|
dir?: string;
|
|
947
948
|
gitdir?: string;
|
|
948
949
|
ref: string;
|
|
950
|
+
object?: string;
|
|
949
951
|
checkout?: boolean;
|
|
950
952
|
}): Promise<void>;
|
|
951
953
|
/**
|
package/index.js
CHANGED
|
@@ -5385,6 +5385,7 @@ async function annotatedTag({
|
|
|
5385
5385
|
* @param {import('../models/FileSystem.js').FileSystem} args.fs
|
|
5386
5386
|
* @param {string} args.gitdir
|
|
5387
5387
|
* @param {string} args.ref
|
|
5388
|
+
* @param {string} [args.object = 'HEAD']
|
|
5388
5389
|
* @param {boolean} [args.checkout = false]
|
|
5389
5390
|
*
|
|
5390
5391
|
* @returns {Promise<void>} Resolves successfully when filesystem operations are complete
|
|
@@ -5394,7 +5395,7 @@ async function annotatedTag({
|
|
|
5394
5395
|
* console.log('done')
|
|
5395
5396
|
*
|
|
5396
5397
|
*/
|
|
5397
|
-
async function _branch({ fs, gitdir, ref, checkout = false }) {
|
|
5398
|
+
async function _branch({ fs, gitdir, ref, object, checkout = false }) {
|
|
5398
5399
|
if (ref !== cleanGitRef.clean(ref)) {
|
|
5399
5400
|
throw new InvalidRefNameError(ref, cleanGitRef.clean(ref))
|
|
5400
5401
|
}
|
|
@@ -5409,7 +5410,7 @@ async function _branch({ fs, gitdir, ref, checkout = false }) {
|
|
|
5409
5410
|
// Get current HEAD tree oid
|
|
5410
5411
|
let oid;
|
|
5411
5412
|
try {
|
|
5412
|
-
oid = await GitRefManager.resolve({ fs, gitdir, ref: 'HEAD' });
|
|
5413
|
+
oid = await GitRefManager.resolve({ fs, gitdir, ref: object || 'HEAD' });
|
|
5413
5414
|
} catch (e) {
|
|
5414
5415
|
// Probably an empty repo
|
|
5415
5416
|
}
|
|
@@ -5440,6 +5441,7 @@ async function _branch({ fs, gitdir, ref, checkout = false }) {
|
|
|
5440
5441
|
* @param {string} [args.dir] - The [working tree](dir-vs-gitdir.md) directory path
|
|
5441
5442
|
* @param {string} [args.gitdir=join(dir,'.git')] - [required] The [git directory](dir-vs-gitdir.md) path
|
|
5442
5443
|
* @param {string} args.ref - What to name the branch
|
|
5444
|
+
* @param {string} [args.object = 'HEAD'] - What oid to use as the start point. Accepts a symbolic ref.
|
|
5443
5445
|
* @param {boolean} [args.checkout = false] - Update `HEAD` to point at the newly created branch
|
|
5444
5446
|
*
|
|
5445
5447
|
* @returns {Promise<void>} Resolves successfully when filesystem operations are complete
|
|
@@ -5454,6 +5456,7 @@ async function branch({
|
|
|
5454
5456
|
dir,
|
|
5455
5457
|
gitdir = join(dir, '.git'),
|
|
5456
5458
|
ref,
|
|
5459
|
+
object,
|
|
5457
5460
|
checkout = false,
|
|
5458
5461
|
}) {
|
|
5459
5462
|
try {
|
|
@@ -5464,6 +5467,7 @@ async function branch({
|
|
|
5464
5467
|
fs: new FileSystem(fs),
|
|
5465
5468
|
gitdir,
|
|
5466
5469
|
ref,
|
|
5470
|
+
object,
|
|
5467
5471
|
checkout,
|
|
5468
5472
|
})
|
|
5469
5473
|
} catch (err) {
|
|
@@ -6984,8 +6988,8 @@ function filterCapabilities(server, client) {
|
|
|
6984
6988
|
|
|
6985
6989
|
const pkg = {
|
|
6986
6990
|
name: 'isomorphic-git',
|
|
6987
|
-
version: '1.
|
|
6988
|
-
agent: 'git/isomorphic-git@1.
|
|
6991
|
+
version: '1.20.0',
|
|
6992
|
+
agent: 'git/isomorphic-git@1.20.0',
|
|
6989
6993
|
};
|
|
6990
6994
|
|
|
6991
6995
|
class FIFO {
|
package/index.umd.min.d.ts
CHANGED
|
@@ -932,6 +932,7 @@ export function annotatedTag({ fs: _fs, onSign, dir, gitdir, ref, tagger: _tagge
|
|
|
932
932
|
* @param {string} [args.dir] - The [working tree](dir-vs-gitdir.md) directory path
|
|
933
933
|
* @param {string} [args.gitdir=join(dir,'.git')] - [required] The [git directory](dir-vs-gitdir.md) path
|
|
934
934
|
* @param {string} args.ref - What to name the branch
|
|
935
|
+
* @param {string} [args.object = 'HEAD'] - What oid to use as the start point. Accepts a symbolic ref.
|
|
935
936
|
* @param {boolean} [args.checkout = false] - Update `HEAD` to point at the newly created branch
|
|
936
937
|
*
|
|
937
938
|
* @returns {Promise<void>} Resolves successfully when filesystem operations are complete
|
|
@@ -941,11 +942,12 @@ export function annotatedTag({ fs: _fs, onSign, dir, gitdir, ref, tagger: _tagge
|
|
|
941
942
|
* console.log('done')
|
|
942
943
|
*
|
|
943
944
|
*/
|
|
944
|
-
export function branch({ fs, dir, gitdir, ref, checkout, }: {
|
|
945
|
+
export function branch({ fs, dir, gitdir, ref, object, checkout, }: {
|
|
945
946
|
fs: CallbackFsClient | PromiseFsClient;
|
|
946
947
|
dir?: string;
|
|
947
948
|
gitdir?: string;
|
|
948
949
|
ref: string;
|
|
950
|
+
object?: string;
|
|
949
951
|
checkout?: boolean;
|
|
950
952
|
}): Promise<void>;
|
|
951
953
|
/**
|