git

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Unlicense Imports: 6 Imported by: 0

Documentation

Overview

Package git implements abstraction to the module git-module. It also provides for worktree commands not implemented in git-module.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(url string, branch string, path string) error

Clone will clone a git repository, checkout a branch, to a path provided.

func GetDefaultBranch

func GetDefaultBranch(url string) (string, error)

GetDefaultBranch will retrieve the default branch from a remote git repository.

func WorktreeAdd

func WorktreeAdd(config *cmn.CfgMk, worktree string, commitish string) ([]byte, error)

WorktreeAdd will add a worktree to the project.

func WorktreeList

func WorktreeList() ([]byte, error)

WorktreeList will list all worktrees in the project.

func WorktreeMove

func WorktreeMove(config *cmn.CfgMv, wtOriginal string, wtNew string) ([]byte, error)

WorktreeMove will move a worktree within the project.

func WorktreeRemove

func WorktreeRemove(config *cmn.CfgRm, worktree string) ([]byte, error)

WorktreeRemove will remove a worktree from the project.

Types

This section is empty.

Jump to

Keyboard shortcuts

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