Re: [PATCH/RFC 3/3] diff.c: add --relative-names to be used with --name-only
On Sun, Jun 26, 2016 at 1:16 PM, Nguyễn Thái Ngọc Duy <pclouds@gmail.com> wrote:
Show 14 quoted lines
> 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.
>
> This serves two purposes
>
> - user friendlier to copy/paste. When full paths are shown, you can
> still use ":/" magic to get around it, but unless you're a lefty
> you need to move your right hand between the keyboard and mouse for
> each path. Not very efficient.
>
> - script friendly. Strictly speaking a very light form of scripting
> from command line prompt when you just pipe paths to the next
> command. Paths relative to cwd would be much easier to pip this
> way.
>
> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>