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

Re: [PATCH] rev-parse: add option for absolute or relative path formatting

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Nov 6, 2020, 01:57 UTC
Message-ID
<20201106015708.GB6252@camp.crustytoothpaste.net>
In-Reply-To
<20201106005110.GA3479573@google.com>
On 2020-11-06 at 00:51:10, Jonathan Nieder wrote:
Show 11 quoted lines
> Ah, thank you.  So if I am understanding the above and [1] correctly,
> this means:
> 
> - when a path is within a repository, converting it to a path relative
>   to the repository root
> 
> - when a path is not within a repository, learning so
> 
> and that making relative paths with ../../ portion that exits the
> repository is *not* an important part of this use case (though it
> could be useful for other things).

Correct. I felt that adding an --absolute option would be less beneficial than both an absolute and a relative option, so I implemented a more generic solution, even though my use case didn't require it.

> Thanks much.  I think this tells me enough to understand the series.
Sure, thanks for asking.
-- 
brian m. carlson (he/him or they/them)
Houston, Texas, US
Previous: Jonathan Nieder
Message 11 of 11 in “rev-parse: add option for absolute or relative path formatting”
  1. rev-parse: add option for absolute or relative path formattingbrian m. carlson, Sep 8, 2020
  2. Johannes SchindelinSep 9, 2020
  3. brian m. carlsonSep 9, 2020
  4. SZEDER GáborSep 9, 2020
  5. brian m. carlsonSep 9, 2020
  6. SZEDER GáborSep 10, 2020
  7. brian m. carlsonSep 11, 2020
  8. Jonathan NiederNov 4, 2020
  9. brian m. carlsonNov 5, 2020
  10. Jonathan NiederNov 6, 2020
  11. brian m. carlsonNov 6, 2020

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.