Skip to content

[git] freeze to tag if possible #2

@gracinet

Description

@gracinet

Commits aren't persistent in Git, and that has been a major topic in the recent refactor of the Git support for the recipe.

For better efficiency, the freeze option should stop using shas in its output. Instead, it should introspect HEAD for tags it could have and use what it's found. Ideally it should not even accept to freeze if no tag is available, but that would be too disruptive for users' current workflows (odoo produces almost no tags)
It could also produce a tag of its own, but that would be useful only for those that manage their own forks. One can imagine lots of options to control that behaviour (tag only if needed, always tag, tag naming policy etc.)

The open question would be which tag to use if the HEAD has several of them. Maybe we can add an option to control that (with a regexp, a prefix) ?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions