Skip to content

worktree: fix incorrectly-ordered messages on Windows

Eric Sunshine git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2worktree: send "chatty" messages to stderrbuiltin/worktree.c t/t2401-worktree-prune.sh t/t2402-worktree-list.sh +1 more+27 -332 replies
2/2git-worktree.txt: add missing `-v` to synopsis for `worktree list`Documentation/git-worktree.txt+1 -19 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] worktree: fix incorrectly-ordered messages on Windows

This patch series fixes a problem in which a chatty "Preparing worktree" message and a subsequent fatal error message appear in the wrong order on Microsoft Windows, which may confuse readers into thinking that the operation somehow succeeded despite the error.

Unlike the original RFC attempt[*] to fix this problem at a low level in a generalized fashion, patch [1/2] localizes the fix to git-worktree itself by making it conform to common Git practice of issuing chatty messages to stderr rather than to stdout as is currently the case.

Patch [2/2] is just a drive-by fix for a minor documentation problem I noticed along the way.

[*]: https://lore.kernel.org/git/[email protected]/

Eric Sunshine (2):
worktree: send "chatty" messages to stderr git-worktree.txt: add missing -v to synopsis for worktree list

 Documentation/git-worktree.txt |  2 +-
 builtin/worktree.c             | 14 +++++++-------
 t/t2401-worktree-prune.sh      | 14 +++++++-------
 t/t2402-worktree-list.sh       |  2 +-
 t/t2406-worktree-repair.sh     | 30 ++++++++++++------------------
 5 files changed, 28 insertions(+), 34 deletions(-)
Signature · 1 line
2.34.1.173.g76aa8bc2d0