gitbutlerapp/gitbutler

`but branch list|show` use their own version of a persisted CliId mapping

クローズ

#11,276 opened on 2025/11/18

 (6 件のコメント) (1 件のリアクション) (0 人の担当者)Rust (862 件のフォーク)batch import
help wanted

Repository metrics

Stars
 (19,787 個のスター)
PR merge metrics
 (PR metrics pending)

説明

What it does is to just assign a number to each of them, and each time but branch list is run, it stores a mapping from CliId to branch name in .git/gitbutler/branch_id_map.json.

This isn't what we want, as we really don't want to create more loose files. Nor is the idea of CliIds that they must be persisted to work.

These commands should be cleaned up to use a standard CliId that can be generated from context, so persistence can be completely removed. See load_id_map and store_id_map for reference.

コントリビューターガイド