Skip to content

M1 R4: tracking_branch via git config (qwen2.5-coder:32b)#6

Merged
hartsock merged 1 commit into
mainfrom
pilot/r4-tracking-branch
May 31, 2026
Merged

M1 R4: tracking_branch via git config (qwen2.5-coder:32b)#6
hartsock merged 1 commit into
mainfrom
pilot/r4-tracking-branch

Conversation

@hartsock

Copy link
Copy Markdown
Owner

Summary

src/repo/tracking_branch.rs — tracking_branch(path) -> Result<Option<String>> resolves the current branch's configured upstream to a short "remote/branch" name (e.g. "origin/main") from branch.<name>.remote + .merge via gix config_snapshot().string(); Ok(None) when no upstream or detached. Registered + soft-fail PyO3 wrapper. Parity-tested vs git rev-parse --abbrev-ref @{upstream} (with a real bare remote) and the no-upstream case.

Implementation + parity tests written by qwen2.5-coder:32b via newt worker
(newt-agent's ACP worker), piloted. Provenance is in the commit trailers
(Model: / Co-Authored-By:).

Test plan

  • cargo test --no-default-features — parity tests vs the git CLI, green.
  • cargo clippy --no-default-features --all-targets -- -D warnings — clean.
  • cargo clippy --features extension-module -- -D warnings — clean.
  • cargo fmt --all --check — clean.

src/repo/tracking_branch.rs — `tracking_branch(path) -> Result<Option<String>>` resolves the current branch's configured upstream to a short "remote/branch" name (e.g. "origin/main") from `branch.<name>.remote` + `.merge` via gix `config_snapshot().string()`; `Ok(None)` when no upstream or detached. Registered + soft-fail PyO3 wrapper. Parity-tested vs `git rev-parse --abbrev-ref @{upstream}` (with a real bare remote) and the no-upstream case.

PROVENANCE: implementation + tests written by the local model qwen2.5-coder:32b, driven
headlessly through `newt worker` (newt-agent's ACP worker) by the pilot, which
applied the module registration + PyO3 wrapper wiring and any clippy fixups.

Co-Authored-By: qwen2.5-coder:32b <model@newt.local>
Model: qwen2.5-coder:32b
Piloted-by: newt-agent
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@hartsock hartsock merged commit f7bbe10 into main May 31, 2026
1 check passed
@hartsock hartsock deleted the pilot/r4-tracking-branch branch May 31, 2026 15:55
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