Repository navigation
Review tab counts untracked files - #598
Merged
Merged
Conversation
GetChangedFilesAsync and GetLineCountsAsync diff against a throwaway copy of the index with every untracked, not-ignored file added as intent-to-add (GIT_INDEX_FILE), so those files compare with the merge base like tracked ones: a restored deletion identical to the base drops off, a new file shows as added with its line count, and the user's index is never written. Closes #597 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Review tab now lists untracked files git doesn't ignore, compared with the merge base (or the PR's base) like any other file. A new file you haven't added shows as
Awith its+N, an untracked file that differs from the base shows asM, and restoring a committed deletion and saving it takes it off the list after a refresh. Nothing is staged: the diff runs against a throwaway copy of the index.Closes #597
Worth knowing:
-M) now also pairs a deleted file with an untracked one that's similar enough, so an unstagedmvshows asRrather thanDplusA. The task left this out of scope, expectingDandA; I kept-Mas it was rather than turning it off for untracked files only.EditorTabDirtyTests(Ctrl+K, the clipboard path), which this change doesn't touch.🤖 Generated with Claude Code
a-team try tuicode 598