[codeface] [PATCH 2/7] Use half-close interval to get commits in a date range

  • From: Mitchell Joblin <joblin.m@xxxxxxxxx>
  • To: codeface@xxxxxxxxxxxxx
  • Date: Fri, 17 Oct 2014 21:10:50 +0200

- using a closed interval causes overlap between consecutive
  ranges

Signed-off-by: Mitchell Joblin <mitchell.joblin.ext@xxxxxxxxxxx>
---
 codeface/VCS.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/codeface/VCS.py b/codeface/VCS.py
index da95dbf..b123f99 100644
--- a/codeface/VCS.py
+++ b/codeface/VCS.py
@@ -277,7 +277,7 @@ class gitVCS (VCS):
         if self.range_by_date:
             start_date = self._getRevDate(rev_start)
             end_date = self._getRevDate(rev_end)
-            rev_range = '--since={0} --until={1}'.format(start_date, end_date)
+            rev_range = '--since={0} --before={1}'.format(start_date, end_date)
 
         else:
             rev_range = '{0}..{1}'.format(rev_start, rev_end)
-- 
2.1.0


Other related posts: