Changes from v7[1]:
- Reworked history to try to maintain blame from moving functions
from branch.c
- Removed the worktree_list struct (linked list) and instead return
return an array of worktrees. An alternative was also proposed to
include a `next` pointer in the worktree struct. I coded this
option separately (found in my github fork[2]), but ultimately felt
that the array was more managable from a client perspective.
- Removed the `--skip-bare` and `--verbose` command line options for
`worktree list`.
- The default output of the includes all of the details which were
previously only included in verbose output. Sample output:
$git worktree list
/Users/me/code/bare-git-source (bare)
/Users/me/code/worktree-git-from-bare 7ecec52 [master]
/Users/me/code/wt2 8681989 (detached HEAD)
- Added `--porcelain` option to the worktree list command.
$git worktree list --porcelain
worktree /Users/mike/code/bare-git-source
bare
worktree /Users/mike/code/worktree-git-from-bare
branch master
worktree /Users/mike/code/wt2
detached at 8681989
[1]: http://thread.gmane.org/gmane.comp.version-control.git/277335
[2]:
https://github.com/git/git/compare/master...rappazzo:worktree-list/v8/next-entry-in-worktree
Michael Rappazzo (4):
worktree: add top-level worktree.c
worktree: refactor find_linked_symref function
worktree: add functions to get worktree details
worktree: add 'list' command
Documentation/git-worktree.txt | 15 ++-
Makefile | 1 +
branch.c | 79 +-------------
branch.h | 8 --
builtin/notes.c | 1 +
builtin/worktree.c | 78 ++++++++++++++
t/t2027-worktree-list.sh | 86 +++++++++++++++
worktree.c | 238 +++++++++++++++++++++++++++++++++++++++++
worktree.h | 38 +++++++
9 files changed, 457 insertions(+), 87 deletions(-)
create mode 100755 t/t2027-worktree-list.sh
create mode 100644 worktree.c
create mode 100644 worktree.h
--
2.5.0
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html