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

Re: [PATCH v3 1/2] abspath: add a function to resolve paths with missing components

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Dec 2, 2020, 23:54 UTC
Message-ID
<X8gpMUtAHsQ/NfTl@camp.crustytoothpaste.net>
In-Reply-To
<nycvar.QRO.7.76.6.2012021406020.25979@tvgsbejvaqbjf.bet>
On 2020-12-02 at 13:09:49, Johannes Schindelin wrote:
Show 8 quoted lines
> I am having a hard time with the name `missing_components`. Taking a step
> back, I think that we are interested in essentially two modes: allow one
> missing component, or an arbitrary amount of missing components.
> 
> If this assumption is correct, we may not even need to count components at
> all. We only need a flag indicating whether we allow only the last
> component to be missing, or any number of components. Maybe something like
> `error_on_missing_parent_directory` or some such?

That's certainly easier. I hope to get a reroll out this week, and I'll simplify when I do that.

-- 
brian m. carlson (he/him or they/them)
Houston, Texas, US
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 7 of 8 in “rev-parse options for absolute or relative paths”
  1. 0/2 rev-parse options for absolute or relative pathsbrian m. carlson, Nov 27, 2020
  2. 2/2 rev-parse: add option for absolute or relative path formattingbrian m. carlson, Nov 27, 2020
  3. 1/2 abspath: add a function to resolve paths with missing componentsbrian m. carlson, Nov 27, 2020
  4. René ScharfeNov 28, 2020
  5. brian m. carlsonNov 28, 2020
  6. Johannes SchindelinDec 2, 2020
  7. brian m. carlsonDec 2, 2020
  8. Johannes SchindelinDec 2, 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.