sqitch-tag(3pm) | User Contributed Perl Documentation | sqitch-tag(3pm) |
sqitch-tag - Create or list tag objects
sqitch tag [options] sqitch tag <name> sqitch tag <name> change --note <note> sqitch tag --tag <name> --change <change> sqitch tag <name> --all
Tags a change or outputs a list of existing tags in one or more project plans. Tagging is useful for preparing for a release. Tags are also required in order to rework a change.
To specify a change, use a change specification as documented in sqitchchanges. If called with a tag name but no change, the most recent change in each plan will be tagged. If called with no name specified, a list of the current tags will be output.
Note that the name of the new tag must adhere to the rules as defined in sqitchchanges.
By default, the "tag" command will add a new tag to the project's default plan, as defined by the core configuration and command-line options. Pass the "--all" option to have it iterate over all known targets and list tags or add a tag to all the plans. This works well to keep tags in sync in all plan files.
To specify which plans to tag, pass the target, engine, or plan file names to tag as arguments. Use "--tag" and "--change" to disambiguate the tag and change names from the other parameters if necessary (or preferable). See "Examples" for examples.
For you Git folks out there, "-m" also works.
Get a list of tags in the default project plan:
sqitch tag
Get a list of all tags in the project:
sqitch tag --all
Get a list of the tags in the plan used by the "pg" engine:
sqitch tag pg
Get a list of the tags in two specific plans:
sqitch tag sqlite.plan pg.plan
Tag the latest change in the default project plan and be prompted for a note.
sqitch tag alpha1
Tag the latest change in all project plans and be prompted for a note.
sqitch tag alpha1 --all
Tag the latest change in the default project plan and and specify the note.
sqitch tag alpha2 -n 'Tag @alpha2.'
Tag change "users" in the default plan:
sqitch tag --tag alpha3 --change users
Tag the latest change change in the project plan used by the "vertica" engine:
sqitch tag --tag beta1 vertica -n 'Tag the Vertica with @beta1.'
Tag the latest change in two plans in a project:
sqitch tag -t v1.0.1 sqlite.plan pg.plan -n 'Tag @v1.0.1.'
None currently.
Part of the sqitch suite.
2022-10-15 | perl v5.34.0 |