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

[PATCH 0/2] branch: update error messages

From
Rubén Justo <rjusto@gmail.com>
Date
Aug 7, 2023, 20:38 UTC
Message-ID
<7710c002-0832-d8f6-59b8-30119bd5efe6@gmail.com>

A message like "branch 'frog' checked out at ..." may be confusing to the user if the branch 'frog' is not the currently checked out branch, which may occur while rebasing, bisecting or other operations.

Let's reword those messages as it has been done in 4970bedef2 (branch: update the message to refuse touching a branch in-use, 2023-07-21).

Rubén Justo (2):
  branch: error message deleting a branch in use
  branch: error message checking out a branch in use
 branch.c                |  2 +-
 builtin/branch.c        |  2 +-
 t/t2400-worktree-add.sh |  3 ++-
 t/t3200-branch.sh       | 14 +++++++++++++-
 t/t3400-rebase.sh       |  2 +-
 5 files changed, 18 insertions(+), 5 deletions(-)
-- 
2.42.0.rc0.2.gbb987841e8
Next: Rubén Justo
Message 1 of 6 in “branch: update error messages”
  1. 0/2 branch: update error messagesRubén Justo, Aug 7, 2023
  2. 1/2 branch: error message deleting a branch in useRubén Justo, Aug 7, 2023
  3. 2/2 branch: error message checking out a branch in useRubén Justo, Aug 7, 2023
  4. Taylor BlauAug 7, 2023
  5. Rubén JustoAug 7, 2023
  6. Junio C HamanoAug 7, 2023

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.