Documentation ¶
Index ¶
- func NS2URL(ns string) (string, bool)
- func NormalizeURL(url string) (string, bool)
- func URL2NS(url string) (string, bool)
- type Cache
- func (cache *Cache) Clone(stderr io.Writer, url, dir string, flags ...string) error
- func (cache *Cache) Fetch(stderr io.Writer, url string) error
- func (cache *Cache) Maintenance(stderr io.Writer, flags ...string) error
- func (cache *Cache) RevParse(stderr io.Writer, url string, revs ...string) (ret []string, err error)
- func (cache *Cache) WithFastClone(stderr io.Writer, url string, fn func(dir string) error) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeURL ¶
NormalizeURL parses a URL in accordance with the "GIT URLS" section of git-fetch(1), and normalizes it.
Types ¶
Click to show internal directories.
Click to hide internal directories.