git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/12] git-grep: read config
@ 2008-07-23 14:55 Nguyễn Thái Ngọc Duy
  2008-07-24 17:15 ` Jeff King
  0 siblings, 1 reply; 9+ messages in thread
From: Nguyễn Thái Ngọc Duy @ 2008-07-23 14:55 UTC (permalink / raw)
  To: git


Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
---
 builtin-grep.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/builtin-grep.c b/builtin-grep.c
index 631129d..cc9ba6b 100644
--- a/builtin-grep.c
+++ b/builtin-grep.c
@@ -517,6 +517,8 @@ int cmd_grep(int argc, const char **argv, const char *prefix)
 	const char **paths = NULL;
 	int i;
 
+	git_config(git_default_config, NULL);
+
 	memset(&opt, 0, sizeof(opt));
 	opt.prefix_length = (prefix && *prefix) ? strlen(prefix) : 0;
 	opt.relative = 1;
-- 
1.5.5.GIT

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH 01/12] git-grep: read config
  2008-07-23 14:55 [PATCH 01/12] git-grep: read config Nguyễn Thái Ngọc Duy
@ 2008-07-24 17:15 ` Jeff King
  2008-07-24 18:45   ` Nguyen Thai Ngoc Duy
  0 siblings, 1 reply; 9+ messages in thread
From: Jeff King @ 2008-07-24 17:15 UTC (permalink / raw)
  To: Nguyễn Thái Ngọc Duy; +Cc: git

On Wed, Jul 23, 2008 at 09:55:35PM +0700, Nguyễn Thái Ngọc Duy wrote:

> 
> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>

The commit message is a bit lacking...what config are we interested in?

-Peff

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 01/12] git-grep: read config
  2008-07-24 17:15 ` Jeff King
@ 2008-07-24 18:45   ` Nguyen Thai Ngoc Duy
  2008-07-24 18:53     ` Sverre Rabbelier
  2008-07-24 18:58     ` Jeff King
  0 siblings, 2 replies; 9+ messages in thread
From: Nguyen Thai Ngoc Duy @ 2008-07-24 18:45 UTC (permalink / raw)
  To: Jeff King; +Cc: git

On 7/25/08, Jeff King <peff@peff.net> wrote:
> On Wed, Jul 23, 2008 at 09:55:35PM +0700, Nguyen Thai Ngoc Duy wrote:
>
>  >
>  > Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
>
>
> The commit message is a bit lacking...what config are we interested in?

core.sparsecheckout, but I will probably stay away from config.

-- 
Duy

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 01/12] git-grep: read config
  2008-07-24 18:45   ` Nguyen Thai Ngoc Duy
@ 2008-07-24 18:53     ` Sverre Rabbelier
  2008-07-24 19:03       ` Nguyen Thai Ngoc Duy
  2008-07-24 19:16       ` Jay Soffian
  2008-07-24 18:58     ` Jeff King
  1 sibling, 2 replies; 9+ messages in thread
From: Sverre Rabbelier @ 2008-07-24 18:53 UTC (permalink / raw)
  To: Nguyen Thai Ngoc Duy; +Cc: Jeff King, git

On Thu, Jul 24, 2008 at 8:45 PM, Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:
>

Something went wrong replying here possibly? Or is it just me who is
receiving empty messages? (At least the 3rd empty mail I see.)

-- 
Cheers,

Sverre Rabbelier

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 01/12] git-grep: read config
  2008-07-24 18:45   ` Nguyen Thai Ngoc Duy
  2008-07-24 18:53     ` Sverre Rabbelier
@ 2008-07-24 18:58     ` Jeff King
  2008-07-24 19:07       ` Nguyen Thai Ngoc Duy
  1 sibling, 1 reply; 9+ messages in thread
From: Jeff King @ 2008-07-24 18:58 UTC (permalink / raw)
  To: Nguyen Thai Ngoc Duy; +Cc: git

On Fri, Jul 25, 2008 at 01:45:58AM +0700, Nguyen Thai Ngoc Duy wrote:

> > The commit message is a bit lacking...what config are we interested in?
> 
> core.sparsecheckout, but I will probably stay away from config.

Right, I kind of guessed that from reading the rest of the series. But
that sort of "why" really should go into the commit message.

-Peff

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 01/12] git-grep: read config
  2008-07-24 18:53     ` Sverre Rabbelier
@ 2008-07-24 19:03       ` Nguyen Thai Ngoc Duy
  2008-07-24 19:12         ` Sverre Rabbelier
  2008-07-24 19:16       ` Jay Soffian
  1 sibling, 1 reply; 9+ messages in thread
From: Nguyen Thai Ngoc Duy @ 2008-07-24 19:03 UTC (permalink / raw)
  To: sverre; +Cc: Jeff King, git

On 7/25/08, Sverre Rabbelier <alturin@gmail.com> wrote:
> On Thu, Jul 24, 2008 at 8:45 PM, Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:
>  >
>
>  Something went wrong replying here possibly? Or is it just me who is
>  receiving empty messages? (At least the 3rd empty mail I see.)

I blame gmail MTA or my name's having non-ascii chars in it. Combining
those two, it produces base64-encoded messages, which are usually
refused by vger.
-- 
Duy

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 01/12] git-grep: read config
  2008-07-24 18:58     ` Jeff King
@ 2008-07-24 19:07       ` Nguyen Thai Ngoc Duy
  0 siblings, 0 replies; 9+ messages in thread
From: Nguyen Thai Ngoc Duy @ 2008-07-24 19:07 UTC (permalink / raw)
  To: Jeff King; +Cc: git

On 7/25/08, Jeff King <peff@peff.net> wrote:
> On Fri, Jul 25, 2008 at 01:45:58AM +0700, Nguyen Thai Ngoc Duy wrote:
>
>  > > The commit message is a bit lacking...what config are we interested in?
>  >
>  > core.sparsecheckout, but I will probably stay away from config.
>
>
> Right, I kind of guessed that from reading the rest of the series. But
>  that sort of "why" really should go into the commit message.

There was "why" in the commit before but I wanted to make the first
two patches independent to this series. Turns out bad, I think :)
-- 
Duy

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 01/12] git-grep: read config
  2008-07-24 19:03       ` Nguyen Thai Ngoc Duy
@ 2008-07-24 19:12         ` Sverre Rabbelier
  0 siblings, 0 replies; 9+ messages in thread
From: Sverre Rabbelier @ 2008-07-24 19:12 UTC (permalink / raw)
  To: Nguyen Thai Ngoc Duy; +Cc: Jeff King, git

On Thu, Jul 24, 2008 at 9:03 PM, Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:
> On 7/25/08, Sverre Rabbelier <alturin@gmail.com> wrote:
>> On Thu, Jul 24, 2008 at 8:45 PM, Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:
>>  >
>>
>>  Something went wrong replying here possibly? Or is it just me who is
>>  receiving empty messages? (At least the 3rd empty mail I see.)
>
> I blame gmail MTA or my name's having non-ascii chars in it. Combining
> those two, it produces base64-encoded messages, which are usually
> refused by vger.

Curiously enough, in the first mail there -are- non-asci characters in
your name, in the 'empty' mail there are non, instead the 'letter
decorations' were removed.

-- 
Cheers,

Sverre Rabbelier

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 01/12] git-grep: read config
  2008-07-24 18:53     ` Sverre Rabbelier
  2008-07-24 19:03       ` Nguyen Thai Ngoc Duy
@ 2008-07-24 19:16       ` Jay Soffian
  1 sibling, 0 replies; 9+ messages in thread
From: Jay Soffian @ 2008-07-24 19:16 UTC (permalink / raw)
  To: sverre; +Cc: Nguyen Thai Ngoc Duy, Jeff King, git

On Thu, Jul 24, 2008 at 2:53 PM, Sverre Rabbelier <alturin@gmail.com> wrote:
> On Thu, Jul 24, 2008 at 8:45 PM, Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:
>>
>
> Something went wrong replying here possibly? Or is it just me who is
> receiving empty messages? (At least the 3rd empty mail I see.)

Here's what's going on.

1. Gmail will often send messages as base64 encoded, inline. i.e.:

   Content-Type: text/plain; charset=UTF-8
   Content-Transfer-Encoding: base64
   Content-Disposition: inline

2. Majordomo is dumb dumb dumb and adds the standard list footer to
the message. It should probably either not add the footer to such
messages, or it should do it correctly by base64 decoding them, adding
the footer, then re-encoding. Anyway, what it sends out is:

   [... prior base64 encoded lines elided ...]
   b3V0LCBidXQgSSB3aWxsIHByb2JhYmx5IHN0YXkgYXdheSBmcm9tIGNvbmZpZy4KCi0tIApEdXkK
   --
   To unsubscribe from this list: send the line "unsubscribe git" in
   the body of a message to majordomo@vger.kernel.org
   More majordomo info at  http://vger.kernel.org/majordomo-info.html

3. Gmail is dumb dumb dumb and cannot decode such "corrupted"
messages. They display as completely blank. If you go to gmane you can
see the message is fine. (I think gmane strips the majordomo added
footer.)

I've filed a bug against gmail multiple times about this. No idea if
they'll ever fix it.

I also sent an email to git-owner@vger.kernel.org (which I think was
/dev/null'ed) offering to patch Majordomo, but got no reply.

I wonder if such a mailing list footer is useful in the first place.
Perhaps it could just be disabled.

Anyway, my offer to "fix" majordomo still stands. Perhaps someone
knows who I should contact at vger.kernel.org to find out whether
they're willing to accept a patch.

j.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-07-24 19:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-23 14:55 [PATCH 01/12] git-grep: read config Nguyễn Thái Ngọc Duy
2008-07-24 17:15 ` Jeff King
2008-07-24 18:45   ` Nguyen Thai Ngoc Duy
2008-07-24 18:53     ` Sverre Rabbelier
2008-07-24 19:03       ` Nguyen Thai Ngoc Duy
2008-07-24 19:12         ` Sverre Rabbelier
2008-07-24 19:16       ` Jay Soffian
2008-07-24 18:58     ` Jeff King
2008-07-24 19:07       ` Nguyen Thai Ngoc Duy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).