{"thread":{"id":"12343","subject":"[PATCH 0/9] More on worktree fixes","startedAt":"2008-02-27T16:37:52Z","lastAt":"2008-02-27T16:37:52Z","messageCount":1,"participants":["Nguyễn Thái Ngọc Duy"],"isPatch":true,"patchVersion":1,"patchTotal":9},"messages":[{"id":"70089","messageId":"20080227163752.GA27998@laptop","threadId":"12343","inReplyTo":null,"subject":"[PATCH 0/9] More on worktree fixes","fromName":"Nguyễn Thái Ngọc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2008-02-27T16:37:52Z","receivedAt":"2008-02-27T16:37:52Z","isPatch":true,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"This series cleans up setup.c and makes git handle worktree better.\nThe series deprecates my patch \"Move worktree setup out of...\"\nMain points:\n\n - get_git_dir() is now always absolute path.\n\n - setup_git_directory_gently() will no longer do\n   any worktree setup. If you want worktree with\n   setup_git_directory_gently(), call setup_work_tree().\n\n - setup_git_directory() will still setup worktree if found. The\n   behavior is a bit more consistent as it will setup worktree no\n   matter where it comes from. GIT_WORK_TREE, core.worktree or\n   autodetection are treated the same.\n\n - Document setup api along the way.\n\n\"make test\" was run on each patch. Hopefully the series won't break\nanything. Tests will come later, my brain has been overheated.\n\nRemaining problems I'm aware of:\n\n - prefix when running a command from outside worktree (currently NULL)\n - cmd_update_index() needs setup_work_tree()\n\nNguyễn Thái Ngọc Duy (9):\n      \"git read-tree -m\" and the like require worktree\n      Make sure setup_git_directory is called before accessing repository\n      Make get_git_dir() and 'git rev-parse --git-dir' absolute path\n      Make setup_work_tree() return new prefix\n      http-push: Avoid calling setup_git_directory() twice\n      Completely move out worktree setup from setup_git_directory_gently()\n      builtin-archive: mark unused prefix \"unused_prefix\"\n      Make setup_git_directory() auto-setup worktree if found\n      Documentation: update api-builtin and api-setup\n\n Documentation/technical/api-builtin.txt |   10 +++\n Documentation/technical/api-setup.txt   |   70 +++++++++++++++++--\n builtin-apply.c                         |    7 ++-\n builtin-archive.c                       |    6 +-\n builtin-blame.c                         |    4 +-\n builtin-bundle.c                        |    9 +--\n builtin-config.c                        |   15 ++---\n builtin-diff-files.c                    |   12 ++--\n builtin-diff.c                          |   13 ++--\n builtin-ls-files.c                      |   10 ++--\n builtin-read-tree.c                     |    3 +\n builtin-rev-parse.c                     |   23 ++----\n builtin-rm.c                            |    5 +-\n builtin-upload-archive.c                |    4 +-\n cache.h                                 |    4 +-\n environment.c                           |    1 +\n fast-import.c                           |    1 +\n git.c                                   |    8 +--\n hash-object.c                           |   14 +---\n http-push.c                             |    4 +-\n index-pack.c                            |    2 +\n setup.c                                 |  114 +++++++++++-------------------\n t/t1300-repo-config.sh                  |    2 +-\n t/t1400-update-ref.sh                   |    4 +-\n t/t9300-fast-import.sh                  |    2 +-\n 25 files changed, 184 insertions(+), 163 deletions(-)\n"}]}