From: Lawrence Siebert <lawrencesiebert@gmail.com>
To: git@vger.kernel.org
Cc: gitster@pobox.com, Lawrence Siebert <lawrencesiebert@gmail.com>
Subject: [PATCH 3/4] log --count: added test
Date: Wed, 1 Jul 2015 22:38:55 -0700 [thread overview]
Message-ID: <1435815536-30611-3-git-send-email-lawrencesiebert@gmail.com> (raw)
In-Reply-To: <1435815536-30611-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 <lawrencesiebert@gmail.com>
---
t/t4202-log.sh | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/t/t4202-log.sh b/t/t4202-log.sh
index 1b2e981..077952b 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
next prev parent reply other threads:[~2015-07-02 5:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-02 5:38 [PATCH 1/4] list-object: add get_commit_count function Lawrence Siebert
2015-07-02 5:38 ` [PATCH 2/4] log: add --count option to git log Lawrence Siebert
2015-07-02 9:14 ` Remi Galan Alfonso
2015-07-02 23:45 ` Lawrence Siebert
2015-07-02 5:38 ` Lawrence Siebert [this message]
2015-07-02 9:09 ` [PATCH 3/4] log --count: added test Remi Galan Alfonso
2015-07-02 5:38 ` [PATCH 4/4] git-log: update man documentation for --count Lawrence Siebert
2015-07-02 9:13 ` [PATCH 1/4] list-object: add get_commit_count function Remi Galan Alfonso
2015-07-03 17:49 ` Junio C Hamano
2015-07-03 18:36 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1435815536-30611-3-git-send-email-lawrencesiebert@gmail.com \
--to=lawrencesiebert@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).