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 / git / probes / conventional-default-branches / conventional-default-branches.ts
5 lines · 233 BRaw
1/**
2 * Tried in order as the default branch when `refs/remotes/origin/HEAD` names
3 * none that resolves; past them the guess is `main`, as the engine's is.
4 */
5export const CONVENTIONAL_DEFAULT_BRANCHES = ['main', 'master'] as const