MCPcopy Create free account
hub / github.com/ElementsProject/elements / call_git_toplevel

Function call_git_toplevel

contrib/devtools/copyright_header.py:63–65  ·  view source on GitHub ↗

Returns the absolute path to the project root

()

Source from the content-addressed store, hash-verified

61 return [f for f in out.decode("utf-8").split('\n') if f != '']
62
63def call_git_toplevel():
64 "Returns the absolute path to the project root"
65 return subprocess.check_output(GIT_TOPLEVEL_CMD).strip().decode("utf-8")
66
67def get_filenames_to_examine(base_directory):
68 "Returns an array of absolute paths to any project files in the base_directory that pass the include/exclude filters"

Callers 1

get_filenames_to_examineFunction · 0.85

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected