Skip to content

fix(git): diff a branch name against its upstream when the local copy is stale - #8

Merged
fiddur merged 1 commit into
developfrom
ref-upstream
Aug 21, 2026
Merged

fix(git): diff a branch name against its upstream when the local copy is stale#8
fiddur merged 1 commit into
developfrom
ref-upstream

Conversation

@fiddur

@fiddur fiddur commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

diffity master took the merge base against the local master, so every commit the remote had
gained since the last pull counted as part of the change set. On NCBackend3#14360 with a local
master 88 commits behind, an 11-file pull request rendered as 325 files, +14524/−3457.

A bare local branch name with a configured upstream now resolves to that upstream when it is behind
it. Ranges, tags and commits are left alone — those are pinned on purpose. Adds an argv-form git()
runner and uses it for the new resolution rather than building shell strings out of refs.

Verified: /api/diff?ref=master on that PR now returns 11 files, +367/−22, matching GitHub.

Stacked on #7.

🤖 Generated with Claude Code

https://claude.ai/code/session_018PkYQzbsnMihHesafWvXKs

… is stale

`diffity master` took the merge base against the local master, so every commit the remote
had gained since the last pull was counted as part of the change set. With a local master
88 commits behind, an 11-file change was reported as 325 files, +14524/-3457.

A bare local branch name with a configured upstream now resolves to that upstream when it
is behind. Ranges, tags and commits are left alone: those are pinned deliberately.

Adds an argv-form `git()` runner, used for the new resolution rather than building shell
strings out of refs.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018PkYQzbsnMihHesafWvXKs
@fiddur
fiddur changed the base branch from theme-system-default to develop August 21, 2026 13:34
@fiddur
fiddur marked this pull request as ready for review August 21, 2026 13:34
@fiddur
fiddur merged commit 037e2d8 into develop Aug 21, 2026
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