meowgorithm / gitcha

Go helpers to work with git repositories

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gitcha

Latest Release Build Status Coverage Status Go ReportCard GoDoc

Go helpers to work with git repositories

Examples

import "github.com/muesli/gitcha"

// returns the directory of the git repository path is a member of:
repo, err := gitcha.GitRepoForPath(path)

// finds files from list in path. It respects all .gitignores it finds while
// traversing paths:
ch, err := gitcha.FindFiles(path, []string{"*.md"})

for v := range ch {
    fmt.Println(v.Path)
}

// just for convenience:
ok := gitcha.IsPathInGit(path)

About

Go helpers to work with git repositories

License:MIT License


Languages

Language:Go 100.0%