Re: [PATCH] git-grep --relative: show pathnames relative to the current directory

From: Karl Hasselström <kha@treskal.com>
Date: 2006-08-11 22:03:34
On 2006-08-11 00:50:12 -0700, Junio C Hamano wrote:

> By default, the command shows pathnames relative to the project
> root, even when run from a subdirectory. With --relative flag,
> however, the command outputs pathnames relative to the current
> directory.
>
> This makes it very pleasant to run in Emacs compilation (or
> "grep-find") buffer.

[...]

>  * Now the question is, shouldn't this be the default, with the
>    current output available as an option --full-name, just like
>    ls-files?
>
>    Changing the default always risks breaking people's habit and
>    scripts, but I tend to think the current output is a misfeature
>    which we'd better fix sooner rather than later.

I think this behavior should be the default, precisely because it
otherwise breaks the habits formed during use of plain "grep".

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
-
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
Received on Fri Aug 11 22:04:31 2006

This archive was generated by hypermail 2.1.8 : 2006-08-11 22:05:35 EST