Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add enabled config for fix tools #4401

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Sep 19, 2024

  1. fix: Add enabled config for fix tools

    Adds an optional `fix.tools.TOOL.enabled` config that disables use of a fix
    tool (if omitted, the tool is enabled). This is useful for defining tools in
    the user's configuration without enabling them for all repositories:
    
    ```toml
    # ~/.jjconfig.toml
    [fix.tools.rustfmt]
    enabled = false
    command = ["rustfmt", "--emit", "stdout"]
    patterns = ["glob:'**/*.rs'"]
    ```
    
    Then to enable it in a repository:
    
    ```shell
    $ jj config set --repo fix.tools.rustfmt.enabled true
    ```
    
    This also allows Jujutsu to ship some built-in tool configurations that are
    disabled by default.
    jennings committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    8286a3d View commit details
    Browse the repository at this point in the history