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
128b432bee
commit
c31becadc7
30 files changed
+838
-44
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",
|
||||
|
||||
@@ -226,6 +226,7 @@ function toRemoteStatusPart(status: VcsStatusResult): VcsStatusRemoteResult {
|
||||
|
||||
function toLocalStatusPart(status: VcsStatusResult): VcsStatusLocalResult {
|
||||
return {
|
||||
kind: status.kind,
|
||||
isRepo: status.isRepo,
|
||||
...(status.sourceControlProvider
|
||||
? { sourceControlProvider: status.sourceControlProvider }
|
||||
@@ -251,6 +252,7 @@ export function applyGitStatusStreamEvent(
|
||||
if (current === null) {
|
||||
return mergeGitStatusParts(
|
||||
{
|
||||
kind: "unknown",
|
||||
isRepo: true,
|
||||
hasPrimaryRemote: false,
|
||||
isDefaultRef: false,
|
||||
|
||||
Reference in new issue
Block a user