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.
TypeScript
/**
* Whether a line after a hunk header is a body line (added, removed or
* context) rather than a note such as `\ No newline at end of file`.
*
* @param line one line of `git diff` output
* @returns whether it starts with `+`, `-` or a space
*/
export const isBodyLine = (line: string) =>
line.startsWith('+') || line.startsWith('-') || line.startsWith(' ')