Skip to content

Add JSON output to status and claim - #32

Merged
douglaslassance merged 3 commits into
mainfrom
claude/gitalong-status-concerns-ce3cd5
Sep 21, 2026
Merged

douglaslassance merged 3 commits into
mainfrom
claude/gitalong-status-concerns-ce3cd5

Conversation

@douglaslassance

Copy link
Copy Markdown
Owner

The text line status and claim print is whitespace-delimited with the
filename and author unquoted, so it cannot be parsed when a filename contains
a space, and its last column mixes the git author with the OS username.

--json prints one array instead, one object per file in input order, with
the commit record serialized exactly as it appears in commits.json. The
text format is unchanged. claim --json adds a blocked boolean per file
and keeps its exit code.

Also lights MINE_OTHER_BRANCH for commits read from the git log. It was
only ever set for store records, so a file whose latest commit sits on a
diverged local branch rendered as all dashes, indistinguishable from a file
nothing touches. Such a file now blocks claim, which matches how the same
situation already behaves when the record comes from the store.

@douglaslassance
douglaslassance merged commit 2b8a2c0 into main Sep 21, 2026
8 checks passed
@douglaslassance
douglaslassance deleted the claude/gitalong-status-concerns-ce3cd5 branch September 21, 2026 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant