git

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package git utilizes the git CLI to retrieve and set information from the current repository

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrRemoteNotFound signalizes there was no remote found
	ErrRemoteNotFound = fmt.Errorf("no push remote found")
)

Functions

func GetPushRemote

func GetPushRemote() (remote string, err error)

GetPushRemote gets the remote configured as push-remote and returns ErrRemoteNotFound in case none is found

func SetLocalConfig

func SetLocalConfig(param, value string) (err error)

SetLocalConfig applies the param with its value on the local git repo

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳