Skip to content

Hide git changes in jj repo #517

Open

Description

@plttn

Most of the git widgets (when in the (no git) mode) properly hide while we're in a JJ repo, however the git changes one doesn't hide in a JJ repo, so it's not possible to have both the git changes and jj changes and display the appropriate one only without patching (as seen in my work in #499).

Activity

  1. eric-engberg commented on Oct 9, 2026

    @eric-engberg
    Contributor

    My #679 (Git Branch shows a detached HEAD's commit, v2.2.31) made this worse for Git Branch. jj keeps git's HEAD detached in a colocated repo, so Git Branch now shows ⎇ (4227868) there, where it used to show "no git" or hide. eric-engberg#79 restores the old behavior in jj repos only; a plain git repo's detached HEAD still shows its commit. I'll open it here once I've reviewed it. Git Changes, which this issue is about, is what #499 covers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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