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

[PATCH v2 0/5] ref-filter: add new formatting options

From
Оля Тележная <olyatelezhnaya@gmail.com>
Date
Dec 24, 2018, 13:16 UTC
Message-ID
<CAL21BmnmfxpMgbW_Yz9D=FVZk_AzWF0uyrNZeSGPCs63PH1oag@mail.gmail.com>
In-Reply-To
<CAL21BmnoZuRih3Ky66_Tk0PweD36eZ6=fbY3jGumRcSJ=Bc_pQ@mail.gmail.com>
пт, 9 нояб. 2018 г. в 10:37, Оля Тележная <olyatelezhnaya@gmail.com>:
Show 21 quoted lines
>
> Add formatting options %(objectsize:disk) and %(deltabase), as in
> cat-file command.
>
> I can not test %(deltabase) properly (I mean, I want to have test with
> meaningful deltabase in the result - now we have only with zeros). I
> tested it manually on my git repo, and I have not-null deltabases
> there. We have "t/t1006-cat-file.sh" with similar case, but it is
> about blobs. ref-filter does not work with blobs, I need to write test
> about refs, and I feel that I can't catch the idea (and it is hard for
> me to write in Shell).
>
> Finally, I want to remove formatting logic in cat-file and use
> functions from ref-filter (we are almost there, so many work was done
> for this). I had an idea to make this migration in this patch (and
> stop worrying about bad tests about deltabase: we already have such
> test for cat-file and hopefully that could be enough). But I have
> another question there. cat-file has one more formatting option:
> "rest" [1]. Do we want such formatting option in ref-filter? It's
> easier for me to support that in ref-filter than to leave it only
> specifically for cat-file.
Updates since previous version:
1. Fix type cast not to generate warnings/errors in other system
platforms (travis CI says that everything is OK now)
2. Add check for negative object size (BUG if it is negative)
3. Update documentation (thanks to Junio for better wording)
>
> Thank you!
>
> [1] https://git-scm.com/docs/git-cat-file#git-cat-file-coderestcode
Previous: Оля ТележнаяNext: Оля Тележная
Message 2 of 10 in “ref-filter: add new formatting options”
  1. 0/5 ref-filter: add new formatting optionsОля Тележная, Nov 9, 2018
  2. 0/5 ref-filter: add new formatting optionsОля Тележная, Dec 24, 2018
  3. Оля ТележнаяJan 10, 2019
  4. 1/6 ref-filter: add objectsize:disk optionOlga Telezhnaya, Jan 10, 2019
  5. 5/6 ref-filter: add tests for deltabaseOlga Telezhnaya, Jan 10, 2019
  6. 4/6 ref-filter: add deltabase optionOlga Telezhnaya, Jan 10, 2019
  7. 2/6 ref-filter: add check for negative file sizeOlga Telezhnaya, Jan 10, 2019
  8. 6/6 ref-filter: add docs for new optionsOlga Telezhnaya, Jan 10, 2019
  9. 3/6 ref-filter: add tests for objectsize:diskOlga Telezhnaya, Jan 10, 2019
  10. Junio C HamanoJan 10, 2019

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.