runmerge

package
v0.9.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package runmerge adds a job run's changes, on the run's own branch, to its workspace's main (blitz-enterprise spec_009_jobs JB-10): the runner does it as the run ends, as the job says, and Blitz when someone adds a run's changes later.

Index

Constants

This section is empty.

Variables

View Source
var ErrConflicts = errors.New("its changes and main's change the same lines")

ErrConflicts is a run's changes and main's changing the same lines: they stay on the run's branch.

Functions

func IntoMain

func IntoMain(ctx context.Context, git Git, remote, branch, who string) error

IntoMain merges remote's branch into remote's main and pushes main, in the clone git runs in (which it leaves on main), as who ("Blitz job digest"); again, up to three times, when someone pushes main meanwhile. A push refused for another reason (sign-in, a hook) isn't tried again, and its error says what git said. A branch main has already is no change.

Types

type Git

type Git func(ctx context.Context, args ...string) ([]byte, error)

Git runs git with args in the clone the merge is made in.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL