Download raw body.
change got_worktree_init, open_worktree to use fds
On Wed, Dec 09, 2020 at 11:35:08AM -0800, Yang Zhong wrote: > Attached are the changes exactly as you've described. The amount of > code-changing required does decrease drastically if we move cap_enter() > after opening the repo and worktree. I suppose the 'secondary benefits' > of using fds are not relevant in got_worktree_init and _open's case, so > this is all agreeable to me. Thanks! OK stsp One very small thing (can be fixed later if you prefer): > +done: > + if (relpath) > + free(relpath); No need to check relpath for NULL because free(NULL) is just fine.
change got_worktree_init, open_worktree to use fds