git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* benefits of "/" in branch names other than the obvious?
@ 2017-11-06  5:36 Robert P. J. Day
  2017-11-06 17:50 ` Stefan Beller
  0 siblings, 1 reply; 2+ messages in thread
From: Robert P. J. Day @ 2017-11-06  5:36 UTC (permalink / raw)
  To: Git Mailing list


  another picky question ... are there any other benefits of
supporting slashes in branch names other than the obvious ones i know
about?

1) visually, let's you *imagine* a branch hierarchy, and
2) allows wildcarding on a full "component" basis

  are there any other benefits of the above? thank you kindly.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: benefits of "/" in branch names other than the obvious?
  2017-11-06  5:36 benefits of "/" in branch names other than the obvious? Robert P. J. Day
@ 2017-11-06 17:50 ` Stefan Beller
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Beller @ 2017-11-06 17:50 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: Git Mailing list

On Sun, Nov 5, 2017 at 9:36 PM, Robert P. J. Day <rpjday@crashcourse.ca> wrote:
>
>   another picky question ... are there any other benefits of
> supporting slashes in branch names other than the obvious ones i know
> about?
>
> 1) visually, let's you *imagine* a branch hierarchy, and
> 2) allows wildcarding on a full "component" basis
>
>   are there any other benefits of the above? thank you kindly.
>
> rday

Currently refs are stored either in .git/packed_refs,
or the refs are taken as a literal filename (refs/heads/master
is found in .git/refs/heads/master).

When stored as literal files on disk there are interesting implications:
* File System speed when there are *lots* of refs
  (a lot of files in one dir vs sharding or a tree like structure)
*  Directory/conflicts in the data model:
    What if you want to have a ref foo/bar as well as foo?
    This is not possible as 'foo' must be either a directory
    or a file. This spawns occasional issues such as
https://public-inbox.org/git/20171024082409.smwsd6pla64jjlua@sigill.intra.peff.net/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-11-06 17:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-06  5:36 benefits of "/" in branch names other than the obvious? Robert P. J. Day
2017-11-06 17:50 ` Stefan Beller

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).