MCPcopy Index your code
hub / github.com/git/git / free_worktree

Function free_worktree

worktree.c:18–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16#include "config.h"
17
18void free_worktree(struct worktree *worktree)
19{
20 if (!worktree)
21 return;
22 free(worktree->path);
23 free(worktree->id);
24 free(worktree->head_ref);
25 free(worktree->lock_reason);
26 free(worktree->prune_reason);
27 free(worktree);
28}
29
30void free_worktrees(struct worktree **worktrees)
31{

Callers 3

free_worktreesFunction · 0.85
wt_status_get_stateFunction · 0.85
add_worktreeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected