nd/multiple-work-trees reroll
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest34 patches 10 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/34 | path.c: make get_pathname() return strbuf instead of static bufferpath.c | +51 | 0 replies | |
| 2/34 | path.c: make get_pathname() call sites return const char *builtin/ builtin/ builtin/ +12 more | +36 | 0 replies | |
| 3/34 | git_snpath(): retire and replace with strbuf_git_path()builtin/ cache.h path.c +2 more | +55 | 0 replies | |
| 4/34 | path.c: rename vsnpath() to do_git_path()path.c | +4 | 0 replies | |
| 5/34 | path.c: group git_path(), git_pathdup() and strbuf_git_path() togetherpath.c | +10 | 0 replies | |
| 6/34 | git_path(): be aware of file relocation in $GIT_DIRDocumentation/ builtin/ cache.h +3 more | +95 | 0 replies | |
| 7/34 | *.sh: respect $GIT_INDEX_FILEgit-pull.sh git-stash.sh | +2 | 0 replies | |
| 8/34 | reflog: avoid constructing .lock path with git_pathbuiltin/ | +1 | 0 replies | |
| 9/34 | fast-import: use git_path() for accessing .git dir instead of get_git_dir()fast-import.c | +1 | 0 replies | |
| 10/34 | commit: use SEQ_DIR instead of hardcoding "sequencer"builtin/ | +1 | 0 replies | |
| 11/34 | $GIT_COMMON_DIR: a new environment variableDocumentation/ Documentation/ cache.h +3 more | +117 | 0 replies | |
| 12/34 | git-sh-setup.sh: use rev-parse --git-path to get $GIT_DIR/objectsgit-sh-setup.sh | +1 | 0 replies | |
| 13/34 | *.sh: avoid hardcoding $GIT_DIR/hooks/...git-am.sh git-rebase--interactive.sh git-rebase--merge.sh +3 more | +22 | 0 replies | |
| 14/34 | git-stash: avoid hardcoding $GIT_DIR/logs/....git-stash.sh | +2 | 0 replies | |
| 15/34 | setup.c: convert is_git_directory() to use strbufsetup.c | +21 | 0 replies | |
| 16/34 | setup.c: detect $GIT_COMMON_DIR in is_git_directory()Documentation/ setup.c | +44 | 0 replies | |
| 17/34 | setup.c: convert check_repository_format_gently to use strbufsetup.c | +8 | 0 replies | |
| 18/34 | setup.c: detect $GIT_COMMON_DIR check_repository_format_gently()setup.c | +4 | 0 replies | |
| 19/34 | setup.c: support multi-checkout repo setupDocumentation/ Documentation/ builtin/ +6 more | +115 | 0 replies | |
| 20/34 | wrapper.c: wrapper to open a file, fprintf then closecache.h wrapper.c | +33 | 0 replies | |
| 21/34 | use new wrapper write_file() for simple file writingbuiltin/ builtin/ daemon.c +2 more | +8 | 0 replies | |
| 22/34 | checkout: support checking out into a new working directoryDocumentation/ Documentation/ Documentation/ +3 more | +212 | 0 replies | |
| 23/34 | prune: strategies for linked checkoutsDocumentation/ Documentation/ Documentation/ +4 more | +251 | 0 replies | |
| 24/34 | checkout: reject if the branch is already checked out elsewherebuiltin/ t/ | +104 | 10 replies | |
| 25/34 | checkout: clean up half-prepared directories in --to modebuiltin/ t/ | +54 | 0 replies | |
| 26/34 | gc: style change -- no SP before closing parenthesisbuiltin/ | +1 | 0 replies | |
| 27/34 | gc: factor out gc.pruneexpire parsing codebuiltin/ | +12 | 0 replies | |
| 28/34 | gc: support prune --worktreesDocumentation/ Documentation/ builtin/ | +24 | 0 replies | |
| 29/34 | count-objects: report unused files in $GIT_DIR/worktrees/...builtin/ cache.h path.c | +31 | 0 replies | |
| 30/34 | git_path(): keep "info/sparse-checkout" per work-treepath.c t/ | +3 | 0 replies | |
| 31/34 | checkout: don't require a work tree when checking out into a new onebuiltin/ git.c t/ | +19 | 0 replies | |
| 32/34 | t2025: add a test to make sure grafts is working from a linked checkoutt/ | +18 | 0 replies | |
| 33/34 | checkout: do not fail if target is an empty directorybuiltin/ t/ | +7 | 0 replies | |
| 34/34 | git-common-dir: make "modules/" per-working-directory directoryDocumentation/ path.c t/ | +52 | 0 replies |
Reviews trailers per patch
None of the 34 patches has a Reviewed-by or Acked-by.
| Patch | Jens Lehmann | Johannes Sixt | Marc Branchaud | Eric Sunshine |
|---|---|---|---|---|
| 1/34 | ||||
| 2/34 | ||||
| 3/34 | ||||
| 4/34 | ||||
| 5/34 | ||||
| 6/34 | ||||
| 7/34 | ||||
| 8/34 | ||||
| 9/34 | ||||
| 10/34 | ||||
| 11/34 | Helped-by | |||
| 12/34 | ||||
| 13/34 | ||||
| 14/34 | ||||
| 15/34 | ||||
| 16/34 | ||||
| 17/34 | ||||
| 18/34 | ||||
| 19/34 | Helped-by | |||
| 20/34 | ||||
| 21/34 | ||||
| 22/34 | Helped-by | |||
| 23/34 | Helped-by | Helped-by | Helped-by | |
| 24/34 | ||||
| 25/34 | ||||
| 26/34 | ||||
| 27/34 | ||||
| 28/34 | Helped-by | |||
| 29/34 | ||||
| 30/34 | ||||
| 31/34 | ||||
| 32/34 | ||||
| 33/34 | ||||
| 34/34 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH 00/34] nd/multiple-work-trees reroll
This is rebased so the diff below (against the version on Junio's repo) is only approximate. Changes include test fixes for Windows port, $GIT_COMMON_DIR and $GIT_DIR/modules problems with submodules. Patch 03/34 is rewritten to touch less in refs.c to reduce conflicts. A lot of changes there are just revert.
Documentation/gitrepository-layout.txt +1 -3
@@ -248,9 +248,7 @@ commondir:: incomplete without the repository pointed by "commondir". modules:: - Contains the git-repositories of the submodules. This - directory is ignored if $GIT_COMMON_DIR is set and - "$GIT_COMMON_DIR/modules" will be used instead. + Contains the git-repositories of the submodules. worktrees:: Contains worktree specific information of linked
builtin/checkout.c +2 -2
@@ -865,7 +865,7 @@ static int prepare_linked_checkout(const struct checkout_opts *opts,if (!new->commit)die (_ ("no branch specified" )); -if (file_exists (path)) +if (file_exists (path) && !is_empty_dir (path))die (_ ("'%s' already exists" ), path); len =strlen (path);
@@ -1207,7 +1207,7 @@ static int parse_branchname_arg(int argc, const char **argv,if (new->path && !force_detach && !*new_branch) {unsigned char sha1[20 ];int flag; -char *head_ref =resolve_refdup ("HEAD" , sha1,0 , &flag); +char *head_ref =resolve_refdup ("HEAD" ,0 , sha1, &flag);if (head_ref && (!(flag &REF_ISSYMREF ) ||strcmp (head_ref, new->path)))check_linked_checkouts (new);
environment.c +1 -0
@@ -101,6 +101,7 @@ const char * const local_repo_env[] = {NO_REPLACE_OBJECTS_ENVIRONMENT ,GIT_PREFIX_ENVIRONMENT ,GIT_SHALLOW_FILE_ENVIRONMENT , +GIT_COMMON_DIR_ENVIRONMENT , NULL };
path.c +1 -1
@@ -92,7 +92,7 @@ static void replace_dir(struct strbuf *buf, int len, const char *newdir) }static const char *common_list[] = { -"/branches" ,"/hooks" ,"/info" ,"!/logs" ,"/lost-found" ,"/modules" , +"/branches" ,"/hooks" ,"/info" ,"!/logs" ,"/lost-found" ,"/objects" ,"/refs" ,"/remotes" ,"/worktrees" ,"/rr-cache" ,"/svn" ,"config" ,"!gc.pid" ,"packed-refs" ,"shallow" ,NULL
refs.c +61 -47
245 lines not on this page · raw message
t/t1501-worktree.sh +1 -1
@@ -366,7 +366,7 @@ test_expect_success 'GIT_DIR set (1)' ' test_expect_success 'GIT_DIR set (2)' ' echo "gitdir: repo.git/repos/foo" >gitfile && - echo "$TRASH_DIRECTORY/repo.git" >repo.git/repos/foo/commondir && + echo "$(pwd)/repo.git" >repo.git/repos/foo/commondir && ( cd work && GIT_DIR=../gitfile git rev-parse --git-common-dir >actual &&
t/t2025-checkout-to.sh +6 -1
@@ -13,10 +13,15 @@ test_expect_success 'checkout --to not updating paths' ' ' test_expect_success 'checkout --to an existing worktree' ' - mkdir existing && + mkdir -p existing/subtree && test_must_fail git checkout --detach --to existing master ' +test_expect_success 'checkout --to an existing empty worktree' ' + mkdir existing_empty && + git checkout --detach --to existing_empty master +' + test_expect_success 'checkout --to refuses to checkout locked branch' ' test_must_fail git checkout --to zere master && ! test -d zere &&
t/t2026-prune-linked-checkouts.sh +2 -2
@@ -57,7 +57,7 @@ test_expect_success 'prune directories with invalid gitdir' ' test_expect_success 'prune directories with gitdir pointing to nowhere' ' mkdir -p .git/worktrees/def/abc && : >.git/worktrees/def/def && - echo "$TRASH_DIRECTORY"/nowhere >.git/worktrees/def/gitdir && + echo "$(pwd)"/nowhere >.git/worktrees/def/gitdir && git prune --worktrees --verbose >actual && test_i18ngrep "Removing worktrees/def: gitdir file points to non-existent location" actual && ! test -d .git/worktrees/def &&
@@ -76,7 +76,7 @@ test_expect_success 'not prune recent checkouts' ' test_when_finished rm -r .git/worktrees mkdir zz && mkdir -p .git/worktrees/jlm && - echo "$TRASH_DIRECTORY"/zz >.git/worktrees/jlm/gitdir && + echo "$(pwd)"/zz >.git/worktrees/jlm/gitdir && git prune --worktrees --verbose --expire=2.days.ago && test -d .git/worktrees/jlm '
t/t7410-submodule-checkout-to.sh new file +50 -0
50 lines not on this page · raw message