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

Re: [PATCH] help.c: Pull cmd_version out of this file.

From
Thiago Farina <tfransosi@gmail.com>
Date
Sep 2, 2010, 01:16 UTC
Message-ID
<AANLkTim1tyTQEUHHo-AuF789v72ag=waqC_V5K77VS2a@mail.gmail.com>
In-Reply-To
<7v39tt552b.fsf@alter.siamese.dyndns.org>
On Wed, Sep 1, 2010 at 10:04 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 7 quoted lines
> Thiago Farina <tfransosi@gmail.com> writes:
>
>>>risk causing broken builds?
>> Hum, how such trivial change can cause that?
>
> Imagine if we had this in help.c:
>
But we don't have.
Show 10 quoted lines
>        int cmd_version(int argc, const char **argv, const char *prefix)
>        {
>                printf("git version %s\n", GIT_VERSION);
>                return 0;
>        }
>
> which were compiled with this rule in Makefile:
>
>        help.o: help.c GIT-VERSION-FILE
>
But it's not.
> and then you moved the function to a new file without touching the
> dependency.
That would be a mistake no?
>  Especially because the change is trivial (just moving a
> function from here to there), you don't immediately notice the broken
> dependency.
>
As far as I know that does not go unnoticed.
> I just spent 15+ minutes explaining this to you (and another 10+ minutes
> checking that the above is _not_ the actual case before giving the same
> explanation to you last night).
Thanks for being so careful.
>  Now is this still a trivial change that
> costs nothing?
>
Why you impose so much obstacles to a trivial change like this?
Show 5 quoted lines
>>>What did we gain through this exercise?  Did we fix any real problem?
>> All patches should just fix real problems?
>
> There is a "cost vs benefit" ratio you need to consider.
>
Thanks.
Previous: Junio C HamanoNext: Jonathan Nieder
Message 10 of 18 in “help.c: Pull cmd_version out of this file.”
  1. help.c: Pull cmd_version out of this file.Thiago Farina, Aug 29, 2010
  2. Jonathan NiederAug 30, 2010
  3. Jonathan NiederAug 30, 2010
  4. Thiago FarinaSep 1, 2010
  5. Nguyen Thai Ngoc DuySep 1, 2010
  6. Thiago FarinaSep 1, 2010
  7. Junio C HamanoSep 1, 2010
  8. Thiago FarinaSep 1, 2010
  9. Junio C HamanoSep 2, 2010
  10. Thiago FarinaSep 2, 2010
  11. Jonathan NiederSep 2, 2010
  12. Junio C HamanoSep 2, 2010
  13. Thiago FarinaOct 27, 2010
  14. Jonathan NiederOct 27, 2010
  15. Thiago FarinaOct 27, 2010
  16. Jonathan NiederOct 27, 2010
  17. Thiago FarinaOct 28, 2010
  18. Jonathan NiederOct 28, 2010

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.