gitconfig

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(scope scope.Scope, key string, value string) error

Add git config --<scope> --add <key> <value>

func Get

func Get(scope scope.Scope, key string) (string, error)

Get git config --<scope> --get <key>

func GetAll

func GetAll(scope scope.Scope, key string) ([]string, error)

GetAll git config --<scope> --get-all <key>

func GetRegexp

func GetRegexp(scope scope.Scope, pattern string) (map[string]string, error)

GetRegexp git config --<scope> --gex-regexp <pattern>

func List

func List(scope scope.Scope) (map[string]string, error)

List git config --<scope> --list

func ReplaceAll

func ReplaceAll(scope scope.Scope, key string, value string) error

ReplaceAll git config --<scope> --replace-all <key> <value>

func UnsetAll

func UnsetAll(scope scope.Scope, key string) error

UnsetAll git config --<scope> --unset-all <key>

Types

This section is empty.

Jump to

Keyboard shortcuts

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