From: Lawrence Siebert Date: Thu, 02 Jul 2015 23:50:10 GMT Subject: [PATCH v2 3/4] log --count: added test Message-ID: <1435881011-13879-4-git-send-email-lawrencesiebert@gmail.com> In-Reply-To: <1435881011-13879-1-git-send-email-lawrencesiebert@gmail.com> added test comparing output between git log --count HEAD and git rev-list --count HEAD Signed-off-by: Lawrence Siebert --- t/t4202-log.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/t/t4202-log.sh b/t/t4202-log.sh index 1b2e981..35f8d82 100755 --- a/t/t4202-log.sh +++ b/t/t4202-log.sh @@ -871,4 +871,11 @@ test_expect_success 'log --graph --no-walk is forbidden' ' test_must_fail git log --graph --no-walk ' +test_expect_success 'log --count' ' + git log --count HEAD > actual && + git rev-list --count HEAD > expect && + test_cmp expect actual +' + + test_done -- 1.9.1