rtk-ai/rtk

rtk git show differ from git show on binary files

Open

#1.071 geöffnet am 7. Apr. 2026

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Rust (2.914 Forks)batch import
area:clibugeffort-smallfilter-qualitygood first issueneeds-reproductionpriority:medium

Repository-Metriken

Stars
 (48.085 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 11T 1h) (45 gemergte PRs in 30 T)

Beschreibung

Hello,

tested with rtk versions 0.30.0 and 0.35.0

git show <commit>:<file> returns the file content for the given commit.

When <file> is a binary file, I get a different output with:

  • rtk git show <commit>:<binary_file> | md5sum

and

  • git show <commit>:<binary_file> | md5sum

I have the same output when the file is a plain text file.

Contributor Guide