Repository navigation
feat(git-tui): page the /git log instead of stopping at 200 commits - #1665
Merged
Merged
Conversation
The log's last row is no longer the end of the log: down, j, space (and the page keys in the single-column layout) read the next page off the loop, and the list title says «↓ older commits» while there is more. The page is laid out from the top of the history and cut afterwards, so its lanes continue the rows above instead of starting every line of work again at the left column. A read asks one entry past the page, which is what says whether the history goes on, and stops at the skip ceiling instead of answering the same rows forever.
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 TUI git panel no longer treats the 200th commit as the end of history: the
/gitlog now pages deeper on demand, and its page keeps the lanes continuous with the rows above.Commits
Verification
Local run at
5270a5225with the pinned toolchain (rustc 1.99.1) andulimit -n 8192, in the main checkout (already at that sha, clean):cargo fmt --all -- --check-> cleancargo check -p future-tui --all-targets-> Finished, no warningscargo clippy -p future-tui --all-targets -- -D warnings-> cleancargo test -p future-tui --lib-> 1844 passed; 0 failed; 4 ignoredmake check-docs-> docs and channel matrix OKUser-visible changes
/gitlog: the last row is no longer the end of the log.Down,jandSpace(and the page keys in the single-column layout) read the next page, and the list title showsolder commitswhile more history remains. Before: history stopped at 200 commits with no way to go further. Revert:5270a5225.5270a5225.docs/guide/tui.mdanddocs/guide/tui.zh-CN.mddescribe the paging keys.Notes
None.