gitMobCommands

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package gitMobCommands contains methods ported from git-mob/src/git-mob-commands.js

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCoAuthor

func AddCoAuthor(a authors.Author) error

func AddCoAuthors

func AddCoAuthors(aa ...authors.Author) error

func GetCoAuthors

func GetCoAuthors() ([]authors.Author, error)

GetCoAuthors gets the current list of co-authors from git config

func GetGitAuthor

func GetGitAuthor() (*authors.Author, error)

GetGitAuthor builds an authors.Author from the current configured user; returns an error if git config is missing user.name or user.email

func IsCoAuthorsSet

func IsCoAuthorsSet() bool

func ResetMob

func ResetMob() error

ResetMob clears out the co-authors from global git config

func SetGitAuthor

func SetGitAuthor(a *authors.Author) error

SetGitAuthor sets the primary git author locally from the given authors.Author

func SetGitAuthorGlobal added in v0.7.0

func SetGitAuthorGlobal(a *authors.Author) error

SetGitAuthorGlobal sets the primary git author globally from the given authors.Author

func UseLocalTemplate

func UseLocalTemplate() bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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