Skip to content

v0.9.8 - Multi-Branch Index Management

Latest

Choose a tag to compare

@lagrahhn lagrahhn released this 29 May 05:51
· 2 commits to push-branch since this release

New Features

Per-Branch Index Management

CodeGraph now stores a separate SQLite index for each git branch, allowing instant branch switching without re-indexing.

Key Features:

  • Auto-detect current git branch on init/open
  • Branch-specific database files under .codegraph/branches/
  • Instant branch switching for cached branches
  • Automatic migration from legacy single-DB format
  • LRU eviction keeps 10 most recent branches

CLI Commands:

  • codegraph branch - Show branch status
  • codegraph branch switch <name> - Switch to a branch index
  • codegraph branch prune <name> - Remove a branch index
  • codegraph branch prune --all - Remove all non-active indexes

新功能

多分支索引管理

CodeGraph 现在为每个 git 分支存储独立的 SQLite 索引,支持秒级分支切换,无需重新索引。

核心特性:

  • 打开/初始化项目时自动检测当前 git 分支
  • 分支独立数据库存储在 .codegraph/branches/ 目录
  • 已缓存分支可瞬间切换
  • 自动从旧版单数据库格式迁移
  • LRU 淘汰策略默认保留最近 10 个分支

CLI 命令:

  • codegraph branch - 查看分支状态
  • codegraph branch switch <name> - 切换分支索引
  • codegraph branch prune <name> - 删除分支索引
  • codegraph branch prune --all - 删除所有非活跃分支索引

Full Changelog: https://github.com/lagrahhn/codeGraph-branch/blob/main/CHANGELOG.md