All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael J Gruber <git@drmicha.warpmail.net>
To: Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: branch versioning
Date: Mon, 04 Oct 2010 15:44:24 +0200	[thread overview]
Message-ID: <4CA9DA38.3070103@drmicha.warpmail.net> (raw)
In-Reply-To: <AANLkTimWxPPi_hHuato+hHePaEja=66GzLEpDUVcZV0i@mail.gmail.com>

Nguyen Thai Ngoc Duy venit, vidit, dixit 04.10.2010 15:18:
> Hi,
> 
> How do you guys manage versions of a topic branch? I usually end up
> saving format-patch series somewhere or forget all old versions.
> Although I really want to keep old versions around. reflog to me   is
> polluted with every kind of branch updates. And it's local
> information. It can't be transferred to another repo (or can it?)
> 
> On the same subject, I have quite a few old topic branches that I
> rarely touch. I don't want to remove them. I just want to hide them
> away from "git branch". I've been thinking of "attic/" namespace that
> "git branch" by default will not show. Just wondering if other people
> face the same problem..

Same problem, without a perfect solution. I have a branch mjg/foo for a
topic in flight. If I need to submit v2, I tag the old tip mjg/foo-v1
and rebase -i, etc. Once a patch gets accepted, I do:

- Merge the git.git commit with the applied patch to mjg/foo (with a
message like "Applied as commit deadbeef on next). The merge diff shows
the differences between my patch and the actual commit on git.git.
- Tag the tip as mjg/applied/foo.
- Delete the branch.
- Delete the branch on my repos if it has been pushed out already (this
point sucks).

That way my branch namespace is reasonably clean, and the graph view on
github, e.g., is somewhat meaningful. My tag name space is a bit crowded...

I also keep the commit notes (post ---) in a note ;)

Michael

  parent reply	other threads:[~2010-10-04 13:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-04 13:18 branch versioning Nguyen Thai Ngoc Duy
2010-10-04 13:25 ` Matthieu Moy
2010-10-04 13:29 ` Ævar Arnfjörð Bjarmason
2010-10-04 13:50   ` Nguyen Thai Ngoc Duy
2010-10-04 14:16     ` Ævar Arnfjörð Bjarmason
2010-10-04 13:44 ` Michael J Gruber [this message]
2010-10-04 14:10   ` Nguyen Thai Ngoc Duy
2010-10-04 14:33 ` Tomas Carnecky

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=4CA9DA38.3070103@drmicha.warpmail.net \
    --to=git@drmicha.warpmail.net \
    --cc=git@vger.kernel.org \
    --cc=pclouds@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.