Lines Matching full:commit

7 commit to find the latest english commit from the translation commit
22 commit 42fb9cfd5b18 ("Documentation: dev-tools: Add link to RV docs")
43 def get_latest_commit_from(file_path, commit): argument
44 """Get the latest commit from the specified commit for the specified file"""
45 command = f"git log --pretty=format:%H%n%aD%n%cD%n%n%B {commit} -1 -- {file_path}"
64 """Get the latest origin commit from the translation commit"""
69 logging.debug("tracked origin commit id: %s", o_from_t["hash"])
74 """Get the latest origin commit from the formatted translation commit:
75 (1) update to commit HASH (TITLE)
76 (2) Update the translation through commit HASH (TITLE)
78 # catch flag for 12-bit commit hash
80 # pattern 1: contains "update to commit HASH"
81 pat_update_to = re.compile(rf'update to commit {HASH}')
82 # pattern 2: contains "Update the translation through commit HASH"
83 pat_update_translation = re.compile(rf'Update the translation through commit {HASH}')
101 logging.debug("tracked origin commit id: %s", o_from_t["hash"])
116 def pretty_output(commit): argument
117 """Pretty print the commit message"""
118 command = f"git log --pretty='format:%h (\"%s\")' -1 {commit}"
124 def valid_commit(commit): argument
125 """Check if the commit is valid or not"""
126 msg = pretty_output(commit)
141 logging.error("Cannot find the latest commit for %s", file_path)
150 logging.error("Error: Cannot find the latest origin commit for %s", file_path)
161 for commit in commits:
162 if valid_commit(commit):
163 logging.info("commit %s", pretty_output(commit))