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
{{ message }}
Repository navigation
rtk git log silently truncates output to 50 commits, ignoring --reverse and losing historical data #1296
When running rtk git log --all --oneline --format="%ci" --reverse, the output is silently truncated to 50 commits, starting from the most recent commits instead of the oldest ones. This behavior differs from native git log and causes data loss when users expect to see the full commit history in reverse order.
Steps to Reproduce
Install rtk v0.35.0
Run the following commands in a repository with 100+ commits:
Native git - shows all commits starting from the oldest (2022 in my case)
git log --all --oneline --format="%ci" --reverse | head -100
rtk git - only shows 50 commits, starting from recent ones (2025+)
rtk git log --all --oneline --format="%ci" --reverse | head -100
Expected Behavior
rtk git log --reverse should respect the --reverse flag and either:
Return all commits in reverse order (oldest first), OR
At least document the default limit clearly in help output
Actual Behavior
│ Command │ Total Lines │ First Date │
│ git log --all --reverse │ 1045 │ 2022-01-10 │
│ rtk git log --all --reverse │ 50 │ 2025-09-26 │
The output is truncated to 50 commits before applying the reverse order, so --reverse becomes ineffective for viewing historical commits.
I too would appreciate a simple message explaining displayed/total and how to bypass this so I don't have to babysit the agent when it needs more. Thanks!
Activity
NEOFIT-dev commentedon Apr 14, 2026
Taking this
fix(git): fix --reverse showing newest commits instead of oldest
fix(git): fix --reverse showing newest commits instead of oldest
pszymkowiak commentedon Apr 17, 2026
🔍 Automated Triage
bugmediumSummary
rtk git log silently truncates to 50 commits and applies --reverse before truncation, inverting expected behavior; PR #1302 already addresses this.
Triaged automatically by wshm · This is an automated analysis, not a human review.
John-Gee commentedon Jun 3, 2026
I too would appreciate a simple message explaining displayed/total and how to bypass this so I don't have to babysit the agent when it needs more. Thanks!