Add JJ VCS driver support
- Detect and route jj repositories alongside git - Thread VCS kind through status and UI labels - Add jj driver contract coverage and shared freshness helper
This commit is contained in:
1 parent
0ce7e56e43
commit
1a5be6cc2b
30 files changed
+836
-86
No files matched your search
@@ -81,6 +81,7 @@ describe("applyGitStatusStreamEvent", () => {
|
||||
};
|
||||
|
||||
expect(applyGitStatusStreamEvent(null, { _tag: "remoteUpdated", remote })).toEqual({
|
||||
kind: "unknown",
|
||||
isRepo: true,
|
||||
hasPrimaryRemote: false,
|
||||
isDefaultRef: false,
|
||||
@@ -96,6 +97,7 @@ describe("applyGitStatusStreamEvent", () => {
|
||||
|
||||
it("preserves local-only fields when applying a remote update", () => {
|
||||
const current: VcsStatusResult = {
|
||||
kind: "git",
|
||||
isRepo: true,
|
||||
sourceControlProvider: {
|
||||
kind: "github",
|
||||
|
||||
@@ -230,6 +230,7 @@ function toRemoteStatusPart(status: VcsStatusResult): VcsStatusRemoteResult {
|
||||
|
||||
function toLocalStatusPart(status: VcsStatusResult): VcsStatusLocalResult {
|
||||
return {
|
||||
kind: status.kind,
|
||||
isRepo: status.isRepo,
|
||||
...(status.sourceControlProvider
|
||||
? { sourceControlProvider: status.sourceControlProvider }
|
||||
@@ -255,6 +256,7 @@ export function applyGitStatusStreamEvent(
|
||||
if (current === null) {
|
||||
return mergeGitStatusParts(
|
||||
{
|
||||
kind: "unknown",
|
||||
isRepo: true,
|
||||
hasPrimaryRemote: false,
|
||||
isDefaultRef: false,
|
||||
|
||||
Reference in new issue
Block a user