threads / discuss / 16195

StGit: stgit mail configuration options

Subject: StGit: stgit mail configuration options

## tl;dr

2 messages between Nov 6, 2008 and Nov 10, 2008.

replies: 1people: 2as markdown or json

David Kågedal· Nov 6, 2008, 10:21 UTC · lore

The "stg mail" command uses a couple of configuration options that are completely undocumented, and don't fit well together.

"stgit.autobcc" seems to give a default value for the --bcc option.

"stgit.mail.prefix seems to give a default value for the --prefix option.

Shouldn't these both be stgit.* or stgit.mail.*? And shouldn't they be documented? Or maybe removed?

And I propse that the autobcc option should be a boolean which means that user.email should be used.

-- 
David Kågedal
Karl Hasselström· Nov 10, 2008, 10:19 UTC · re: David Kågedal · lore

Re: StGit: stgit mail configuration options

On 2008-11-06 11:21:20 +0100, David Kågedal wrote:
> The "stg mail" command uses a couple of configuration options that
> are completely undocumented, and don't fit well together.
I agree that they definitely need documenting.

As for renaming them and/or changing their types, that's probably a good idea too. And once they are documented, we could e.g. rename and only mention the new name in the docs, but keep the old name as well for backward compatibility.

One interesting twist would be to fix StGit's config parser so that it can automatically generate a man page listing all the config options it recognizes. It needs updating anyway for other reasons (I believe it still calls git-config several times instead of just once), and this could be done at the same time.

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle

← back to recent threads