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

Re: [PATCH 2/3] Handle branch names with slashes

From
CMCatalin Marinas <catalin.marinas@gmail.com>
Date
May 15, 2006, 10:22 UTC
Message-ID
<b0943d9e0605150322w684785d5n9b17dccda6b29ac1@mail.gmail.com>
In-Reply-To
<20060515095440.GA11412@backpacker.hemma.treskal.com>
Karl,
On 15/05/06, Karl Hasselström <kha@treskal.com> wrote:
> Teach stgit to handle branch names with slashes in them; that is,
> branches living in a subdirectory of .git/refs/heads.

Thanks for the patches. I'll add them, probably tomorrow evening as I'm busy today.

Show 6 quoted lines
> I had to change the patch@branch/top command-line syntax to
> patch@branch#top, in order to get sane parsing. The /top variant is
> still available for repositories that have no slashy branches; it is
> disabled as soon as there exists at least one subdirectory of
> refs/heads. Preferably, this compatibility hack can be killed some
> time in the future.

There is one problem with killing "/" entirely (or maybe we could use other character than "#"). I tend to write quite often "stg diff -r /bottom" to see how the whole patch looks like before refreshing. With "#", the shell ignores "#bottom" as being a comment.

Otherwise, I'm OK with changing "/" with something else or just keeping both (though I prefer to have a singe way of specifying it). It looks like ^ and ~ are already used by GIT. It leaves us with % and !. Do you have any preference? The exclamation mark looks OK to me.

-- 
Catalin
Previous: Karl HasselströmNext: Karl Hasselström
Message 3 of 15 in “Don't die when there are no branches”
  1. 1/3 Don't die when there are no branchesKarl Hasselström, May 15, 2006
  2. 2/3 Handle branch names with slashesKarl Hasselström, May 15, 2006
  3. Catalin MarinasMay 15, 2006
  4. Karl HasselströmMay 15, 2006
  5. 1/2 Handle branch names with slashesKarl Hasselström, May 16, 2006
  6. Junio C HamanoMay 16, 2006
  7. Karl HasselströmMay 16, 2006
  8. Catalin MarinasMay 17, 2006
  9. 1/2 Handle branch names with slashesKarl Hasselström, May 18, 2006
  10. Handle branch names with slashesKarl Hasselström, May 18, 2006
  11. Catalin MarinasMay 18, 2006
  12. Karl HasselströmMay 18, 2006
  13. 2/2 Tests for branch names with slashesKarl Hasselström, May 18, 2006
  14. 2/2 Tests for branch names with slashesKarl Hasselström, May 16, 2006
  15. 3/3 Tests for branch names with slashesKarl Hasselström, May 15, 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.