From 5ec9a8c214159e9dfef0cf44669d563d55e29cd3 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sun, 10 Jul 2016 21:42:42 +0000 Subject: add rule ".". if a repo has a rule set to ".", then all files will be staged and committed. * README.org (rules): add new rule ".". (config): update example config to illustrate the "." rule. * git-difme.scm (build-stage-regex): accommodate new rule ".". --- git-difme.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'git-difme.scm') diff --git a/git-difme.scm b/git-difme.scm index 9226c14..301fa54 100644 --- a/git-difme.scm +++ b/git-difme.scm @@ -130,7 +130,8 @@ the commit message will be in the following format: (define (build-stage-regex rules) "build stage regex based on RULES." (let ((regex "^")) - (cond ((null? rules) (string-append regex ".")) + (cond ((null? rules) (string-append regex "$")) + ((member "." rules) ".") (else (string-append regex "[" (string-concatenate rules) "]"))))) -- cgit v1.2.3