@openvcs/git-plugin 0.3.2-nightly.20260531.118 → 0.3.2-nightly.20260601.121
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/bin/git.js +3 -4
- package/package.json +2 -2
- package/src/git.ts +3 -5
package/bin/git.js
CHANGED
|
@@ -377,19 +377,18 @@ export class GitCommand {
|
|
|
377
377
|
const theirs = this.run(['show', `:3:${path}`]);
|
|
378
378
|
const base = this.run(['show', `:1:${path}`]);
|
|
379
379
|
if (ours.status !== 0 || theirs.status !== 0) {
|
|
380
|
-
return { path, ours: null, theirs: null, base: null, binary: false
|
|
380
|
+
return { path, ours: null, theirs: null, base: null, binary: false };
|
|
381
381
|
}
|
|
382
382
|
const oursContent = ours.stdout;
|
|
383
|
-
const
|
|
383
|
+
const lfsPointer = ours.stdout.includes('version https://git-lfs.github.com/spec/v1') ||
|
|
384
384
|
theirs.stdout.includes('version https://git-lfs.github.com/spec/v1');
|
|
385
|
-
const binary = !
|
|
385
|
+
const binary = !lfsPointer && (oursContent.startsWith('Binary\0') || oursContent.includes('\0'));
|
|
386
386
|
return {
|
|
387
387
|
path,
|
|
388
388
|
ours: ours.stdout,
|
|
389
389
|
theirs: theirs.stdout,
|
|
390
390
|
base: base.status === 0 ? base.stdout : null,
|
|
391
391
|
binary,
|
|
392
|
-
lfs_pointer,
|
|
393
392
|
};
|
|
394
393
|
}
|
|
395
394
|
checkoutConflictSide(path, side) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openvcs/git-plugin",
|
|
3
|
-
"version": "0.3.2-nightly.
|
|
3
|
+
"version": "0.3.2-nightly.20260601.121",
|
|
4
4
|
"description": "Git VCS backend plugin for OpenVCS",
|
|
5
5
|
"author": "OpenVCS Contributors",
|
|
6
6
|
"license": "GPL-3.0-or-later",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
}
|
|
36
36
|
]
|
|
37
37
|
},
|
|
38
|
-
"version": "0.3.2-nightly.
|
|
38
|
+
"version": "0.3.2-nightly.20260601.121"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"lint": "tsc -p tsconfig.json --noEmit",
|
package/src/git.ts
CHANGED
|
@@ -65,7 +65,6 @@ export interface ConflictDetails {
|
|
|
65
65
|
theirs: string | null;
|
|
66
66
|
base: string | null;
|
|
67
67
|
binary: boolean;
|
|
68
|
-
lfs_pointer: boolean;
|
|
69
68
|
}
|
|
70
69
|
|
|
71
70
|
export interface StashEntry {
|
|
@@ -528,15 +527,15 @@ export class GitCommand {
|
|
|
528
527
|
const base = this.run(['show', `:1:${path}`]);
|
|
529
528
|
|
|
530
529
|
if (ours.status !== 0 || theirs.status !== 0) {
|
|
531
|
-
return { path, ours: null, theirs: null, base: null, binary: false
|
|
530
|
+
return { path, ours: null, theirs: null, base: null, binary: false };
|
|
532
531
|
}
|
|
533
532
|
|
|
534
533
|
const oursContent = ours.stdout;
|
|
535
|
-
const
|
|
534
|
+
const lfsPointer =
|
|
536
535
|
ours.stdout.includes('version https://git-lfs.github.com/spec/v1') ||
|
|
537
536
|
theirs.stdout.includes('version https://git-lfs.github.com/spec/v1');
|
|
538
537
|
|
|
539
|
-
const binary = !
|
|
538
|
+
const binary = !lfsPointer && (oursContent.startsWith('Binary\0') || oursContent.includes('\0'));
|
|
540
539
|
|
|
541
540
|
return {
|
|
542
541
|
path,
|
|
@@ -544,7 +543,6 @@ export class GitCommand {
|
|
|
544
543
|
theirs: theirs.stdout,
|
|
545
544
|
base: base.status === 0 ? base.stdout : null,
|
|
546
545
|
binary,
|
|
547
|
-
lfs_pointer,
|
|
548
546
|
};
|
|
549
547
|
}
|
|
550
548
|
|