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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Aug 11, 2006 at 12:50:12AM -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.
> 
> Signed-off-by: Junio C Hamano <junkio@xxxxxxx>
> ---
> 
>  * 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.
> 
>    Opinions? 

I always felt confused when path was relative to root of .git directory
and not relative to current directory.
But I never looked into changing this or reporting it - so it has not
been a big issue.

	Sam
-
: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]