Skip to content

Add walker for jujutsu repositories #600

@delafthi

Description

@delafthi

Is your feature request related to a problem? Please describe.

I'm working with Jujutsu repositories, and currently, numtide/treefmt does not provide a dedicated walker for Jujutsu repositories (without co-location). As a result, treefmt does not correctly respect Jujutsu’s ignore files (local and global Git ignore files).

Describe the solution you'd like

I would like to see a dedicated walker for Jujutsu repositories in numtide/treefmt that fully respects Jujutsu's ignore mechanisms.

Describe alternatives you've considered

As an alternative, using a co-located Jujutsu repository alongside Git allows treefmt to use the existing Git walker. However, this setup introduces a slight overhead, as described here.

Additional context

Jujutsu’s workflow differs significantly from Git’s, which may cause differences in walker behavior. I have started experimenting with an implementation #601, although I lack Go experience and primarily copied, and adapted the existing Git walker by adjusting commands. I would welcome guidance or collaboration to develop a more idiomatic and robust implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions