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 / rebase-marks / rebase-marks.ts
14 lines · 499 BRaw
1/**
2 * What in the git directory says a rebase stopped mid-way: `head`, the file
3 * naming the commit it stopped at, beside a folder the rebase still keeps.
4 *
5 * `head` alone is no sign: git leaves it behind a rebase that finished.
6 * The folder is `merge`, or `apply` while it holds the file `rebasing`
7 * (without it the folder is a stopped `git am`'s).
8 */
9export const REBASE_MARKS = {
10 head: 'REBASE_HEAD',
11 merge: 'rebase-merge',
12 apply: 'rebase-apply',
13 rebasing: 'rebasing',
14} as const