git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: branch versioning

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Oct 4, 2010, 13:44 UTC
Message-ID
<4CA9DA38.3070103@drmicha.warpmail.net>
In-Reply-To
<AANLkTimWxPPi_hHuato+hHePaEja=66GzLEpDUVcZV0i@mail.gmail.com>
Nguyen Thai Ngoc Duy venit, vidit, dixit 04.10.2010 15:18:
Show 13 quoted lines
> 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
Previous: Ævar Arnfjörð BjarmasonNext: Nguyen Thai Ngoc Duy
Message 6 of 8 in “branch versioning”
  1. Nguyen Thai Ngoc DuyOct 4, 2010
  2. Matthieu MoyOct 4, 2010
  3. Ævar Arnfjörð BjarmasonOct 4, 2010
  4. Nguyen Thai Ngoc DuyOct 4, 2010
  5. Ævar Arnfjörð BjarmasonOct 4, 2010
  6. Michael J GruberOct 4, 2010
  7. Nguyen Thai Ngoc DuyOct 4, 2010
  8. Tomas CarneckyOct 4, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.