]> git.ipfire.org Git - thirdparty/git.git/commit - t/t3903-stash.sh
t: make many tests depend less on the refs being files
authorDavid Turner <dturner@twopensource.com>
Wed, 23 May 2018 05:25:17 +0000 (07:25 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 May 2018 05:59:38 +0000 (14:59 +0900)
commitcbc5cf7ce5112a5c704ce4116b8414c8385d23ca
tree01ecfdcf4ae14e2a26e6c20f5de5621957447abe
parent468165c1d8a442994a825f3684528361727cd8c0
t: make many tests depend less on the refs being files

Many tests are very focused on the file system representation of the
loose and packed refs code. As there are plans to implement other
ref storage systems, let's migrate these tests to a form that test
the intent of the refs storage system instead of it internals.

This will make clear to readers that these tests do not depend on
which ref backend is used.

The internals of the loose refs backend are still tested in
t1400-update-ref.sh, whereas the tests changed in this patch focus
on testing other aspects.

This patch just takes care of many low hanging fruits. It does not
try to completely solves the issue.

Helped-by: Stefan Beller <sbeller@google.com>
Helped-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: David Turner <dturner@twopensource.com>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-t6000.sh
t/t1401-symbolic-ref.sh
t/t3200-branch.sh
t/t3903-stash.sh
t/t5500-fetch-pack.sh
t/t5510-fetch.sh
t/t6010-merge-base.sh
t/t7201-co.sh
t/t9104-git-svn-follow-parent.sh