mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
17 lines
319 B
Go
17 lines
319 B
Go
package git
|
|
|
|
import ()
|
|
|
|
func Fetch() map[string][]string {
|
|
client := NewClient()
|
|
|
|
result := make(map[string][]string)
|
|
|
|
result["repo"] = []string{client.Repository}
|
|
result["branch"] = []string{client.CurrentBranch()}
|
|
result["changes"] = client.ChangedFiles()
|
|
result["commits"] = client.Commits()
|
|
|
|
return result
|
|
}
|