worktree

package
Version: v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2020 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Overview

Package worktree git-worktree - Manage multiple working trees.

SYNOPSIS

Reference: https://git-scm.com/docs/git-worktree

git worktree add [-f] [--detach] [--checkout] [--lock] [-b <new-branch>] <path> [<branch>]
git worktree list [--porcelain]
git worktree lock [--reason <string>] <worktree>
git worktree prune [-n] [-v] [--expire <expire>]
git worktree unlock <worktree>

DESCRIPTION

Manage multiple working trees attached to the same repository.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(path, branch string) func(*types.Cmd)

Add git worktree add [-f] [--detach] [--checkout] [--lock] [-b <new-branch>] <path> [<branch>]

func Branch

func Branch(branch string) func(*types.Cmd)

Branch [-b]

func BranchOverride

func BranchOverride(branch string) func(*types.Cmd)

BranchOverride [-B]

func Checkout

func Checkout(g *types.Cmd)

Checkout [--checkout]

func Detach

func Detach(g *types.Cmd)

Detach [--detach]

func DryRun

func DryRun(g *types.Cmd)

DryRun [-n | --dry-run]

func Expire

func Expire(time string) func(*types.Cmd)

Expire [--expire <time>]

func Force

func Force(g *types.Cmd)

Force [-f | --forcce]

func List

func List(g *types.Cmd)

List git worktree list [--porcelain]

func Lock

func Lock(worktree string) func(*types.Cmd)

Lock git worktree lock [--reason <string>] <worktree>

func LockOption

func LockOption(g *types.Cmd)

LockOption [--lock]

func NoCheckout

func NoCheckout(g *types.Cmd)

NoCheckout [--no-checkout]

func Porcelain

func Porcelain(g *types.Cmd)

Porcelain [--porcelain]

func Prune

func Prune(g *types.Cmd)

Prune git worktree prune [-n] [-v] [--expire <expire>]

func Reason

func Reason(value string) func(*types.Cmd)

Reason [--reason <string>]

func UnLock

func UnLock(worktree string) func(*types.Cmd)

UnLock git worktree unlock <worktree>

func Verbose

func Verbose(g *types.Cmd)

Verbose [-v | --verbose]

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL