remote

package
v1.0.0-beta.8 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOriginURL

func GetOriginURL(destdir string) (out []byte, err error)

GetOriginURL returns input directory git config --get remote.origin.url.

func ParsePlatform

func ParsePlatform(host string) (string, bool)

ParsePlatform returns the platform name associated to input host.

func ParseRemote

func ParseRemote(rawRemote string) (host, path string)

ParseRemote returns the current repository host and path to repository on the given host's platform.

Types

This section is empty.

Jump to

Keyboard shortcuts

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