rtk-ai/rtk

"git log -p" omits the patch requested by the -p flag

Open

#2.275 geöffnet am 5. Juni 2026

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Rust (2.914 Forks)batch import
area:clibuggood first issuepriority:high

Repository-Metriken

Stars
 (48.085 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 8T 17h) (49 gemergte PRs in 30 T)

Beschreibung

When diagnosing a problem that requires inspecting git history, agents commonly use git log -p. However, rtk strips the patch information requested by the -p flag. This is often vital context.

Instead rtk compresses the diff. E.g. [+5 lines omitted].

Please update git log -p handling to show the entire patch.

This was mentioned in https://github.com/rtk-ai/rtk/issues/467, but doesn't look like it was actually fixed in the associated PR.

Contributor Guide