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

Re: js/scalar-diagnose, was Re: What's cooking in git.git (May 2022, #04; Thu, 12)

From
Junio C Hamano <gitster@pobox.com>
Date
May 13, 2022, 15:34 UTC
Message-ID
<xmqqmtflbg4c.fsf@gitster.g>
In-Reply-To
<nycvar.QRO.7.76.6.2205131404280.352@tvgsbejvaqbjf.bet>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 6 quoted lines
> My first reaction was: but wait, what about the file mode? Then I
> remembered that René offered the opinion that we could easily introduce
> `--add-executable-file-with-contents` _iff_ we need that at some stage,
> and when I considered symbolic links, I noticed that the `--add-file`
> option does not accept those in the first place, so it would be funny if
> `--add-file-with-contents` supported symbolic links.

Knowing how we present symbolic links in the patch output, I would actually think it is quite natural to say

    --add-virtual-file=RelNotes:120000:Documentation/RelNotes/2.37.0.txt

and be able to create a symlink. But if we are to go in the route to later add "--add-executable-file-with-contents", it is plausibly a workable solution to add "--add-virtual-symbolic-link", too. And when it happens, we may say "why didn't we use the word 'virtual' in the existing option names?"

By the way, should it be "--add-file-with-contents", just like you wrote above? The version in 'seen' says "--add-file-with-content".

Thanks.
Previous: Johannes SchindelinNext: Jeff Hostetler
Message 3 of 4 in “What's cooking in git.git (May 2022, #04; Thu, 12)”
  1. Junio C HamanoMay 13, 2022
  2. js/scalar-diagnose, was Re: What's cooking in git.git (May 2022, #04; Thu, 12)Johannes Schindelin, May 13, 2022
  3. Junio C HamanoMay 13, 2022
  4. Jeff HostetlerMay 13, 2022

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.