From 9ab97cc75c9e52ab0117f41d6cf495f06c612977 Mon Sep 17 00:00:00 2001 From: Lance Chen Date: Mon, 7 Apr 2014 02:54:35 +0800 Subject: [PATCH] Remove redundant code in parse_commits There are two reasons for removing these lines of code 1. There are no push methods for strings (author_line/committer_line) 2. git does not support multiple authors/committers Signed-off-by: Lance Chen --- src/commit.coffee | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/commit.coffee b/src/commit.coffee index 1550abe..510d099 100644 --- a/src/commit.coffee +++ b/src/commit.coffee @@ -71,13 +71,9 @@ module.exports = class Commit parents.push _.last lines.shift().split(" ") author_line = lines.shift() - if !/^committer /.test(lines[0]) - author_line.push lines.shift() [author, authored_date] = @actor author_line committer_line = lines.shift() - if lines[0] && !/(^encoding|^gpgsig)/.test(lines[0]) - committer_line.push lines.shift() [committer, committed_date] = @actor committer_line gpgsig = []