gitManip

package
v0.0.0-...-6dd38b0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(path, URL string) error

Clone is cloning a given repository, from a public URL

*
* It needs:
* path:
*		The local path to clone the repository.
*	URL:
*		The remote URL to fetch the repository.

func GetRemoteURL

func GetRemoteURL(path string) string

GetRemoteURL returns the associated remote URL of a given local path repository

*
* It needs:
*	path
*		The local path of a git repository

Types

type GitObject

type GitObject struct {
	// contains filtered or unexported fields
}

GitObject contains informations about the current git repository

*
*The structure is:
*  accessible:
*		Is the repository still exists in the hard drive?
*	path:
*		The path file.
*	repository:
*		The object repository.

func New

func New(path string) *GitObject

New is a constructor for GitObject

*
* It neeeds:
*	path:
*		The path of the current repository.

func (*GitObject) Status

func (g *GitObject) Status()

Status prints the current status of the repository, accessible via the structure path field.

*This method works only if the repository is accessible.

Jump to

Keyboard shortcuts

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