gitconfig

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAlias

func AddAlias(alias, author string) error

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

func GetAssignments

func GetAssignments() map[string]string

GetAssignments get all alias -> co-author mappings

func RemoveAlias

func RemoveAlias(alias string) error

RemoveAlias remove "team.alias.<alias>"

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 SetHooksPath

func SetHooksPath(path string) error

SetHooksPath set your global "core.hooksPath"

func UnsetCommitTemplate

func UnsetCommitTemplate() error

UnsetCommitTemplate unset your global "commit.template"

func UnsetHooksPath

func UnsetHooksPath() error

UnsetHooksPath unset your global "core.hooksPath"

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