bronson/vim-update-bundles — Issue #32: Use 'ignore = dirty' in .gitmodules entries
Author: peterhost
Created: 2011-12-17 00:03:00+00:00
State: open

This is an excellent tool I use on a day to day basis on many different computers.

I have only one (tiny wheenie) request :

When using submodules for Vim plugins, we often encounter the situation when the submodule tree becomes dirty adding modified/untraked files to the `git status` output in the main repo (when building helptags or for ex., or Commant-T Plugin which needs a ruby extension to be rebuilt).

I'm not a rubyist myself but it seems it's "a matter of" (big quotes) adding an `ignore = dirty` entry in `.gitmodules` for each submodule as [mentionned here](http://www.nils-haldenwang.de/frameworks-and-tools/git/how-to-ignore-changes-in-git-submodules)

this should be around line 153-164 of the `vim-update-bundle` main script

```ruby
def clone_bundle config, dir, url, tagstr, log
if in_submodule_root(dir) { |mod|
puts "adding submodule #{dir} from #{url}#{tagstr}"
git :submodule, :add, url, mod
}
else
puts "cloning #{dir} from #{url}#{tagstr}"
git :clone, url, dir
end
Dir.chdir(dir) { print_log_entry log, 'Add', dir, describe_head, "#{url}#{tagstr}" }
$bundles_added += 1
end
```