blob: 8fdffac8ee1f4054c5556111eb0d01551735c600 (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Command show-object provides a small command line utility to show the details of a specified Git object.
package main
import (
"flag"
"log"
)
func main() {
repoPath := flag.String("r", "", "path to git dir (.git or bare repo root)")
name := flag.String("h", "", "reference name or object id")
flag.Parse()
if *repoPath == "" || *name == "" {
log.Fatal("must provide -r <repo> and -h <ref-or-object-id>")
}
err := run(repoPath, name)
if err != nil {
log.Fatalf("run: %v", err)
}
}
|