Skip to contentSkip to conversation

benefits of "/" in branch names other than the obvious?

DISCUSSION Robert P. J. Day 2 participants 2 messages Nov 6, 2017

lore
Share & tools
lore
#0 lore raw

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

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#1 lore raw
Quoted 11 lines · Robert P. J. Day

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/[email protected]/