git

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

* @Author: robert zhang <robertzhangwenjie@gmail.com> * @Date: 2022-08-06 10:02:03 * @LastEditTime: 2022-08-06 10:20:25 * @LastEditors: robert zhang * @Description:

* @Author: robert zhang <robertzhangwenjie@gmail.com> * @Date: 2022-08-06 16:45:09 * @LastEditTime: 2022-08-08 18:35:18 * @LastEditors: robert zhang * @Description:

* @Author: robert zhang <robertzhangwenjie@gmail.com> * @Date: 2022-08-07 18:14:41 * @LastEditTime: 2022-08-29 11:43:34 * @LastEditors: robert zhang * @Description:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommitMessage

func CommitMessage(msg []byte) error

func ExecPath

func ExecPath() (path string, err error)

ExecPath get git exec-path

func GetCurrentRepositoryRoot

func GetCurrentRepositoryRoot() (path string, err error)

GetRepositoryRoot get the git root path to which the dir belongs

func HasStagedFiles

func HasStagedFiles(dir string) bool

HasStagedFiles determine whether has changes to be committed

func InstallSubCmd

func InstallSubCmd(cmdFilePath, subCmdName string) (string, error)

func IsGitRepository

func IsGitRepository(dir string) bool

IsGitRepository determine wheter the path is git repository

Types

This section is empty.

Jump to

Keyboard shortcuts

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