From b5abc71444989f184795a7d72615bc18cc54ece4 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sun, 26 Jun 2022 10:38:43 +0530 Subject: git: Optionally accept repository argument in git-tracked-files. While making the repository argument mandatory makes git-tracked-files more of a pure function, users would still prefer to implicitly refer to the current repository in their tissue.scm configuration files. * tissue/git.scm (git-tracked-files): Make repository argument optional. --- tissue/git.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tissue/git.scm b/tissue/git.scm index fcfc6c7..67e1695 100644 --- a/tissue/git.scm +++ b/tissue/git.scm @@ -194,7 +194,7 @@ repository." (commit-time commit)) (* 60 (commit-time-offset commit)))) -(define (git-tracked-files repository) +(define* (git-tracked-files #:optional (repository (current-git-repository))) "Return a list of all files tracked in REPOSITORY. The returned filenames are relative to the top-level directory of REPOSITORY and do not have a leading slash." -- cgit v1.2.3