8 Commits

Author SHA1 Message Date
Sameen Karim d1acbf0092 remote stack checkout 2026-04-09 21:47:55 -04:00
Sameen Karim c56277b68b unstack cmd 2026-04-08 12:44:11 -04:00
Sameen Karim cb7f9fa895 update pr base if not already part of a stack 2026-04-03 11:33:14 -04:00
Sameen Karim 4604b798c0 rm unstack 2026-04-03 04:15:41 -04:00
Sameen Karim 891f51f943 add to stack api 2026-04-03 01:54:02 -04:00
Sameen Karim d4adefe238 create stack api 2026-04-03 01:53:29 -04:00
Sameen Karim 6e9927d124 rm update pr base logic, should all happen on server 2026-03-23 04:46:55 -04:00
Sameen Karim c2ddf60fb1 Add testable interfaces for git and github packages
Introduce Ops interface and MockOps for git operations, and ClientOps
interface with MockClient for GitHub API operations. This enables
command-level tests to inject mocks without changing production code.

- git.Ops interface wraps all 34 public git functions
- Package-level functions now delegate through a swappable ops variable
- SetOps()/CurrentOps() allow tests to inject MockOps
- github.ClientOps interface covers all Client methods
- MockClient provides configurable function-field test doubles
- All defaults return zero values; no-op for error returns

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-12 14:02:10 -04:00