-
-
Notifications
You must be signed in to change notification settings - Fork 55
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 #1932 from rsteube/git-checkrefformat
git: check-ref-format
- 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/rsteube/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var checkRefFormatCmd = &cobra.Command{ | ||
Use: "check-ref-format", | ||
Short: "Ensures that a reference name is well formed", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
GroupID: groups[group_low_level_helper].ID, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(checkRefFormatCmd).Standalone() | ||
|
||
checkRefFormatCmd.Flags().Bool("allow-onelevel", false, "Controls whether one-level refnames are accepted") | ||
checkRefFormatCmd.Flags().Bool("branch", false, "Check for valid branch name") | ||
checkRefFormatCmd.Flags().Bool("no-allow-onelevel", false, "Controls whether one-level refnames are accepted") | ||
checkRefFormatCmd.Flags().Bool("normalize", false, "Normalize refname by removing any leading slash characters") | ||
checkRefFormatCmd.Flags().Bool("refspec-pattern", false, "Interpret <refname> as a reference name pattern for a refspec") | ||
rootCmd.AddCommand(checkRefFormatCmd) | ||
} |
19 changes: 0 additions & 19 deletions
19
completers/git_completer/cmd/check_ref_format_generated.go
This file was deleted.
Oops, something went wrong.