Skip to content

Be able to deploy a git history of a given file #412

Open

Description

@paulRbr

Context

Imagine you want to import the history of changes of a given API definition file to Bump.

The current “solution” is to use a manual script to deploy each revision one by one. Very rough-and-not-working oneliner bash script: git log --pretty=format:%H my/definition/openapi.yml | xargs -I % git show '%:my/definition/openapi.yml.

Solution

We should allow the bump deploy command to deploy a git history of a given file. This would simplify our users' initial import work.

e.g. Deploy the my/definition/openapi.yml file to the my-doc documentation would be as simple as:

bump deploy --git-history --doc my doc my/definition/openapi.yml

We could also allow --from / --to options such as:

bump deploy --git-history --from c900e6 --to main --doc my doc my/definition/openapi.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions