git

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package git

Copyright © 2023 zcubbs https://github.com/zcubbs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(url string, path string) error

Clone clones a git repository to a given path

func CloneWithCredentials

func CloneWithCredentials(url string, path string, username string, password string) error

func FileHasChanges

func FileHasChanges(repoPath, file, lastCommit, currentCommit string) (bool, error)

func GetLatestCommit

func GetLatestCommit(gitRepoPath string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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