MCPcopy Create free account
hub / github.com/git/git / odb_source_files_reparent

Function odb_source_files_reparent

odb/source-files.c:15–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#include "write-or-die.h"
14
15static void odb_source_files_reparent(const char *name UNUSED,
16 const char *old_cwd,
17 const char *new_cwd,
18 void *cb_data)
19{
20 struct odb_source_files *files = cb_data;
21 char *path = reparent_relative_path(old_cwd, new_cwd,
22 files->base.path);
23 free(files->base.path);
24 files->base.path = path;
25}
26
27static void odb_source_files_free(struct odb_source *source)
28{

Callers

nothing calls this directly

Calls 1

reparent_relative_pathFunction · 0.85

Tested by

no test coverage detected