I sent that email by mistake. Now I feel that I should give some feedback about the idea. I like it.<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 3, 2012 at 2:29 PM, Santiago Borrazás <span dir="ltr"><<a href="mailto:sanbor@gmail.com" target="_blank">sanbor@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">G i<br>
<span class="HOEnZb"><font color="#888888"><br>
S<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On 03/12/2012, at 11:54, David Sklar <<a href="mailto:david.sklar@gmail.com">david.sklar@gmail.com</a>> wrote:<br>
<br>
> Hi, Jason. The answer to both your questions is "Yes" (accompanied by a<br>
> "why didn't you check your patch more carefully?! stern admonishment<br>
> addressed to myself.) I got a little wrapped around the axle manually<br>
> subbing in and out the platform-specific code so I could do the editing<br>
> right in my git repo.<br>
><br>
> I will noodle around if there's an invocation of "find" that would<br>
> produce the same result more concisely, that might help. The init option<br>
> would be convenient (Or at least some way to provide a shortcut for<br>
> "echo SOMEID >> $PREFIX/SOMEPLACE/.gpgid && git add<br>
> $PREFIX/SOMEPLACE/.gpgid && git commit -m "Added SOMEID at SOMEPLACE",<br>
> although those steps can certainly be accomplished manually.<br>
><br>
> David<br>
><br>
><br>
> On 12/2/12 11:21 AM, Jason A. Donenfeld wrote:<br>
>> Hi David,<br>
>><br>
>> This is a cool idea. I'd be up for considering it, if we can get the<br>
>> code minimal and simple enough. Right now it's a bit large and there<br>
>> are a couple of issues:<br>
>><br>
>> +set_gpg_id() {<br>
>> + if [[ -f "$1/.gpg-id" ]]; then<br>
>> +     ID="$(head -n 1 "$1/.gpg-id")"<br>
>> +     return 0<br>
>> + else<br>
>> +   if [[ "$(dirname $1)" == "." ]]; then<br>
>><br>
>> Shouldn't this only walk outward enough to the point where dirname $1<br>
>> == dirname $PREFIX?<br>
>><br>
>><br>
>> +     return -1<br>
>> +   else<br>
>> +     find_id "$(dirname $1)"<br>
>><br>
>> Did you mean set_gpg_id here?<br>
>><br>
>> +   fi<br>
>> + fi<br>
>> +}<br>
>><br>
>> I suppose we'd also need a nice option in init too for this.<br>
>><br>
>> Bah, it's looking a bit overkill, but still kind of nice. What's the list think?<br>
>><br>
>> Jason<br>
>><br>
>> On Thu, Nov 29, 2012 at 7:40 PM, David Sklar <<a href="mailto:david.sklar@gmail.com">david.sklar@gmail.com</a>> wrote:<br>
>>><br>
>>> I would find it convenient to combine multiple data sources in one repo<br>
>>> (e.g. work stuff and personal stuff) which should be encrypted by<br>
>>> different keys.<br>
>>><br>
>>> I put together the attached patch which allows for .gpg-id files in<br>
>>> subdirectories of the repo. Deepest one wins, ala Apache httpd .htaccess<br>
>>> files.<br>
>>><br>
>>> And then I saw<br>
>>> <a href="http://lists.zx2c4.com/pipermail/password-store-zx2c4.com/2012-September/000014.html" target="_blank">http://lists.zx2c4.com/pipermail/password-store-zx2c4.com/2012-September/000014.html</a><br>
>>> and the env var solution. :)<br>
>>><br>
>>> Any interest in multiple keys per repo?<br>
>>><br>
>>> David<br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> Password-Store mailing list<br>
>>> <a href="mailto:Password-Store@lists.zx2c4.com">Password-Store@lists.zx2c4.com</a><br>
>>> <a href="http://lists.zx2c4.com/listinfo.cgi/password-store-zx2c4.com" target="_blank">http://lists.zx2c4.com/listinfo.cgi/password-store-zx2c4.com</a><br>
>>><br>
><br>
> _______________________________________________<br>
> Password-Store mailing list<br>
> <a href="mailto:Password-Store@lists.zx2c4.com">Password-Store@lists.zx2c4.com</a><br>
> <a href="http://lists.zx2c4.com/listinfo.cgi/password-store-zx2c4.com" target="_blank">http://lists.zx2c4.com/listinfo.cgi/password-store-zx2c4.com</a><br>
</div></div></blockquote></div><br></div>