Re: [PATCH v2 2/4] libgit: Expose more worktree functionality.

2019-10-20 Thread Junio C Hamano
Peter Jones writes: Same comment on the commit title as 1/4; also, we tend not to upcase the first word after the : word and omit the full-stop on the title (see "git shortlog -32 --no-merges" on our project for examples). > Add delete_worktrees_dir_if_empty() and prune_worktree() to the public

[PATCH v2 2/4] libgit: Expose more worktree functionality.

2019-10-18 Thread Peter Jones
Add delete_worktrees_dir_if_empty() and prune_worktree() to the public API, so they can be used from more places. Also add a new function, prune_worktree_if_missing(), which prunes unlocked worktrees if they aren't present on the filesystem. Signed-off-by: Peter Jones --- builtin/worktree.c | 7