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

[PATCH] worktree: include repair cmd in usage

From
DGDes Preston via GitGitGadget <gitgitgadget@gmail.com>
Date
Mar 25, 2022, 18:05 UTC
Message-ID
<pull.1188.git.1648231504463.gitgitgadget@gmail.com>
From: Des Preston <despreston@gmail.com>

The worktree repair command was not added to the usage menu for the worktree command. This commit adds the usage of 'worktree repair' according to the existing docs.

Signed-off-by: Des Preston <despreston@gmail.com>
---
    worktree: include repair cmd in usage
    
    I'm working on an extension for the github CLI (github.com/cli/cli) to
    make it easier to create and manage worktrees using Github info
    (github.comm/despreston/gh-worktree). I noticed there was a worktree
    command that wasn't showing up in the usage menu git worktree -h.
    
    Signed-off-by: Des Preston despreston@gmail.com
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1188%2Fdespreston%2Fworktree-usage-repair-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1188/despreston/worktree-usage-repair-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/1188
 builtin/worktree.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/builtin/worktree.c b/builtin/worktree.c
index 2838254f7f2..8682ff4c417 100644
--- a/builtin/worktree.c
+++ b/builtin/worktree.c
@@ -22,6 +22,7 @@ static const char * const worktree_usage[] = {
 	N_("git worktree move <worktree> <new-path>"),
 	N_("git worktree prune [<options>]"),
 	N_("git worktree remove [<options>] <worktree>"),
+	N_("git worktree repair [<path>]"),
 	N_("git worktree unlock <path>"),
 	NULL
 };

base-commit: 4c53a8c20f8984adb226293a3ffd7b88c3f4ac1a
-- 
gitgitgadget
Next: Eric Sunshine
Message 1 of 9 in “worktree: include repair cmd in usage”
  1. worktree: include repair cmd in usageDes Preston via GitGitGadget, Mar 25, 2022
  2. Eric SunshineMar 25, 2022
  3. 0/2 worktree: include repair cmd in usageDes Preston via GitGitGadget, Mar 28, 2022
  4. 2/2 worktree: accept multiple pathsDes Preston via GitGitGadget, Mar 28, 2022
  5. Junio C HamanoMar 29, 2022
  6. Desmond PrestonMar 29, 2022
  7. Junio C HamanoMar 29, 2022
  8. Eric SunshineMar 29, 2022
  9. 1/2 worktree: include repair cmd in usageDes Preston via GitGitGadget, Mar 28, 2022

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.