commands: teach --no-rewrite flag to 'migrate-import'
This commit is contained in:
parent
8bb4c6f912
commit
9820f20d91
@ -36,6 +36,10 @@ var (
|
||||
// objectMapFile is the path to the map of old sha1 to new sha1
|
||||
// commits
|
||||
objectMapFilePath string
|
||||
|
||||
// migrateNoRewrite is the flag indicating whether or not the
|
||||
// command should rewrite git history
|
||||
migrateNoRewrite bool
|
||||
)
|
||||
|
||||
// migrate takes the given command and arguments, *odb.ObjectDatabase, as well
|
||||
@ -287,6 +291,7 @@ func init() {
|
||||
importCmd := NewCommand("import", migrateImportCommand)
|
||||
importCmd.Flags().BoolVar(&migrateVerbose, "verbose", false, "Verbose logging")
|
||||
importCmd.Flags().StringVar(&objectMapFilePath, "object-map", "", "Object map file")
|
||||
importCmd.Flags().BoolVar(&migrateNoRewrite, "no-rewrite", false, "Add new history without rewriting previous")
|
||||
|
||||
RegisterCommand("migrate", nil, func(cmd *cobra.Command) {
|
||||
cmd.PersistentFlags().StringVarP(&includeArg, "include", "I", "", "Include a list of paths")
|
||||
|
Loading…
Reference in New Issue
Block a user