Rewrite cat-file.c : need help to find a bug
- From
Оля Тележная <olyatelezhnaya@gmail.com>
- Date
- Dec 29, 2017, 10:05 UTC
- Message-ID
- <CAL21BmnycG4=Wm_e1S85QVPfs3vV_Q=TAjTAG-sv+f2mK6wbBQ@mail.gmail.com>
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.
You could write here or leave comments in github if you have any ideas.
Thank you in advance for your help! Olga