Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
 - Variables
 - func Add(key string, value string) error
 - func AddCoAuthors(aa ...authors.Author) error
 - func AddGlobal(key string, value string) error
 - func Get(key string) string
 - func GetAll(key string) ([]string, error)
 - func GetCoAuthors() ([]authors.Author, error)
 - func GetUser() (*authors.Author, error)
 - func Has(key string) bool
 - func HasGlobal(key string) bool
 - func ReadAllCoAuthorsFromFile() (map[string]authors.Author, error)
 - func Remove(key string) error
 - func RemoveAll(key string) error
 - func RemoveAllGlobal(key string) error
 - func RemoveGlobal(key string) error
 - func RemoveSection(key string) error
 - func RemoveSectionGlobal(key string) error
 - func Set(key string, value string) error
 - func SetCoAuthors() error
 - func SetGlobal(key string, value string) error
 - func ShortLogAuthorSummary() (map[string]authors.Author, error)
 
Constants ¶
      View Source
      
  
const (
)
    Variables ¶
      View Source
      
  
var (
	GlobalConfigFilePath string
)
    Functions ¶
func AddCoAuthors ¶
func AddGlobal ¶
AddGlobal adds a new line to the global option without altering any existing values.
func GetCoAuthors ¶
GetCoAuthors gets the current list of co-authors from git config
func RemoveAllGlobal ¶
RemoveAllGlobal removes all the given keys from the configuration.
func RemoveGlobal ¶
RemoveGlobal removes the given key from the configuration.
func RemoveSection ¶
RemoveSection removes the given section from the configuration.
func RemoveSectionGlobal ¶
RemoveSectionGlobal removes the given section from the global configuration.
func SetCoAuthors ¶
func SetCoAuthors() error
Types ¶
This section is empty.
 Click to show internal directories. 
   Click to hide internal directories.