git-aware mode (gdf git), difftool support, untracked files#5
Merged
Conversation
…diff - diff mode now reads a missing/deleted side as empty instead of erroring, so `git difftool` works on added/deleted files (fixes "no such file or directory" on deletions) - `gdf git [<rev>] [--staged]`: reads git directly, shows all changed files in one window with a file-list sidebar (status M/A/D/R, +/- counts) and ref-labeled panes (HEAD vs working tree / index) - Makefile git-config now also wires difftool.gdf + diff.tool; README gains a "View working changes" section and `gdf git` usage - tests: readSide, add/delete rows, countChanges, git session (M/D/untracked, no-changes, not-a-repo) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- gdf git now lists untracked (non-ignored) files via `git ls-files --others --exclude-standard`, status "U", rendered all-new; --staged skips them. Files sorted by path. - Sidebar gets a distinct U badge color. - README: document U status, embed dark/light git-view screenshots. - tests updated: untracked now expected as U (+sorted-order check). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Adds a git-aware multi-file diff mode and difftool integration, and fixes a diff-mode crash on missing files.
gdf git— view working changes in one windowgdf git [<rev>] [--staged]reads git directly and shows every changed file in one window with a file-list sidebar.HEADvsworking tree/index.git ls-files --others --exclude-standard) are included and rendered all-new;--stagedskips them.difftool support
make git-confignow also wiresdifftool.gdf+diff.tool gdf.git difftoolworks per-file (sequential, like mergetool).Bug fix
gdf: open <path>: no such file or directorywhen difftool hands gdf a deleted file's working path (and the added-file case). Verified end to end.Tests
readSide(missing→empty), add/delete rows,countChanges, git session (M/D/untracked-U, sorted, no-changes, not-a-repo).All gates green locally: gofmt, vet, race tests.