mirror of
https://github.com/git-chglog/git-chglog.git
synced 2026-07-29 05:50:05 +00:00
19 lines
204 B
Go
19 lines
204 B
Go
package gitcmd
|
|
|
|
import (
|
|
"fmt"
|
|
"log"
|
|
)
|
|
|
|
func Example() {
|
|
git := New(nil)
|
|
|
|
out, err := git.Exec("rev-parse", "--git-dir")
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
|
|
fmt.Println(out)
|
|
// Output:
|
|
// .git
|
|
}
|