Issue #8090 has been reported by Matt Robinson. ---------------------------------------- Bug #8090: Update .gitignore to ignore plugin files https://projects.puppetlabs.com/issues/8090
Author: Matt Robinson Status: Accepted Priority: Normal Assignee: Category: Target version: Keywords: Branch: Affected URL: Affected Dashboard version: On Wed, 22 Jun 2011 13:48:53 -0700, Randall Hansen wrote: > > I've got some local files[1] from the baseline plugin that I want git > to ignore. Adding them to .gitignore is straightforward, but it's a > little fragile. A plugin can crap any number of files into the main > project which must be attended to and ignored explicitly. > > Is there a better way to deal with this than adding them as they come > up? Perhaps this is just me wishing there were more unicorns in the > world :/ > > r > > ---- > > 1. db/migrate/20110129205337_plugin_puppet_baseline_create_baselines.rb > > db/migrate/20110608203112_plugin_puppet_baseline_create_baseline_differences_table.rb > public/images/arrow_merge.png > public/javascripts/plugin-puppet_baseline.js > public/stylesheets/plugin-puppet_baseline.css > public/stylesheets/sass/plugin-puppet_baseline.scss On Wed, Jun 22, 2011 at 3:05 PM, Jacob Helwig <[email protected]> wrote: So, all but one of those look reasonablly easy to ignore in a way that would work for plugins in general. We should probably enforce that plugins only drop files into place that begin with "plugin_#{plugin_name}" to make all cases easy to add to the .gitignore. db/migrate/[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]_plugin_*.rb public/javascripts/plugin[-_]*.js public/stylesheets/sass/plugin[-_]*.scss With the prefix naming rule mentioned earlier, it would be: db/migrate/[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]_plugin_*.rb public/images/plugin_* public/javascripts/plugin_*.js public/stylesheets/sass/plugin_*.scss -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
