Skip to content

How to cut tagged releases from the default repo branch #42

Answered by webknjaz
FelixBenning asked this question in Q&A
Discussion options

You must be logged in to vote

The problem statement

I take it you want to ensure that the tags causing your dist to be published "belong" to the main branch in your repository. This does sound straightforward high-level but the actual implementation may be rather complicated. And here's why.

How stuff works

First of all, there are multiple technical sides to this puzzle. Let's explore each one of them.

Git

In Git, tags are roughly pointers to commits. Branches are also labels on commits. There is absolutely no direct relationship between these two except that they both can be resolved to commit hashes.

So just by knowing a tag name and a branch name, there's zero chance to figure out if that tag "belongs" to a given b…

Replies: 5 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@webknjaz
Comment options

@FelixBenning
Comment options

@pradyunsg
Comment options

@FelixBenning
Comment options

Comment options

You must be logged in to vote
5 replies
@FelixBenning
Comment options

@webknjaz
Comment options

@webknjaz
Comment options

@FelixBenning
Comment options

@webknjaz
Comment options

Comment options

You must be logged in to vote
2 replies
@FelixBenning
Comment options

@webknjaz
Comment options

Answer selected by webknjaz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #42 on September 27, 2020 14:56.