Skip to content

Jujutsu Support? #17

@elianiva

Description

@elianiva

When I run critique inside a jj repo, it doesn't show anything, it only shows unknown +0/-0 or something like that, probably since jj works differently than git and it's using a detached head.

It's compatible with Git so it shouldn't be that hard to implement, it supports generating git-formatted diff (jj diff --git).

I suppose we can simply add something similar to

export function buildGitCommand(options: GitCommandOptions): string {
for Jujutsu since the data structure would be the same with Git. Either auto detect when we have .jj directory present in the project or explicitly do something like bunx critique --jj.

I'm willing to do it myself if I get the green light to add it.

Jujutsu: https://docs.jj-vcs.dev/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions