Re: [PATCH/RFC 3/3] diff.c: add --relative-names to be used with --name-only

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

 



On Mon, Jun 27, 2016 at 9:24 PM, Jeff King <peff@xxxxxxxx> wrote:
> On Sun, Jun 26, 2016 at 07:16:16PM +0200, Nguyễn Thái Ngọc Duy wrote:
>
>> The difference with --relative option is, this option does not filter
>> paths outside cwd. You can add two more chars " ." on your command
>> line for that.
>
> Another difference seems to be that it applies only to --name-only, and
> not to other forms. I can see how "-p --relative-names" might be weird,
> because you'll get:
>
>   diff --git a/../foo/bar b/../foo/bar
>
> or something. But surely things like --name-status would want to support
> it?

That's my plan :) Anything that does not start with a/ or b/ should
respect this new option.
-- 
Duy
--
To unsubscribe from this list: 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]