gitconfig

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(key string, value string) error

Add git config --global --replace-all <key> <value>

func AddAlias

func AddAlias(alias, author string) error

AddAlias add a co-author for "team.alias.<alias>"

func Get

func Get(key string) (string, error)

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

func GetAll

func GetAll(key string) ([]string, error)

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

func GetRegexp

func GetRegexp(pattern string) (map[string]string, error)

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

func RemoveAlias

func RemoveAlias(alias string) error

RemoveAlias remove "team.alias.<alias>"

func ReplaceAll

func ReplaceAll(key string, value string) error

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

func ResolveAlias

func ResolveAlias(alias string) (string, error)

ResolveAlias lookup "team.alias.<alias>" globally

func ResolveAliases

func ResolveAliases(aliases []string) ([]string, []error)

ResolveAliases convenience function to resolve multiple aliases and accumulate errors

func SetCommitTemplate

func SetCommitTemplate(path string) error

SetCommitTemplate set your global "commit.template" globally

func UnsetAll

func UnsetAll(key string) error

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

func UnsetCommitTemplate

func UnsetCommitTemplate() error

UnsetCommitTemplate unset your global "commit.template"

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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