MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / get_changed_files

Function get_changed_files

tools/git_tools.py:76–84  ·  view source on GitHub ↗

Return a list of files that are staged for commit and have changed compared to the merge base with the given branch. Only includes modified or added files (excludes deleted files).

(branch)

Source from the content-addressed store, hash-verified

74
75
76def get_changed_files(branch):
77 """
78 Return a list of files that are staged for commit and have changed
79 compared to the merge base with the given branch.
80 Only includes modified or added files (excludes deleted files).
81 """
82 base = get_merge_base(branch)
83 return run(f"git diff --cached --name-only --diff-filter=d {base}",
84 cwd=get_top()).splitlines()
85
86
87def get_all_files():

Callers 4

mainFunction · 0.90
clang_formatFunction · 0.90
yapf_formatFunction · 0.90
mainFunction · 0.90

Calls 3

get_merge_baseFunction · 0.85
get_topFunction · 0.85
runFunction · 0.70

Tested by

no test coverage detected