Skip to content

Commit

Permalink
git: patch-id
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Oct 29, 2023
1 parent 99bf861 commit c3b2a41
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 19 deletions.
22 changes: 22 additions & 0 deletions completers/git_completer/cmd/patchId.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package cmd

import (
"github.com/rsteube/carapace"
"github.com/spf13/cobra"
)

var patchIdCmd = &cobra.Command{
Use: "patchId",
Short: "Compute unique ID for a patch",
Run: func(cmd *cobra.Command, args []string) {},
GroupID: groups[group_low_level_helper].ID,
}

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

patchIdCmd.Flags().Bool("stable", false, "use the stable patch-id algorithm")
patchIdCmd.Flags().Bool("unstable", false, "use the unstable patch-id algorithm")
patchIdCmd.Flags().Bool("verbatim", false, "don't strip whitespace from the patch")
rootCmd.AddCommand(patchIdCmd)
}
19 changes: 0 additions & 19 deletions completers/git_completer/cmd/patch_id_generated.go

This file was deleted.

0 comments on commit c3b2a41

Please sign in to comment.