CC: | rsrchboy [...] cpan.org |
Subject: | Git plugins should communicate better |
Many Git-related plugins need the same settings, or related settings,
and it would be nice if they were in the same place. Also, some plugins
need to determine the same information (e.g. both Git::NextVersion and
Git::CheckFor::Fixups need to figure out what commit was the last release).
The @Git bundle provides configuration sharing, but not all Git plugins
are in @Git (or even in this dist), and not everybody wants to use all
the plugins in @Git.
One solution to at least some of this would be to have a %Git stash for
unified configuration.
Some thoughts on that:
You should still be able to set an attribute directly on a plugin. The
stash should be a secondary source.
You should be able to tell a plugin to use a different stash (for
complicated situations).
Where should default values come from? (Are they programmed in %Git or
in the plugin?)