Re: How can I automatically create a GIT branch that represents a sequence of tags?
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Aug 11, 2013, 10:16 UTC
- Message-ID
- <CAMP44s1_rUVt9a6GbKFc7b0OjNtq4cZzSqC+i_s1k0x+Zs08UQ@mail.gmail.com>
- In-Reply-To
- <CAFw3YtRLgUGGn9JV5K3P9XtMBcBeO7=VSM7PekSxtW6xCsfZ1Q@mail.gmail.com>
On Sat, Aug 10, 2013 at 5:29 PM, Kristian Freed <kristian.freed@gmail.com> wrote:
Show 8 quoted lines
> In our current setup, we have automatic tagging in git of all > successful release builds. This makes it easy to go back to stable > points in history and compare functionality, check when bugs were > introduced etc. > > To help with this process further, it would be useful to be able to > use git bisect, but as these are just a sequence of tags, not commits > on a branch, git bisect will not work as is.
Why don't you just do 'git bisect skip' if the commit doesn't have a tag?
> Is there any tooling for automatically recreating a branch from a > sequence of tags, where each generated commit is the calculated delta > between each two neighbouring tags?
That would probably involve listing the wanted tags:
% git log --topo-order --simplify-by-decoration --decorate --oneline
And then generating the commits:
% git cat-file -p v1.8.3 > commit # modify commit's parent % git hash-object -w < commit
-- Felipe Contreras