-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2501 from carapace-sh/git-unpack-objects
git: unpack-objects
- Loading branch information
Showing
2 changed files
with
24 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
This file was deleted.
Oops, something went wrong.