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

Re: [PATCH 1/3] bisect: improve error message of 'bisect log' while not bisecting

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Oct 11, 2010, 06:44 UTC
Message-ID
<AANLkTi=KZyhJrYw+L2U6gsu=jNcBe8eRJTG4jSuPTYsT@mail.gmail.com>
In-Reply-To
<1286747338-8521-1-git-send-email-szeder@ira.uka.de>
2010/10/10 SZEDER Gábor <szeder@ira.uka.de>:
Show 5 quoted lines
> 'git bisect log' is implemented by a direct invocation of 'cat
> "$GIT_DIR/BISECT_LOG"', without any sanity checks.  Consequently,
> running 'git bisect log' while not bisecting leads to an error,
> because the bisect logfile doesn't exists.  The accompanying error
> message
Nice, in case you want to fix this for git-rebase too:
Applying: gettextize: git-add "no files added" message
Applying: gettextize: git-add "Use -f if you really want" message
Applying: gettextize: git-add "pathspec [...] did not match" message
Applying: gettextize: git-add "remove '%s'" message
^C
v t ((5cab536...)|REBASE) $ git rebase --abort
cat: /home/avar/g/git/.git/rebase-apply/head-name: No such file or directory
cat: /home/avar/g/git/.git/rebase-apply/orig-head: No such file or directory
HEAD is now at 5cab536 gettextize: git-add "remove '%s'" message
v t ((5cab536...)) $
v t ((5cab536...)) $ git rebase --abort
No rebase in progress?
v t ((5cab536...)) $
Previous: Christian Couder
Message 8 of 8 in “bisect: improve error message of 'bisect log' while not bisecting”
  1. 1/3 bisect: improve error message of 'bisect log' while not bisectingSZEDER Gábor, Oct 10, 2010
  2. 2/3 bisect: improve error msg of 'bisect reset' when original HEAD is deletedSZEDER Gábor, Oct 10, 2010
  3. 3/3 bisect: check for mandatory argument of 'bisect replay'SZEDER Gábor, Oct 10, 2010
  4. Christian CouderOct 12, 2010
  5. Christian CouderOct 12, 2010
  6. Junio C HamanoOct 13, 2010
  7. Christian CouderOct 14, 2010
  8. Ævar Arnfjörð BjarmasonOct 11, 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.