summaryrefslogtreecommitdiffstats
path: root/git-difme.scm
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2016-07-10 21:42:42 +0000
committerrsiddharth <s@ricketyspace.net>2016-07-10 21:42:42 +0000
commit5ec9a8c214159e9dfef0cf44669d563d55e29cd3 (patch)
tree86a50bc7964dda11892eaef775f805f6e2f0faac /git-difme.scm
parent4517ceb56e30c7e208bb063dc23d77e7c621bf0e (diff)
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 ".".
Diffstat (limited to 'git-difme.scm')
-rw-r--r--git-difme.scm3
1 files changed, 2 insertions, 1 deletions
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) "]")))))