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

Re: [PATCH v2] ls-files.c: add --object-only option

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 13, 2022, 17:19 UTC
Message-ID
<xmqqwndk7a7j.fsf@gitster.g>
In-Reply-To
<CAOLTT8SNOYYVmk3fvEc=Vp9MuRp+1H--wh72rP=ORRtffonUfQ@mail.gmail.com>
ZheNing Hu <adlternative@gmail.com> writes:
Show 7 quoted lines
> I think those atoms are undoubtedly necessary to keep
>
> %(tag)
> %(objectmode)
> %(objectname)
> %(stage)
> %(path)

I am not sure what you mean by "keep". You cannot keep what you do not have yet ;-)

If ls-files needs (that is a big if; it is a plumbing to be used by whatever program that want to assemble the pieces, and it shouldn't have to learn such assembly itself) to support "--format", so that people can reinvent its "-s" output (but why? There already is "-s" output available), then the above would be necessary (assuming that via the "--format" the user will be able to supply inter-field spaces and tabs properly). I do not know if there are other things available in output other than the "-s" option produces offhand, but if there are, they would need to be added for completeness.

Previous: ZheNing Hu
Message 8 of 8 in “ls-files.c: add --only-object-name option”
  1. ls-files.c: add --only-object-name optionZheNing Hu via GitGitGadget, Jun 6, 2022
  2. Ævar Arnfjörð BjarmasonJun 6, 2022
  3. ZheNing HuJun 8, 2022
  4. Junio C HamanoJun 8, 2022
  5. ls-files.c: add --object-only optionZheNing Hu via GitGitGadget, Jun 9, 2022
  6. Junio C HamanoJun 9, 2022
  7. ZheNing HuJun 12, 2022
  8. Junio C HamanoJun 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.