summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2022-06-26 10:38:43 +0530
committerArun Isaac2022-06-27 00:19:49 +0530
commitb5abc71444989f184795a7d72615bc18cc54ece4 (patch)
tree29d96f6991a4ddf3b5e08ec74f22d5ce05787ecb
parent650642b4cf43b4390c1332c930124eda88ea4109 (diff)
downloadtissue-b5abc71444989f184795a7d72615bc18cc54ece4.tar.gz
tissue-b5abc71444989f184795a7d72615bc18cc54ece4.tar.lz
tissue-b5abc71444989f184795a7d72615bc18cc54ece4.zip
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.
-rw-r--r--tissue/git.scm2
1 files changed, 1 insertions, 1 deletions
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."