I don't particularly like the setting name I chose, but I couldn't think
of anything better at the time.
This is a site-wide configuration settion, so if you are using multiple
repos, it will affect them all. This could be extended to be per-repo if
we make this a dictionary, but I think that's a bit much.
This patch even comes with documentation!
Thanks!
Jeff Anderson
You've convinced me that this is a good feature to have. I'll look at
the specifics in the next day or two.
> This is a site-wide configuration settion, so if you are using multiple
> repos, it will affect them all. This could be extended to be per-repo if
> we make this a dictionary, but I think that's a bit much.
I can see a definite benefit in making it per-repo, but I'll have to
think about the use cases a little more. James, do you have any
thoughts?
> This patch even comes with documentation!
That's what I like to hear. :)
--
Andrew McNabb
http://www.mcnabbs.org/andrew/
PGP Fingerprint: 8A17 B57C 6879 1863 DE55 8012 AB4D 6098 8826 6868
I've had this floating around in my mind for a while, and it seems to me
that there should be some support for doing more advanced configuration
in the site-wide file. I like the .htaccess analogy, so I'll use that
as an example. The site-wide Apache configuration file isn't the same
as just having a .htaccess in the root directory of your system. With
the Location directive, the Apache configuration file can specify
different settings for different directories. It seems like a site-wide
Smug config would be more useful if it could specify changes at
different directories. What do you think?
With that said, I'd rather have a limit of site-wide defaults rather
than have a messy or awkward way of defining defaults per repo.
Also, if support for per-repo defaults is included, it should not push
out having a site-wide configuration. I'd like to have the directory
index be index.html for all my pages, no matter what repo they are in. I
should only have to define that once, and then only put changes in my
per-repo config.
The method that comes to mind is to use a string for site wide, and a
dict for per-repo. It might look something like:
DOTSMUG_DEFAULT = ""
DOTSMUG['repoone']=""
DOTSMUG['repotwo']=""
Jeff Anderson