spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / diff / hooks / names / keys / base-store-key-of.ts
8 lines · 285 BRaw
1/**
2 * The `$.store` key of a working tree's chosen comparison base, one per
3 * `--show-toplevel` so a linked worktree keeps its own.
4 *
5 * @param toplevel the working tree's top-level path
6 * @returns the key
7 */
8export const baseStoreKeyOf = (toplevel: string) => `base:${toplevel}`