git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Jun 26, 2016, 23:05 UTC
Message-ID
<CAPig+cRQynnXzNSkYGGzuZH25+UAovYHqeBWyaFjb03OHvuCFQ@mail.gmail.com>
In-Reply-To
<20160626171616.27948-4-pclouds@gmail.com>
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
s/pip/pipe/
>    way.
>
> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Previous: Nguyễn Thái Ngọc DuyNext: Jeff King
Message 5 of 9 in “diff: add --relative-names”
  1. 0/3 diff: add --relative-namesNguyễn Thái Ngọc Duy, Jun 26, 2016
  2. 1/3 diff.c: refactor strip_prefix()Nguyễn Thái Ngọc Duy, Jun 26, 2016
  3. 2/3 diff.c: separate "prefix" from RELATIVE_NAME (aka --relative)Nguyễn Thái Ngọc Duy, Jun 26, 2016
  4. 3/3 diff.c: add --relative-names to be used with --name-onlyNguyễn Thái Ngọc Duy, Jun 26, 2016
  5. Eric SunshineJun 26, 2016
  6. Jeff KingJun 27, 2016
  7. Duy NguyenJun 27, 2016
  8. Jeff KingJun 27, 2016
  9. Duy NguyenJun 27, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.