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

Re: [PATCH1/2] Libify blame

From
PSpi song <pi.songs@gmail.com>
Date
Mar 18, 2009, 06:52 UTC
Message-ID
<1b29507a0903172352x7864911fm1104e22eddde54f1@mail.gmail.com>
In-Reply-To
<7v3adbmjwy.fsf@gitster.siamese.dyndns.org>

Wait. If you look at the builtin-blame.c, out of question it is very messy. Things like print_usage() or -L parameter parsing for example is not done upfront but hiding somewhere. Some functions are not very clear if they are frontend or backend. I would say nobody would be able to split it right in the first place. What you could do is to split it to something "roughly right" and then work from that.

My latest two patches really do nothing but just splitting files. I haven't changed any logics or renamed any thing only to make this big beast more *manageable* rather than tackling the problem directly. Yes, some bits are still wrong but I believe 70% of the functions should already stay in the right place. The following patches will make the structure more right *gradually*.

Pi Song
On Wed, Mar 18, 2009 at 5:20 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 7 quoted lines
> pi song <pi.songs@gmail.com> writes:
>
>> Don't you think we should rather split up into smaller files before
>> start reorganizing things?
>
> Yes, but splitting it wrong is, eh, wrong ;-)
>
Previous: Junio C HamanoNext: pi song
Message 5 of 6 in “[PATCH1/2] Libify blame”
  1. pi songMar 16, 2009
  2. Junio C HamanoMar 18, 2009
  3. pi songMar 18, 2009
  4. Junio C HamanoMar 18, 2009
  5. pi songMar 18, 2009
  6. pi songMar 18, 2009

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.