isomorphic-git 1.10.5 → 1.11.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 +1 -1
- package/index.cjs +14 -7
- package/index.d.ts +3 -1
- package/index.js +14 -7
- 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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
[
|
|
2
2
|
"HeadlessChrome 0.0.0 (Linux 0.0.0)",
|
|
3
3
|
"Firefox 96.0.0 (Ubuntu 0.0.0)",
|
|
4
|
-
"Chrome 79.0.3945 (Windows 10 0.0.0)",
|
|
5
4
|
"Chrome Mobile 96.0.4664 (Android 0.0.0)",
|
|
5
|
+
"Chrome 79.0.3945 (Windows 10 0.0.0)",
|
|
6
6
|
"Safari 13.1.0 (Mac OS X 10.15.4)",
|
|
7
7
|
"Mobile Safari 13.0.0 (iOS 13.0.0)"
|
|
8
8
|
]
|
package/index.cjs
CHANGED
|
@@ -5551,6 +5551,7 @@ const worthWalking = (filepath, root) => {
|
|
|
5551
5551
|
* @param {boolean} [args.noUpdateHead]
|
|
5552
5552
|
* @param {boolean} [args.dryRun]
|
|
5553
5553
|
* @param {boolean} [args.force]
|
|
5554
|
+
* @param {boolean} [args.track]
|
|
5554
5555
|
*
|
|
5555
5556
|
* @returns {Promise<void>} Resolves successfully when filesystem operations are complete
|
|
5556
5557
|
*
|
|
@@ -5568,6 +5569,7 @@ async function _checkout({
|
|
|
5568
5569
|
noUpdateHead,
|
|
5569
5570
|
dryRun,
|
|
5570
5571
|
force,
|
|
5572
|
+
track,
|
|
5571
5573
|
}) {
|
|
5572
5574
|
// Get tree oid
|
|
5573
5575
|
let oid;
|
|
@@ -5585,11 +5587,13 @@ async function _checkout({
|
|
|
5585
5587
|
gitdir,
|
|
5586
5588
|
ref: remoteRef,
|
|
5587
5589
|
});
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5590
|
+
if (track) {
|
|
5591
|
+
// Set up remote tracking branch
|
|
5592
|
+
const config = await GitConfigManager.get({ fs, gitdir });
|
|
5593
|
+
await config.set(`branch.${ref}.remote`, remote);
|
|
5594
|
+
await config.set(`branch.${ref}.merge`, `refs/heads/${ref}`);
|
|
5595
|
+
await GitConfigManager.save({ fs, gitdir, config });
|
|
5596
|
+
}
|
|
5593
5597
|
// Create a new branch that points at that same commit
|
|
5594
5598
|
await GitRefManager.writeRef({
|
|
5595
5599
|
fs,
|
|
@@ -6115,6 +6119,7 @@ async function analyze({
|
|
|
6115
6119
|
* @param {boolean} [args.dryRun = false] - If true, simulates a checkout so you can test whether it would succeed.
|
|
6116
6120
|
* @param {boolean} [args.force = false] - If true, conflicts will be ignored and files will be overwritten regardless of local changes.
|
|
6117
6121
|
* @param {object} [args.cache] - a [cache](cache.md) object
|
|
6122
|
+
* @param {object} [args.track] - If true, will not set the remote branch tracking information. Defaults to false.
|
|
6118
6123
|
*
|
|
6119
6124
|
* @returns {Promise<void>} Resolves successfully when filesystem operations are complete
|
|
6120
6125
|
*
|
|
@@ -6162,6 +6167,7 @@ async function checkout({
|
|
|
6162
6167
|
dryRun = false,
|
|
6163
6168
|
force = false,
|
|
6164
6169
|
cache = {},
|
|
6170
|
+
track = true,
|
|
6165
6171
|
}) {
|
|
6166
6172
|
try {
|
|
6167
6173
|
assertParameter('fs', fs);
|
|
@@ -6182,6 +6188,7 @@ async function checkout({
|
|
|
6182
6188
|
noUpdateHead,
|
|
6183
6189
|
dryRun,
|
|
6184
6190
|
force,
|
|
6191
|
+
track,
|
|
6185
6192
|
})
|
|
6186
6193
|
} catch (err) {
|
|
6187
6194
|
err.caller = 'git.checkout';
|
|
@@ -6865,8 +6872,8 @@ function filterCapabilities(server, client) {
|
|
|
6865
6872
|
|
|
6866
6873
|
const pkg = {
|
|
6867
6874
|
name: 'isomorphic-git',
|
|
6868
|
-
version: '1.
|
|
6869
|
-
agent: 'git/isomorphic-git@1.
|
|
6875
|
+
version: '1.11.0',
|
|
6876
|
+
agent: 'git/isomorphic-git@1.11.0',
|
|
6870
6877
|
};
|
|
6871
6878
|
|
|
6872
6879
|
class FIFO {
|
package/index.d.ts
CHANGED
|
@@ -945,6 +945,7 @@ export function branch({ fs, dir, gitdir, ref, checkout, }: {
|
|
|
945
945
|
* @param {boolean} [args.dryRun = false] - If true, simulates a checkout so you can test whether it would succeed.
|
|
946
946
|
* @param {boolean} [args.force = false] - If true, conflicts will be ignored and files will be overwritten regardless of local changes.
|
|
947
947
|
* @param {object} [args.cache] - a [cache](cache.md) object
|
|
948
|
+
* @param {object} [args.track] - If true, will not set the remote branch tracking information. Defaults to false.
|
|
948
949
|
*
|
|
949
950
|
* @returns {Promise<void>} Resolves successfully when filesystem operations are complete
|
|
950
951
|
*
|
|
@@ -979,7 +980,7 @@ export function branch({ fs, dir, gitdir, ref, checkout, }: {
|
|
|
979
980
|
* })
|
|
980
981
|
* console.log('done')
|
|
981
982
|
*/
|
|
982
|
-
export function checkout({ fs, onProgress, dir, gitdir, remote, ref: _ref, filepaths, noCheckout, noUpdateHead, dryRun, force, cache, }: {
|
|
983
|
+
export function checkout({ fs, onProgress, dir, gitdir, remote, ref: _ref, filepaths, noCheckout, noUpdateHead, dryRun, force, cache, track, }: {
|
|
983
984
|
fs: CallbackFsClient | PromiseFsClient;
|
|
984
985
|
onProgress?: ProgressCallback;
|
|
985
986
|
dir: string;
|
|
@@ -992,6 +993,7 @@ export function checkout({ fs, onProgress, dir, gitdir, remote, ref: _ref, filep
|
|
|
992
993
|
dryRun?: boolean;
|
|
993
994
|
force?: boolean;
|
|
994
995
|
cache?: any;
|
|
996
|
+
track?: any;
|
|
995
997
|
}): Promise<void>;
|
|
996
998
|
/**
|
|
997
999
|
* Clone a repository
|
package/index.js
CHANGED
|
@@ -5545,6 +5545,7 @@ const worthWalking = (filepath, root) => {
|
|
|
5545
5545
|
* @param {boolean} [args.noUpdateHead]
|
|
5546
5546
|
* @param {boolean} [args.dryRun]
|
|
5547
5547
|
* @param {boolean} [args.force]
|
|
5548
|
+
* @param {boolean} [args.track]
|
|
5548
5549
|
*
|
|
5549
5550
|
* @returns {Promise<void>} Resolves successfully when filesystem operations are complete
|
|
5550
5551
|
*
|
|
@@ -5562,6 +5563,7 @@ async function _checkout({
|
|
|
5562
5563
|
noUpdateHead,
|
|
5563
5564
|
dryRun,
|
|
5564
5565
|
force,
|
|
5566
|
+
track,
|
|
5565
5567
|
}) {
|
|
5566
5568
|
// Get tree oid
|
|
5567
5569
|
let oid;
|
|
@@ -5579,11 +5581,13 @@ async function _checkout({
|
|
|
5579
5581
|
gitdir,
|
|
5580
5582
|
ref: remoteRef,
|
|
5581
5583
|
});
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5584
|
+
if (track) {
|
|
5585
|
+
// Set up remote tracking branch
|
|
5586
|
+
const config = await GitConfigManager.get({ fs, gitdir });
|
|
5587
|
+
await config.set(`branch.${ref}.remote`, remote);
|
|
5588
|
+
await config.set(`branch.${ref}.merge`, `refs/heads/${ref}`);
|
|
5589
|
+
await GitConfigManager.save({ fs, gitdir, config });
|
|
5590
|
+
}
|
|
5587
5591
|
// Create a new branch that points at that same commit
|
|
5588
5592
|
await GitRefManager.writeRef({
|
|
5589
5593
|
fs,
|
|
@@ -6109,6 +6113,7 @@ async function analyze({
|
|
|
6109
6113
|
* @param {boolean} [args.dryRun = false] - If true, simulates a checkout so you can test whether it would succeed.
|
|
6110
6114
|
* @param {boolean} [args.force = false] - If true, conflicts will be ignored and files will be overwritten regardless of local changes.
|
|
6111
6115
|
* @param {object} [args.cache] - a [cache](cache.md) object
|
|
6116
|
+
* @param {object} [args.track] - If true, will not set the remote branch tracking information. Defaults to false.
|
|
6112
6117
|
*
|
|
6113
6118
|
* @returns {Promise<void>} Resolves successfully when filesystem operations are complete
|
|
6114
6119
|
*
|
|
@@ -6156,6 +6161,7 @@ async function checkout({
|
|
|
6156
6161
|
dryRun = false,
|
|
6157
6162
|
force = false,
|
|
6158
6163
|
cache = {},
|
|
6164
|
+
track = true,
|
|
6159
6165
|
}) {
|
|
6160
6166
|
try {
|
|
6161
6167
|
assertParameter('fs', fs);
|
|
@@ -6176,6 +6182,7 @@ async function checkout({
|
|
|
6176
6182
|
noUpdateHead,
|
|
6177
6183
|
dryRun,
|
|
6178
6184
|
force,
|
|
6185
|
+
track,
|
|
6179
6186
|
})
|
|
6180
6187
|
} catch (err) {
|
|
6181
6188
|
err.caller = 'git.checkout';
|
|
@@ -6859,8 +6866,8 @@ function filterCapabilities(server, client) {
|
|
|
6859
6866
|
|
|
6860
6867
|
const pkg = {
|
|
6861
6868
|
name: 'isomorphic-git',
|
|
6862
|
-
version: '1.
|
|
6863
|
-
agent: 'git/isomorphic-git@1.
|
|
6869
|
+
version: '1.11.0',
|
|
6870
|
+
agent: 'git/isomorphic-git@1.11.0',
|
|
6864
6871
|
};
|
|
6865
6872
|
|
|
6866
6873
|
class FIFO {
|
package/index.umd.min.d.ts
CHANGED
|
@@ -945,6 +945,7 @@ export function branch({ fs, dir, gitdir, ref, checkout, }: {
|
|
|
945
945
|
* @param {boolean} [args.dryRun = false] - If true, simulates a checkout so you can test whether it would succeed.
|
|
946
946
|
* @param {boolean} [args.force = false] - If true, conflicts will be ignored and files will be overwritten regardless of local changes.
|
|
947
947
|
* @param {object} [args.cache] - a [cache](cache.md) object
|
|
948
|
+
* @param {object} [args.track] - If true, will not set the remote branch tracking information. Defaults to false.
|
|
948
949
|
*
|
|
949
950
|
* @returns {Promise<void>} Resolves successfully when filesystem operations are complete
|
|
950
951
|
*
|
|
@@ -979,7 +980,7 @@ export function branch({ fs, dir, gitdir, ref, checkout, }: {
|
|
|
979
980
|
* })
|
|
980
981
|
* console.log('done')
|
|
981
982
|
*/
|
|
982
|
-
export function checkout({ fs, onProgress, dir, gitdir, remote, ref: _ref, filepaths, noCheckout, noUpdateHead, dryRun, force, cache, }: {
|
|
983
|
+
export function checkout({ fs, onProgress, dir, gitdir, remote, ref: _ref, filepaths, noCheckout, noUpdateHead, dryRun, force, cache, track, }: {
|
|
983
984
|
fs: CallbackFsClient | PromiseFsClient;
|
|
984
985
|
onProgress?: ProgressCallback;
|
|
985
986
|
dir: string;
|
|
@@ -992,6 +993,7 @@ export function checkout({ fs, onProgress, dir, gitdir, remote, ref: _ref, filep
|
|
|
992
993
|
dryRun?: boolean;
|
|
993
994
|
force?: boolean;
|
|
994
995
|
cache?: any;
|
|
996
|
+
track?: any;
|
|
995
997
|
}): Promise<void>;
|
|
996
998
|
/**
|
|
997
999
|
* Clone a repository
|