summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2015-06-29 12:51:18 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-06-29 15:48:44 (GMT)
commitdf0b6cfbda88144714541664fb501146d6465a82 (patch)
tree9acade77a77e010352979754ed9427b0b3ca9f1a /git.c
parente1c1ab9d25864e8de0009f3f3149ec4386a14bf8 (diff)
downloadgit-df0b6cfbda88144714541664fb501146d6465a82.zip
git-df0b6cfbda88144714541664fb501146d6465a82.tar.gz
git-df0b6cfbda88144714541664fb501146d6465a82.tar.bz2
worktree: new place for "git prune --worktrees"
Commit 23af91d (prune: strategies for linked checkouts - 2014-11-30) adds "--worktrees" to "git prune" without realizing that "git prune" is for object database only. This patch moves the same functionality to a new command "git worktree". Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Diffstat (limited to 'git.c')
-rw-r--r--git.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/git.c b/git.c
index 160896a..f227838 100644
--- a/git.c
+++ b/git.c
@@ -484,6 +484,7 @@ static struct cmd_struct commands[] = {
{ "verify-tag", cmd_verify_tag, RUN_SETUP },
{ "version", cmd_version },
{ "whatchanged", cmd_whatchanged, RUN_SETUP },
+ { "worktree", cmd_worktree, RUN_SETUP },
{ "write-tree", cmd_write_tree, RUN_SETUP },
};