mirror of
https://github.com/kiviktnm/decman.git
synced 2026-09-19 12:08:28 +00:00
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:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user