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

Re: Rewrite cat-file.c : need help to find a bug

From
Оля Тележная <olyatelezhnaya@gmail.com>
Date
Dec 29, 2017, 14:04 UTC
Message-ID
<CAL21BmkcDK+VRc2CBTKnV5eubLh8u37THYjXhuTgFKR4Z=VtTA@mail.gmail.com>
In-Reply-To
<20171229132237.GA12561@sigill.intra.peff.net>
2017-12-29 16:22 GMT+03:00 Jeff King <peff@peff.net>:
Show 18 quoted lines
> On Fri, Dec 29, 2017 at 01:05:50PM +0300, Оля Тележная wrote:
>
>> Hi everyone,
>> I am trying to reuse formatting logic from ref-filter in cat-file
>> command. Now cat-file uses its own formatting code.
>> I am trying to achieve that step-by-step, now I want to invoke
>> populate_value function, and I have a bug somewhere.
>> My code is here.
>> https://github.com/telezhnaya/git/commits/catfile
>> All commits that starts from "cat-file: " are successfully passing all tests.
>> So for now my last commit fails, and I am tired of searching for the
>> error. Actually, I just copied some values to another variable and
>> move some code to other place. All "intelligent" work will go further,
>> but now I need to fix current situation.
>
> The problem is that "cat_file_info" is NULL when you get to
> populate_value(), so the moved code doesn't trigger.
>
 Thanks a lot!
Previous: Jeff KingNext: Оля Тележная
Message 3 of 5 in “Rewrite cat-file.c : need help to find a bug”
  1. Оля ТележнаяDec 29, 2017
  2. Jeff KingDec 29, 2017
  3. Оля ТележнаяDec 29, 2017
  4. Оля ТележнаяJan 4, 2018
  5. Christian CouderJan 4, 2018

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.