You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Exclude local index from changed files when an explicit head is provided.
`moon query changed-files` (and affected detection) always merged
`git status` into the results, even when both `--base` and `--head`
were passed as explicit revisions. Local uncommitted changes and
untracked files showed up as false positives when walking history
commit-by-commit (issue #2511, remaining half after the v2.4 rework
fixed the dropped `--head`).
The local index is now only consulted when no explicit head is
provided, i.e. when the comparison targets the working tree. Head-only
queries previously ignored the head in local mode (returning local
status only); they now diff merge-base(defaultBranch, head)..head.
Additionally, `MOON_BASE`/`MOON_HEAD` values that are set but empty are
treated as not provided, as CI templates commonly pass these through
unconditionally.
Closes#2511
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
0 commit comments