| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Expose --atomic for multi-ref pushes through the shared Git push infrastructure. Keep push non-atomic by default and preserve sync's existing atomic default with --atomic=false available as an opt-out. Document the command behavior, audit link and submit push paths, and add unit and integration coverage for atomic rejection semantics.
There was a problem hiding this comment.
Adds configurable atomic behavior for multi-branch pushes while preserving existing defaults.
Changes:
| File | Description |
|---|---|
| cmd/push.go | Adds and forwards the push atomic flag. |
| cmd/push_test.go | Tests atomic push behavior. |
| cmd/sync.go | Adds configurable atomic sync pushes. |
| cmd/sync_test.go | Tests defaults, opt-out, and force behavior. |
| cmd/link_test.go | Verifies link remains atomic. |
| internal/git/gitops_test.go | Tests all-or-nothing ref rejection. |
| docs/src/content/docs/reference/cli.md | Documents both flags and defaults. |
Sorry, something went wrong.
There was a problem hiding this comment.
Looks good! Basing that mainly on test coverage 😅
Sorry, something went wrong.
|
This leads to a 404 page. Should it be an issue from this repo instead? |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
closes https://github.com/github/pull-requests/issues/26126
Adds configurable atomic behavior for multi-ref Git pushes.
Adds --atomic to gh stack push, disabled by default.
Exposes --atomicon gh stack sync, preserving its existing enabled-by-default behavior. Allows opting out during sync with --atomic=false.
Passes the option through the shared Git push infrastructure.
Audits link and submit push behavior:
link continues using one atomic multi-ref push.
submit remains sequential and non-atomic because each push is interleaved with PR creation.