[PATCH] add possibility to use git in a sub-folder for multi repo

David A. listmail at cox.net
Wed Apr 12 05:59:52 CEST 2017

On Tue, 11 Apr 2017 16:51:12 +0200, Philippe BEAUMONT
<philippe.beaumont at nfrance.com> wrote:

>Le 10/04/2017 à 19:39, Jason A. Donenfeld a écrit :
>> I like this idea, but the implementation is bad. Please use getopt
>> just like every other subcommand that takes arguments.
>I have rewrite with getopt and my test are correct. If you have any 
>other sugestion, please tell me to adapt the patch.

Wouldn't it be a cleaner solution to have pass issue ALL git commands
with CWD as the .password-store directory rather than using the
GIT_DIR and GIT_WORK_TREE variables to inform git where the repo is?
Then you could pass -C directly to git along with everything else on
the command line and it will work *as documented* on the git manpage.
You wouldn't have to parse and override an existing git option, and
both pass and git would work as currently documented without any

More information about the Password-Store mailing list