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

Re: A couple branch questions

From
David Symonds <dsymonds@gmail.com>
Date
Feb 14, 2008, 03:03 UTC
Message-ID
<ee77f5c20802131903i45b1629fpcb4a5c6e4f483052@mail.gmail.com>
In-Reply-To
<18355.42595.377377.433309@lisa.zopyra.com>
On Feb 13, 2008 6:24 PM, Bill Lear <rael@zopyra.com> wrote:
Show 13 quoted lines
>
> On Wednesday, February 13, 2008 at 17:45:16 (-0800) David Symonds writes:
> >On Feb 13, 2008 5:39 PM, Jay Soffian <jaysoffian@gmail.com> wrote:
> >> 1) git-branch -d <branchname> complains if <branchname> hasn't been
> >> merged to HEAD. Shouldn't it really only complain if <branchname>
> >> hasn't been merged into any local branch? i.e., as long as
> >> <branchname> has been merged, why care to which branch?
> >
> >It's easy to mistype branch names, and you typically only delete them
> >after you merge them into your current branch. If you're really sure,
> >just pass -D instead of -d.
>
> How does that answer the question posed?

If I have four branches, a, b1, b2 and c, and I've merged b2 into c (but planning to keep developing on b2), and just merged b1 into a (which I have checked out), then I probably only want to delete b1, not b2. The "current" branch is a useful notion because it significantly simplifies merging/rebasing operations.

Dave.
Previous: Bill LearNext: Junio C Hamano
Message 4 of 15 in “A couple branch questions”
  1. Jay SoffianFeb 14, 2008
  2. David SymondsFeb 14, 2008
  3. Bill LearFeb 14, 2008
  4. David SymondsFeb 14, 2008
  5. Junio C HamanoFeb 14, 2008
  6. Keeping reflogs on branch deletionBrian Downing, Feb 14, 2008
  7. Nicolas PitreFeb 14, 2008
  8. Johannes SchindelinFeb 14, 2008
  9. Jeff KingFeb 14, 2008
  10. Nicolas PitreFeb 14, 2008
  11. Jeff KingFeb 14, 2008
  12. Nicolas PitreFeb 14, 2008
  13. Jeff KingFeb 14, 2008
  14. Wincent ColaiutaFeb 14, 2008
  15. Jakub NarebskiFeb 14, 2008

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.