From: Fredrik Gustafsson <iveqy@iveqy.com>
To: Kristian Freed <kristian.freed@gmail.com>
Cc: Fredrik Gustafsson <iveqy@iveqy.com>, git <git@vger.kernel.org>
Subject: Re: How can I automatically create a GIT branch that represents a sequence of tags?
Date: Sun, 11 Aug 2013 14:23:08 +0200 [thread overview]
Message-ID: <20130811122308.GH25779@paksenarrion.iveqy.com> (raw)
In-Reply-To: <CAFw3YtSp4QLXHkycRmmQNYkvoR=2_qC9YYV1mFV3PiwfWHspzQ@mail.gmail.com>
On Sun, Aug 11, 2013 at 12:13:18PM +0100, Kristian Freed wrote:
> On Sun, Aug 11, 2013 at 12:20 AM, Fredrik Gustafsson <iveqy@iveqy.com> wrote:
> > I don't understand, why is it better to find between which tags a error
> > was found and not in what commit. It's much easier to find a bug
> > introduced in a commit than in a tag/release. It sounds like you're
> > doing the bug hunting harder. Could you explain this further?
>
> For better or worse, the current state includes a lot of noisy "fixing
> tests" type commits which I
> would like to automatically skip over when hunting bugs. This is not
> great and is being addressed,
> but I am trying to make the most of the historical data we have today
> - which does contain tags
> for all builds that passed automated testing etc but does not have
> only good commits on the related
> branch.
Thank you, that make sense (even if it's really sad to have such
history).
>
> > My suggestion if you want to do this, is to have your buildtool to
> > checkout a special branch (let's call it tag_branch) do a git reset
> > to get the worktree from the newly tagged commit and commit on that
> > branch once for each tag it's creating, when it creates the tag.
>
> I can see how this would work, but only for future builds. I would
> need something like it but loop
> over all existing tags as this is a problem with historical data.
> Could you please be more specific
> as to the steps required to automatically form a commit that
> represents the change between
> two commits (i.e. tags)?
>
Create an orphan branch:
git checkout --orphan tag_branch
Now for every tag, t:
git checkout t
git reset --soft tag_branch
git add .
git commit -m "t"
--
Med vänliga hälsningar
Fredrik Gustafsson
tel: 0733-608274
e-post: iveqy@iveqy.com
next prev parent reply other threads:[~2013-08-11 12:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-10 22:29 How can I automatically create a GIT branch that represents a sequence of tags? Kristian Freed
2013-08-10 23:20 ` Fredrik Gustafsson
2013-08-11 5:16 ` Michael Haggerty
2013-08-11 6:20 ` Fredrik Gustafsson
2013-08-11 7:49 ` Philip Oakley
2013-08-11 11:13 ` Kristian Freed
2013-08-11 12:23 ` Fredrik Gustafsson [this message]
2013-08-11 9:36 ` Andreas Schwab
2013-08-11 10:16 ` Felipe Contreras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130811122308.GH25779@paksenarrion.iveqy.com \
--to=iveqy@iveqy.com \
--cc=git@vger.kernel.org \
--cc=kristian.freed@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).