Skip to content

Commit

Permalink
Git Tool: Add am
Browse files Browse the repository at this point in the history
Add method am to apply patches download by B4
  • Loading branch information
adityagesh committed Nov 12, 2024
1 parent 681f5bd commit 912e35f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lisa/tools/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,17 @@ def apply(
)
result.assert_exit_code(message=f"failed on applying patches. {result.stdout}")

def am(self, cwd: pathlib.PurePath, patch: pathlib.PurePath) -> None:
result = self.run(
f"am {patch}",
shell=True,
cwd=cwd,
force_run=True,
no_info_log=True,
no_error_log=True,
)
result.assert_exit_code(message=f"failed on applying patches. {result.stdout}")

def list_tags(self, cwd: pathlib.PurePath) -> List[str]:
result = self.run(
"--no-pager tag --color=never",
Expand Down

0 comments on commit 912e35f

Please sign in to comment.