rtk-ai/rtk

Add rtk git rev-parse passthrough

Open

#1,729 建立於 2026年5月5日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Rust (2,914 fork)batch import
area:clienhancementhelp wantedpriority:low

倉庫指標

Star
 (48,085 star)
PR 合併指標
 (平均合併 11天 1小時) (30 天內合併 45 個 PR)

描述

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.

貢獻者指南