OmeGak / dotfiles

The ultimate bastion for my dotfiles and more
MIT License
6 stars 2 forks source link

Submodules handling scripts #1

Closed OmeGak closed 9 years ago

OmeGak commented 11 years ago

As some of the configuration files I have are part of other repositories, I am using git submodules to keep track of them wherever I clone my dotfiles.

For doing that, it's as simple as:

$ git submodule init
$ git submodule update

However, whenever there is a change in any of the submodules, they are needed to be committed and pushed per module, which can become quite bothersome in case there are many. Inspired in Homesick, these common operations with submodules that are expected to happen often could be performed from the top-level directory with a single command.

It would make sense extending the dot bin file to add such options.

OmeGak commented 9 years ago

Submodules are a pain in the ass to handle. After some time and reconsidering this, I want to keep submodules at a minimum, so hopefully I will never need to implement any obscure mechanism to do push changes "transparently".

Since 8bfb29f225931138bd93e0dba7efc20146adca47 submodules are properly initialized during the initial install and that's enough for now. If anything, If I ever have a dot update command to update everything (pip, brew, etc.), it maybe wouldn't harm to do git submodule update.