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

Function call_git_ls

contrib/devtools/copyright_header.py:59–61  ·  view source on GitHub ↗
(base_directory)

Source from the content-addressed store, hash-verified

57GIT_TOPLEVEL_CMD = 'git rev-parse --show-toplevel'.split(' ')
58
59def call_git_ls(base_directory):
60 out = subprocess.check_output([*GIT_LS_CMD, base_directory])
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"

Callers 1

get_filenames_to_examineFunction · 0.85

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected