gitbutlerapp/gitbutler

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

Open

#11.276 aberto em 18 de nov. de 2025

Ver no GitHub
 (6 comments) (1 reaction) (0 assignees)Rust (862 forks)batch import
help wanted

Métricas do repositório

Stars
 (19.787 stars)
Métricas de merge de PR
 (Mesclagem média 14h 43m) (446 fundiu PRs em 30d)

Description

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.

Guia do colaborador