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

Re: [PATCH] revisions: refactor init_revisions and setup_revisions.

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 10, 2008, 19:36 UTC
Message-ID
<7vwsoaid6z.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080310084920.GA2798@artemis.madism.org>
Pierre Habouzit <madcoder@debian.org> writes:
Show 5 quoted lines
>   We could of course have a .def member in the struct rev_info, and use
> the one passed to setup_revisions then if it's still NULL, but it
> doesn't really makes sense to me, and I don't really see a problem with
> saying at init time that you'll default to "HEAD". Though if you really
> dislike it that much, I squash a patch that does that on top of it.

Well, it was not liking or disliking. Although I thought "default" that sets a value to the default after the parser finds that the user did not give anything (the approach you described in the above quoted paragraph) is a natural implementation, probably more so than what you did, I do not have strong preference either way.

When I see a change where I do not see a reason to, I get suspicious, wondering if I am missing some bigger reason (e.g. "by moving it there this and that would become much easier and cleaner, even though it now forces callers of cmd_log_init() to duplicate the default values"). There must be an obvious justification you had when you changed it, which I am not seeing. Hence that question.

Show 9 quoted lines
>> Applying this to 'master' and then merging 'pu' shows that there are a few
>> topics that are cooking that would conflict with this change.  Merging
>> 'next' seems to go cleanly (I haven't checked the result), so it is not
>> too bad for me to carrry this at this moment, if we were not this close to
>> the rc freeze.  I dunno.
>
>   Well I can wait longer, I'd just like to see it merged in a not too
> far future, because I have to check for new places that would need
> conversions at each reabase :)
Yeah, that burden can be shifted to me, in other words ;-)
Previous: Pierre HabouzitNext: Pierre Habouzit
Message 4 of 5 in “revisions: refactor init_revisions and setup_revisions.”
  1. revisions: refactor init_revisions and setup_revisions.Pierre Habouzit, Mar 4, 2008
  2. Junio C HamanoMar 10, 2008
  3. Pierre HabouzitMar 10, 2008
  4. Junio C HamanoMar 10, 2008
  5. Pierre HabouzitMar 10, 2008

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.