-
-
Notifications
You must be signed in to change notification settings - Fork 56
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 #2491 from carapace-sh/git-name-rev
git: name-rev
- Loading branch information
Showing
2 changed files
with
27 additions
and
26 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,27 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/carapace-sh/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var nameRevCmd = &cobra.Command{ | ||
Use: "name-rev", | ||
Short: "Find symbolic names for given revs", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
GroupID: groups[group_low_level_interrogator].ID, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(nameRevCmd).Standalone() | ||
|
||
nameRevCmd.Flags().Bool("all", false, "list all commits reachable from all refs") | ||
nameRevCmd.Flags().Bool("always", false, "show uniquely abbreviated commit object as fallback") | ||
nameRevCmd.Flags().Bool("annotate-stdin", false, "transform stdin by substituting all the 40-character SHA-1 hexes") | ||
nameRevCmd.Flags().String("exclude", "", "do not use any ref whose name matches a given shell pattern") | ||
nameRevCmd.Flags().Bool("name-only", false, "print only the name") | ||
nameRevCmd.Flags().Bool("no-undefined", false, "die with error code != 0 when a reference is undefined") | ||
nameRevCmd.Flags().String("refs", "", "only use refs whose names match a given shell pattern") | ||
nameRevCmd.Flags().Bool("tags", false, "only use tags to name the commits") | ||
rootCmd.AddCommand(nameRevCmd) | ||
} |
This file was deleted.
Oops, something went wrong.