gitutils

package
v0.0.0-...-7da44d4 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PostCheckoutHook string

Functions

func GetCurrentGitBranch

func GetCurrentGitBranch() (string, error)

Get current git branch name

func GetGitDir

func GetGitDir(dir string) string

func GetGitHooksDir

func GetGitHooksDir() (string, error)

func GitCheckout

func GitCheckout(branchName string) error

func InstallGitHook

func InstallGitHook(gitDir string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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