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

Re: BUG 1.7.9: git branch fails to create new branch when --edit-description is used

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 27, 2012, 23:21 UTC
Message-ID
<7vr4ykybnl.fsf@alter.siamese.dyndns.org>
In-Reply-To
<2443.1327701165@plover.com>
Mark Jason Dominus <mjd@plover.com> writes:
Show 15 quoted lines
> This should work, but doesn't:
>
>         % git branch
>         * master
>         % git branch  --edit-description  blarf
>         [Edit description and exit editor normally]
>         % cat .git/BRANCH_DESCRIPTION 
>         I like blarf
>         # Please edit the description for the branch
>         #   blarf
>         # Lines starting with '#' will be stripped.
>         % git branch -a
>         * master
>
> Where is branch blarf?
You haven't created one in that sequence yet.
This is more of a documentation bug. 

As the SYNOPSIS section makes it clear, the '--edit-description' is a separate mode from showing (the first group), creating or repointing (the second), or renaming (the third).

After that you should be able to say "git branch blarf" and view its description.

Previous: Mark Jason DominusNext: Michael Haggerty
Message 2 of 9 in “BUG 1.7.9: git branch fails to create new branch when --edit-description is used”
  1. Mark Jason DominusJan 27, 2012
  2. Junio C HamanoJan 27, 2012
  3. Michael HaggertyJan 28, 2012
  4. Junio C HamanoJan 28, 2012
  5. Jeff KingJan 29, 2012
  6. Michael HaggertyJan 29, 2012
  7. Junio C HamanoJan 29, 2012
  8. Michael HaggertyJan 29, 2012
  9. Junio C HamanoJan 29, 2012

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.