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

Re: Git bisect run should check for the existence of the script

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 17, 2020, 19:30 UTC
Message-ID
<xmqqa6zydjm4.fsf@gitster.c.googlers.com>
In-Reply-To
<xmqqeepadk8q.fsf@gitster.c.googlers.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 5 quoted lines
> Do you mean a new option must be passed if the end-user expects the
> script to always exist across revisions, or the script is not
> tracked to begin with?  It feels somewhat backwards and the effort
> by the end-user to always type the option is better spent to make
> sure there is no typo on the command line.
I forgot to follow up on this part.

It does not change the conclusion that it needs to be done carefully if we chose to retroactivelyreserve return code 127 for our own use, but such a backward incompatible change can easily be worked around if users relied on the current behaviour that a missing (tracked) script would mark the revision "bad" without being a fatal error in "git bisect run". Instead of

    git bisect run "./tracked-script"
they can just do
    git bisect run "test -f ./tracked-script && ./tracked-script"
and the problem is solved ;-)
Previous: Junio C Hamano
Message 5 of 5 in “Git bisect run should check for the existence of the script”
  1. Jean Abou SamraJul 15, 2020
  2. Junio C HamanoJul 15, 2020
  3. Jean Abou SamraJul 17, 2020
  4. Junio C HamanoJul 17, 2020
  5. Junio C HamanoJul 17, 2020

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.