Name |
Last commit
|
Last update |
---|---|---|
.. | ||
config.c | ||
merge.c | ||
open.c | ||
reflog.c | ||
refs.c | ||
repository.c | ||
submodule.c | ||
worktree.c | ||
worktree_helpers.c | ||
worktree_helpers.h |
Currently, we always create a new branch after the new worktree's name when creating a worktree. In some workflows, though, the caller may want to check out an already existing reference instead of creating a new one, which is impossible to do right now. Add a new option `ref` to the options structure for adding worktrees. In case it is set, a branch and not already checked out by another worktree, we will re-use this reference instead of creating a new one.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
config.c | Loading commit data... | |
merge.c | Loading commit data... | |
open.c | Loading commit data... | |
reflog.c | Loading commit data... | |
refs.c | Loading commit data... | |
repository.c | Loading commit data... | |
submodule.c | Loading commit data... | |
worktree.c | Loading commit data... | |
worktree_helpers.c | Loading commit data... | |
worktree_helpers.h | Loading commit data... |