{"thread":{"id":"49040","subject":"git worktree add prints to stdout","startedAt":"2018-08-05T13:01:17Z","lastAt":"2018-08-05T22:46:48Z","messageCount":3,"participants":["Karen Arutyunov","Thomas Gummerer","Jonathan Nieder"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"354547","messageId":"631ae70d-9b5f-613d-5b6f-5064d548a894@codesynthesis.com","threadId":"49040","inReplyTo":null,"subject":"git worktree add prints to stdout","fromName":"Karen Arutyunov","fromEmail":"karen@codesynthesis.com","sentAt":"2018-08-05T13:01:12Z","receivedAt":"2018-08-05T13:01:17Z","isPatch":false,"sender":{"key":"karen@codesynthesis.com","avatar":null},"body":"Hello,\n\nThe 'git worktree add' command prints to both standard streams. So in \nthe following example the first line is printed to stderr and the second \nto stdout.\n\n$ git worktree add ../pub build2-control\nPreparing ../pub (identifier pub)\nHEAD is now at b03ea86 Update\n\nThis looks like a bug, as, for example, the checkout command prints \n'HEAD is now at...' message to stderr.\n\nBest regards,\nKaren\n"},{"id":"354550","messageId":"20180805145254.GF2734@hank.intra.tgummerer.com","threadId":"49040","inReplyTo":"631ae70d-9b5f-613d-5b6f-5064d548a894@codesynthesis.com","subject":"Re: git worktree add prints to stdout","fromName":"Thomas Gummerer","fromEmail":"t.gummerer@gmail.com","sentAt":"2018-08-05T14:52:54Z","receivedAt":"2018-08-05T14:52:59Z","isPatch":false,"sender":{"key":"t.gummerer@gmail.com","avatar":"https://avatars.githubusercontent.com/u/191004?v=4"},"body":"On 08/05, Karen Arutyunov wrote:\n> Hello,\n> \n> The 'git worktree add' command prints to both standard streams. So in the\n> following example the first line is printed to stderr and the second to\n> stdout.\n\ngit 2.18.0 should print both of those lines to stdout.  This was done\nto match where 'git reset --hard' prints the 'HEAD is now at...'\nmessage. See also the thread at [1] where we did make that decision.\n\n[1]: https://public-inbox.org/git/CAPig+cQ8VzDycUMo-QOexNDBgQGEGj2BPmPa-Y0vhGCt_brbhg@mail.gmail.com/\n\n> $ git worktree add ../pub build2-control\n> Preparing ../pub (identifier pub)\n> HEAD is now at b03ea86 Update\n> \n> This looks like a bug, as, for example, the checkout command prints 'HEAD is\n> now at...' message to stderr.\n\nI think eventually it would be nice to write all those messages to\n'stderr', as I think they do make more sense there.  I said I may do\nthat at some point in [2], but never got around to it yet.  If you\nwant to take a stab at it, feel free :)\n\n[2]: https://public-inbox.org/git/xmqq604rzytx.fsf@gitster-ct.c.googlers.com/\n\n> Best regards,\n> Karen\n"},{"id":"354580","messageId":"20180805224536.GA208811@aiede.svl.corp.google.com","threadId":"49040","inReplyTo":"20180805145254.GF2734@hank.intra.tgummerer.com","subject":"Re: git worktree add prints to stdout","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2018-08-05T22:45:36Z","receivedAt":"2018-08-05T22:46:48Z","isPatch":false,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"Hi,\n\nThomas Gummerer wrote:\n\n> git 2.18.0 should print both of those lines to stdout.  This was done\n> to match where 'git reset --hard' prints the 'HEAD is now at...'\n> message. See also the thread at [1] where we did make that decision.\n>\n> [1]: https://public-inbox.org/git/CAPig+cQ8VzDycUMo-QOexNDBgQGEGj2BPmPa-Y0vhGCt_brbhg@mail.gmail.com/\n\nThanks for the pointer!  And especially:\n\n[...]\n> I think eventually it would be nice to write all those messages to\n> 'stderr', as I think they do make more sense there.  I said I may do\n> that at some point in [2], but never got around to it yet.  If you\n> want to take a stab at it, feel free :)\n>\n> [2]: https://public-inbox.org/git/xmqq604rzytx.fsf@gitster-ct.c.googlers.com/\n\nThanks for this pointer, which captures my feelings pretty well.\n\nJonathan\n"}]}