Lines Matching defs:file_path
36 def get_origin_path(file_path):
38 paths = file_path.split("/")
45 def get_latest_commit_from(file_path, commit):
47 command = f"git log --pretty=format:%H%n%aD%n%cD%n%n%B {commit} -1 -- {file_path}"
131 def check_per_file(file_path):
133 opath = get_origin_path(file_path)
136 logging.error("Cannot find the origin path for %s", file_path)
140 t_from_head = get_latest_commit_from(file_path, "HEAD")
143 logging.error("Cannot find the latest commit for %s", file_path)
152 logging.error("Error: Cannot find the latest origin commit for %s", file_path)
156 logging.debug("No update needed for %s", file_path)
158 logging.info(file_path)