rtk-ai/rtk

Add rtk git rev-parse passthrough

Open

#1,729 opened on May 5, 2026

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Rust (2,914 forks)batch import
area:clienhancementhelp wantedpriority:low

Repository metrics

Stars
 (48,085 stars)
PR merge metrics
 (Avg merge 11d 1h) (45 merged PRs in 30d)

Description

Problem

67 invocations of git rev-parse in 30 days, mostly:

  • git rev-parse --show-toplevel
  • git rev-parse HEAD
  • git rev-parse --abbrev-ref HEAD

These are already minimal output (one line), so there's nothing to compress — but they're not currently routed through rtk git, so they don't show up in rtk gain analytics and break the "everything git goes through rtk" mental model.

Proposal

Add rev-parse to the rtk git passthrough list. No filtering needed — just route it so usage is tracked and behavior is consistent with the rest of the git * family.

Low effort, mostly hygiene.

Contributor guide