Search code examples
linuxgitversion-controlgitosis

What is the easiest (and neatest) way to manage lots of repositories using gitosis?


I am using gitosis to manage a bunch of private repositories. Everything works great and I have no issues with how we add repositories as such. The problem is that we have relatively few developers but lots of repositories, particularly since one of our projects uses git submodules quite heavily.

This means that the gitosis.conf is starting to get a bit unwieldy and I was wondering if there is any way to tidy it up. At the moment we use something like:

[group developers]
writable = repo1 repo2 repo3 (...) repo20 repo21 repo22
members = dev1 dev2

And when we want another repo we add it to the end of the writable list. The problem is that already this list is getting hard to read and we don't even have all our projects in yet. I know this is real nit-picking in what is otherwise an excellent setup but I was just wondering if anyone has any handy hints or tips to share on better ways to organise the gitosis.conf

Cheers


Solution

  • You can use multiple lines like this:

    [group developers]
    writable:
     repo1
     repo2
     repo3
     (...)
     repo20
     repo21
     repo22
    
    members:
     dev1
     dev2
    

    To display the history before using one item per line, you can use git log -p --color-words.