Skip to main content

Scenario: push-ahead

Only the monorepo changed since the clone.

  • Monorepo (vendor/a/): cloned at seed, then a local commit.
  • Upstream: seed, unchanged.

Output​

setup.bash builds this state:

$ build_scenario scenario_push_ahead
$ git splice status
On branch main

ahead 1 vendor/a

log shows the commit a push would publish, and who wrote it:

$ git splice log
=== vendor/a (main)
< e859a6b local change (Test <test@example.com>)

push sends it. Nothing is written to the monorepo:

$ git splice push vendor/a
ok vendor/a: pushed e859a6b to main
$ git splice status
On branch main

up to date vendor/a