Skip to content

Add --no-untracked option to git cl status#42

Merged
BHFock merged 4 commits into
mainfrom
untracked
May 16, 2026
Merged

Add --no-untracked option to git cl status#42
BHFock merged 4 commits into
mainfrom
untracked

Conversation

@BHFock
Copy link
Copy Markdown
Owner

@BHFock BHFock commented May 16, 2026

Description:

Adds a new --no-untracked flag to git cl status that hides untracked files (??) from the output.

By default, git cl status lists every untracked file individually (using git status --untracked-files=all), which differs from git status's default behaviour and can clutter the output in repositories with many untracked files. The new flag passes --untracked-files=no to Git, suppressing untracked files entirely.

The flag is orthogonal to --all — they can be combined to show all uncommon status codes except untracked files.

Default behaviour is unchanged: untracked files are still shown unless --no-untracked is explicitly passed.

Example:

$ git cl status
No Changelist:
  [??] notes/draft.md
  [ M] src/core.py

$ git cl status --no-untracked
No Changelist:
  [ M] src/core.py

Changes:

  • New --no-untracked flag on the status subcommand
  • New include_untracked parameter on clutil_get_file_status_map (default True, preserves existing behaviour for all other callers)
  • clutil_get_git_status now passes --untracked-files=no explicitly when untracked files are not requested

Version bumped to 1.1.7

@BHFock BHFock merged commit 913c4c7 into main May 16, 2026
4 checks passed
@BHFock BHFock deleted the untracked branch May 16, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant