commit e88d208e6f46e0ecdb19a28cdb55a09983bee0da091069d56e3be6d030bae5c7 from: Stefan Sperling date: Thu Oct 29 20:48:03 2026 UTC rename the function which finds a work tree at or above the given path commit - fbc1345804cc4d1fd2cb6219d2b14ba21761e53ca58676ca4413424ac2af3773 commit + e88d208e6f46e0ecdb19a28cdb55a09983bee0da091069d56e3be6d030bae5c7 blob - 44d23a607be30d6b19277f03d7db5a1c7e34afd10b27db4f95e2d367f6a7dc00 blob + 69dccac832906271d4c6829b2f75d980724effa260cc533acaa8530b8272775f --- lib/worktree_open.c +++ lib/worktree_open.c @@ -280,7 +280,7 @@ done: } static const struct got_error * -worktree_open_flags(struct got_worktree **worktree, const char *path, +find_worktree(struct got_worktree **worktree, const char *path, const char *meta_dir, int flags) { const struct got_error *err = NULL; @@ -344,14 +344,14 @@ const struct got_error * got_worktree_open(struct got_worktree **worktree, const char *path, const char *meta_dir) { - return worktree_open_flags(worktree, path, meta_dir, O_EXLOCK); + return find_worktree(worktree, path, meta_dir, O_EXLOCK); } const struct got_error * got_worktree_open_shared(struct got_worktree **worktree, const char *path, const char *meta_dir) { - return worktree_open_flags(worktree, path, meta_dir, O_SHLOCK); + return find_worktree(worktree, path, meta_dir, O_SHLOCK); } const struct got_error *