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

Re: [PATCH] Teach git-branch howto rename a branch

From
Jakub Narebski <jnareb@gmail.com>
Date
Nov 28, 2006, 08:07 UTC
Message-ID
<ekgqku$tqt$1@sea.gmane.org>
In-Reply-To
<1164679287192-git-send-email-hjemli@gmail.com>
Lars Hjemli wrote:
Show 7 quoted lines
> This adds a '--rename' option to git branch. If specified, branch
> creation becomes branch renaming.
> 
> With a single branchname, the current branch is renamed and .git/HEAD is
> updated.
> 
> With two branchnames, the second name is renamed to the first.
Could you please document this new feature?

And wouldn't it be better to use <source> <target>, aka <branch> <newname> like in git-mv and other rename/move commands? "Second name is renamed to the first" although fits with "<branchname> [<start-point>]" is not natural for rename.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Lars HjemliNext: Junio C Hamano
Message 2 of 4 in “Teach git-branch howto rename a branch”
  1. Teach git-branch howto rename a branchLars Hjemli, Nov 28, 2006
  2. Jakub NarebskiNov 28, 2006
  3. Junio C HamanoNov 28, 2006
  4. Lars HjemliNov 28, 2006

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.