gitx

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 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 gitx starts the git commands Djinn runs, each with a deadline: a git that talks to a remote (over ssh, a stalled connection or a prompt nobody sees) or waits on a lock never holds Djinn for good (W504).

Index

Constants

This section is empty.

Variables

View Source
var (
	// Local is the longest a git command that stays in the repository may run: a merge or a checkout of a large one.
	Local = 10 * time.Minute
	// Network is the longest a git command that reaches a remote may run: fetch, push, ls-remote.
	Network = 5 * time.Minute
	// WaitDelay is how long a git killed at its deadline may keep its output open: an ssh it started may hold it.
	WaitDelay = 5 * time.Second
)

Functions

func Command

func Command(ctx context.Context, dir string, args ...string) (cmd *exec.Cmd, cancel context.CancelFunc)

Command is git with args, run in dir, never prompting for credentials, killed at the earlier of ctx's deadline and its own: Network for a command that reaches a remote, Local otherwise. Call cancel once it has run: it logs it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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