Menu

#6 Use gitmodule config settings

open
nobody
None
5
2012-01-28
2012-01-28
Jehan Bing
No

Can gitslave use gitmodule settings instead of its own?
For instance, .gitslave has the same content as .gitmodules, just in a different format.

This would allow different developers to use submodule or gitslave at their convenience.

Discussion

  • Baka Project

    Baka Project - 2012-03-01

    This is more complicated than it first appears because in fact the two formats are different. At a minimum .gitslave supports flag arguments. However, that isn't to say the idea is bad since if you are not using flags it may be close enough. At a minimum an import tool could be used, and the current format probably has some quoting problem if someone were to include a directory name/url with a " or line feed or similar nasty character.

     
  • Jehan Bing

    Jehan Bing - 2012-03-01

    Note that flags can be easily added to .gitmodules:
    git config -f .gitmodules submodule.<modulename>.gitslave_flags ifpresent

     

Log in to post a comment.