aboutsummaryrefslogtreecommitdiff
path: root/cmd/index-pack/main.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-30 15:21:41 +0000
committerGravatar Runxi Yu2026-03-30 15:21:41 +0000
commitaed6b338aedd155d84c3600f8490f77a28681234 (patch)
tree4d7a52e9d10a41cbaa5a3d0dbd64110e09192de4 /cmd/index-pack/main.go
parentobject/store/packed: Rename Base to ThinBase (diff)
signatureNo signature
cmd/index-pack: Remove
Diffstat (limited to 'cmd/index-pack/main.go')
-rw-r--r--cmd/index-pack/main.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/cmd/index-pack/main.go b/cmd/index-pack/main.go
deleted file mode 100644
index 2034f83d..00000000
--- a/cmd/index-pack/main.go
+++ /dev/null
@@ -1,26 +0,0 @@
-// Command index-pack ingests one pack stream from stdin and writes .pack/.idx/.rev.
-package main
-
-import (
- "flag"
- "log"
-)
-
-func main() {
- repoPath := flag.String("r", "", "path to git dir (.git or bare repo root)")
- destinationPath := flag.String("destination", "", "path to destination objects/pack directory")
- objectFormat := flag.String("object-format", "", "object format (sha1 or sha256)")
- fixThin := flag.Bool("fix-thin", false, "fix thin packs using repository object store")
- writeRev := flag.Bool("rev-index", true, "write reverse index (.rev)")
-
- flag.Parse()
-
- if *destinationPath == "" {
- log.Fatal("must provide -destination <objects/pack>")
- }
-
- err := run(*repoPath, *destinationPath, *objectFormat, *fixThin, *writeRev)
- if err != nil {
- log.Fatalf("run: %v", err)
- }
-}