-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'nd/multiple-work-trees'
"git checkout [<tree-ish>] <paths>" spent unnecessary cycles checking if the current branch was checked out elsewhere, when we know we are not switching the branches ourselves. * nd/multiple-work-trees: worktree: new place for "git prune --worktrees" checkout: don't check worktrees when not necessary
- Loading branch information
Showing
13 changed files
with
217 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
git-worktree(1) | ||
=============== | ||
|
||
NAME | ||
---- | ||
git-worktree - Manage multiple worktrees | ||
|
||
|
||
SYNOPSIS | ||
-------- | ||
[verse] | ||
'git worktree prune' [-n] [-v] [--expire <expire>] | ||
|
||
DESCRIPTION | ||
----------- | ||
|
||
Manage multiple worktrees attached to the same repository. These are | ||
created by the command `git checkout --to`. | ||
|
||
COMMANDS | ||
-------- | ||
prune:: | ||
|
||
Prune working tree information in $GIT_DIR/worktrees. | ||
|
||
OPTIONS | ||
------- | ||
|
||
-n:: | ||
--dry-run:: | ||
Do not remove anything; just report what it would | ||
remove. | ||
|
||
-v:: | ||
--verbose:: | ||
Report all removals. | ||
|
||
--expire <time>:: | ||
Only expire unused worktrees older than <time>. | ||
|
||
SEE ALSO | ||
-------- | ||
|
||
linkgit:git-checkout[1] | ||
|
||
GIT | ||
--- | ||
Part of the linkgit:git[1] suite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.