Show full PKGBUILD if a commit id is not found

If a git commit id is not found in a PKGBUILD repository, show the full
PKGBUILD instead of trying to show a git diff.

Fixes #5
This commit is contained in:
Kivi Kaitaniemi committed 2024-07-28 11:10:46 +03:00
1 parent 483bf0d676
commit 5fe7df23db
3 files changed
+17 -1

No files matched your search

+3
View File
@@ -230,6 +230,9 @@ class MyCommands(decman.config.Commands):
def git_get_commit_id(self) -> list[str]:
return ["git", "rev-parse", "HEAD"]
def git_log_commit_ids(self) -> list[str]:
return ["git", "log", "--format=format:%H"]
def review_file(self, file: str) -> list[str]:
return ["less", file]