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

git worktree add prints to stdout

From
KAKaren Arutyunov <karen@codesynthesis.com>
Date
Aug 5, 2018, 13:01 UTC
Message-ID
<631ae70d-9b5f-613d-5b6f-5064d548a894@codesynthesis.com>
Hello,

The 'git worktree add' command prints to both standard streams. So in the following example the first line is printed to stderr and the second to stdout.

$ git worktree add ../pub build2-control Preparing ../pub (identifier pub) HEAD is now at b03ea86 Update

This looks like a bug, as, for example, the checkout command prints 'HEAD is now at...' message to stderr.

Best regards, Karen

Next: Thomas Gummerer
Message 1 of 3 in “git worktree add prints to stdout”
  1. Karen ArutyunovAug 5, 2018
  2. Thomas GummererAug 5, 2018
  3. Jonathan NiederAug 5, 2018

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.