Skip to content

Commit

Permalink
Merge pull request #2501 from carapace-sh/git-unpack-objects
Browse files Browse the repository at this point in the history
git: unpack-objects
  • Loading branch information
rsteube authored Aug 17, 2024
2 parents 34fc212 + 724ad41 commit 129e493
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 19 deletions.
24 changes: 24 additions & 0 deletions completers/git_completer/cmd/unpackObjects.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package cmd

import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)

var unpackObjectsCmd = &cobra.Command{
Use: "unpack-objects",
Short: "Unpack objects from a packed archive",
Run: func(cmd *cobra.Command, args []string) {},
GroupID: groups[group_low_level_manipulator].ID,
}

func init() {
carapace.Gen(unpackObjectsCmd).Standalone()

unpackObjectsCmd.Flags().String("max-input-size", "", "die, if the pack is larger than <size>")
unpackObjectsCmd.Flags().BoolS("n", "n", false, "dry run")
unpackObjectsCmd.Flags().BoolS("q", "q", false, "suppress percentage progress")
unpackObjectsCmd.Flags().BoolS("r", "r", false, "try to recover objects when unpacking a corrupt packfile")
unpackObjectsCmd.Flags().Bool("strict", false, "don’t write objects with broken content or links")
rootCmd.AddCommand(unpackObjectsCmd)
}
19 changes: 0 additions & 19 deletions completers/git_completer/cmd/unpack_objects_generated.go

This file was deleted.

0 comments on commit 129e493

Please sign in to comment.