diff options
author | Jeff King <peff@peff.net> | 2013-04-02 11:40:31 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-04-02 21:41:42 +0400 |
commit | 2e433b7895798d2936d9708da9f99bd190cd39fc (patch) | |
tree | 389f0c179ea6005cf23798c630093cf002ec1e7c /remote.h | |
parent | 2ead7a674d7f1c0b2b47bdd567755a741f86c255 (diff) |
t5516 (fetch-push): drop implicit arguments from helper functions
Many of the tests in t5516 look like:
mk_empty &&
git push testrepo ... &&
check_push_result $commit heads/master
It's reasonably easy to see what is being tested, with the
exception that "testrepo" is a magic global name (it is
implicitly used in the helpers, but we have to name it
explicitly when calling git directly). Let's make it
explicit when call the helpers, too. This is slightly more
typing, but makes the test snippets read more naturally.
It also makes it easy for future tests to use an alternate
or multiple repositories, without a proliferation of helper
functions.
[rr: fixed sloppy quoting]
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote.h')
0 files changed, 0 insertions, 0 deletions