package cmd import ( "github.com/rsteube/carapace" "github.com/spf13/cobra" ) var merge_baseCmd = &cobra.Command{ Use: "merge-base", Short: "Find as good common ancestors as possible for a merge", Run: func(cmd *cobra.Command, args []string) {}, GroupID: groups[group_low_level_interrogator].ID, } func init() { carapace.Gen(merge_baseCmd).Standalone() merge_baseCmd.Flags().BoolP("all", "a", false, "output all common ancestors") merge_baseCmd.Flags().Bool("fork-point", false, "find where forked from reflog of ") merge_baseCmd.Flags().Bool("independent", false, "list revs not reachable from others") merge_baseCmd.Flags().Bool("is-ancestor", false, "is the first one ancestor of the other?") merge_baseCmd.Flags().Bool("octopus", false, "find ancestors for a single n-way merge") rootCmd.AddCommand(merge_baseCmd) }