From: Ramkumar Ramachandra <artagnon@gmail.com>
To: Git List <git@vger.kernel.org>
Cc: Junio C Hamano <gitster@pobox.com>
Subject: [PATCH 2/3] t5521 (pull-options): use test_commit() where appropriate
Date: Sun, 14 Apr 2013 02:45:28 +0530 [thread overview]
Message-ID: <1365887729-9630-3-git-send-email-artagnon@gmail.com> (raw)
In-Reply-To: <1365887729-9630-1-git-send-email-artagnon@gmail.com>
test_commit() is a well-defined function in test-lib-functions.sh that
allows you to create commits with a terse syntax. Prefer using it
over creating commits by hand.
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
---
t/t5521-pull-options.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/t/t5521-pull-options.sh b/t/t5521-pull-options.sh
index aa31abe..3bdfe82 100755
--- a/t/t5521-pull-options.sh
+++ b/t/t5521-pull-options.sh
@@ -7,8 +7,8 @@ test_description='pull options'
test_expect_success 'setup' '
mkdir parent &&
(cd parent && git init &&
- echo one >file && git add file &&
- git commit -m one)
+ test_commit "one" file "one"
+ )
'
test_expect_success 'git pull -q' '
--
1.8.2.1.392.g6943ea6
next prev parent reply other threads:[~2013-04-13 21:16 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-13 21:15 [PATCH v2 0/3] Introduce pull.autostash Ramkumar Ramachandra
2013-04-13 21:15 ` [PATCH 1/3] pull: prefer invoking "git <command>" over "git-<command>" Ramkumar Ramachandra
2013-04-14 9:09 ` Philip Oakley
2013-04-13 21:15 ` Ramkumar Ramachandra [this message]
2013-04-13 21:15 ` [PATCH 3/3] pull: introduce --[no-]autostash and pull.autostash Ramkumar Ramachandra
2013-04-15 5:47 ` Junio C Hamano
2013-04-15 12:31 ` Ramkumar Ramachandra
2013-04-15 15:16 ` Junio C Hamano
2013-04-15 16:31 ` Ramkumar Ramachandra
2013-04-15 8:17 ` Matthieu Moy
2013-04-15 9:52 ` Junio C Hamano
2013-04-15 10:58 ` Matthieu Moy
2013-04-15 13:29 ` Ramkumar Ramachandra
2013-04-15 13:45 ` Matthieu Moy
2013-04-15 14:31 ` Ramkumar Ramachandra
2013-04-15 16:17 ` Matthieu Moy
2013-04-15 16:52 ` Ramkumar Ramachandra
2013-04-16 3:09 ` Jonathan Nieder
2013-04-15 13:15 ` Ramkumar Ramachandra
2013-04-15 13:40 ` Matthieu Moy
2013-04-15 13:56 ` Ramkumar Ramachandra
2013-04-15 15:04 ` Ramkumar Ramachandra
2013-04-15 16:13 ` Matthieu Moy
2013-04-15 16:32 ` Junio C Hamano
2013-04-15 16:45 ` Ramkumar Ramachandra
2013-04-15 16:53 ` John Keeping
2013-04-15 17:05 ` Ramkumar Ramachandra
2013-04-16 3:14 ` Jonathan Nieder
2013-04-16 4:55 ` Ramkumar Ramachandra
2013-04-16 5:26 ` Jonathan Nieder
2013-04-15 15:36 ` Junio C Hamano
2013-04-15 16:38 ` Ramkumar Ramachandra
2013-04-15 17:58 ` Junio C Hamano
2013-04-15 18:08 ` Ramkumar Ramachandra
2013-04-15 18:15 ` John Keeping
2013-04-15 22:17 ` Matthieu Moy
2013-04-16 9:20 ` Ramkumar Ramachandra
2013-04-16 9:44 ` Matthieu Moy
2013-04-16 9:55 ` Ramkumar Ramachandra
2013-04-16 10:36 ` Matthieu Moy
2013-04-16 11:22 ` Matthieu Moy
2013-04-16 17:42 ` Junio C Hamano
2013-04-16 16:50 ` Phil Hord
2013-04-16 20:53 ` Ramkumar Ramachandra
-- strict thread matches above, loose matches on Subject: below --
2013-03-22 12:29 [PATCH 0/3] Introduce pull.autostash Ramkumar Ramachandra
2013-03-22 12:29 ` [PATCH 2/3] t5521 (pull-options): use test_commit() where appropriate Ramkumar Ramachandra
2013-03-22 16:51 ` Junio C Hamano
2013-03-23 12:38 ` Ramkumar Ramachandra
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=1365887729-9630-3-git-send-email-artagnon@gmail.com \
--to=artagnon@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).