Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are use cases for git namespaces?

Tags:

git

namespaces

I recently learned about git namespaces and currently trying to grok it. In what situations namespaces can be useful in git?

like image 410
Max Yankov Avatar asked May 14 '15 13:05

Max Yankov


People also ask

What is a git namespace?

In GitLab, a namespace provides one place to organize your related projects. Projects in one namespace are separate from projects in other namespaces, which means you can use the same name for projects in different namespaces.

What is repository namespace?

A namespace allows you to effectively manage a collection of repositories, including repository permissions and repository attributes. This topic describes the basic operations on a namespace.


1 Answers

It could be useful for a Git service like GitHub or git.kernel.org where a repository is forked many times. Each fork is almost identical, so if only one object store is used for all forks then the service might enjoy considerable space savings and cache performance improvements.

The service could implement this via a lightweight wrapper around Git that automatically prepends the name of the repository to the GIT_NAMESPACE value.

Other than that, I'm not sure why one would use namespaces.

like image 69
Richard Hansen Avatar answered Oct 10 '22 02:10

Richard Hansen