Skip to content

jj st does not show untracked files in directories #5389

@necauqua

Description

@necauqua

Description

With snapshot.auto-track set to none() jj st seems to only show untracked files at the root of the repository.

Steps to Reproduce the Problem

λ jj git init test
λ cd test
λ jj config set --repo snapshot.auto-track 'none()'
λ touch test-file
λ jj st
Untracked paths:
? test-file
Working copy : (m) b91c73c (empty) (no description set)
Parent commit: (z) 0000000 (empty) (no description set)
λ mkdir test-dir
λ touch test-dir/something
λ jj st
Untracked paths:
? test-file
Working copy : (m) b91c73c (empty) (no description set)
Parent commit: (z) 0000000 (empty) (no description set)

Expected Behavior

Second jj st should've shown a ? test-dir/something line, or maybe a ? test-dir line if the entire dir is untracked.

Actual Behavior

It doesn't show that, and in fact if test-file was not there it would say "The working copy is clean"

Specifications

  • Platform: NixOS
  • Version: jj 0.25.0-f7431650bea45f22421951058949ebacabb1de9a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions