mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 02:56:17 +00:00
tests: Add "describe" test repository
Built with the following script:
#!/bin/sh
test_tick () {
sleep 10
}
test_tick &&
echo one >file && git add file && git commit -m initial &&
one=$(git rev-parse HEAD) &&
git describe --always HEAD &&
test_tick &&
echo two >file && git add file && git commit -m second &&
two=$(git rev-parse HEAD) &&
test_tick &&
echo three >file && git add file && git commit -m third &&
test_tick &&
echo A >file && git add file && git commit -m A &&
test_tick &&
git tag -a -m A A &&
test_tick &&
echo c >file && git add file && git commit -m c &&
test_tick &&
git tag c &&
git reset --hard $two &&
test_tick &&
echo B >side && git add side && git commit -m B &&
test_tick &&
git tag -a -m B B &&
test_tick &&
git merge -m Merged c &&
merged=$(git rev-parse HEAD) &&
git reset --hard $two &&
test_tick &&
echo D >another && git add another && git commit -m D &&
test_tick &&
git tag -a -m D D &&
test_tick &&
git tag -a -m R R &&
test_tick &&
echo DD >another && git commit -a -m another &&
test_tick &&
git tag e &&
test_tick &&
echo DDD >another && git commit -a -m "yet another" &&
test_tick &&
git merge -m Merged $merged &&
test_tick &&
echo X >file && echo X >side && git add file side &&
git commit -m x
This commit is contained in:
committed by
Carlos Martín Nieto
parent
de1e81aa10
commit
4cc71bb7fb
1
tests/resources/describe/.gitted/HEAD
Normal file
1
tests/resources/describe/.gitted/HEAD
Normal file
@@ -0,0 +1 @@
|
||||
ref: refs/heads/master
|
||||
8
tests/resources/describe/.gitted/config
Normal file
8
tests/resources/describe/.gitted/config
Normal file
@@ -0,0 +1,8 @@
|
||||
[core]
|
||||
repositoryformatversion = 0
|
||||
filemode = false
|
||||
bare = false
|
||||
logallrefupdates = true
|
||||
symlinks = false
|
||||
ignorecase = true
|
||||
hideDotFiles = dotGitOnly
|
||||
BIN
tests/resources/describe/.gitted/index
Normal file
BIN
tests/resources/describe/.gitted/index
Normal file
Binary file not shown.
14
tests/resources/describe/.gitted/logs/HEAD
Normal file
14
tests/resources/describe/.gitted/logs/HEAD
Normal file
@@ -0,0 +1,14 @@
|
||||
0000000000000000000000000000000000000000 108b485d8268ea595df8ffea74f0f4b186577d32 nulltoken <emeric.fermas@gmail.com> 1380209394 +0200 commit (initial): initial
|
||||
108b485d8268ea595df8ffea74f0f4b186577d32 4d6558b8fa764baeb0f19c1e857df91e0eda5a0f nulltoken <emeric.fermas@gmail.com> 1380209404 +0200 commit: second
|
||||
4d6558b8fa764baeb0f19c1e857df91e0eda5a0f b240c0fb88c5a629e00ebc1275fa1f33e364a705 nulltoken <emeric.fermas@gmail.com> 1380209414 +0200 commit: third
|
||||
b240c0fb88c5a629e00ebc1275fa1f33e364a705 81f4b1aac643e6983fab370eae8aefccecbf3a4c nulltoken <emeric.fermas@gmail.com> 1380209425 +0200 commit: A
|
||||
81f4b1aac643e6983fab370eae8aefccecbf3a4c 6126a5f9c57ebc81e64370ec3095184ad92dab1c nulltoken <emeric.fermas@gmail.com> 1380209445 +0200 commit: c
|
||||
6126a5f9c57ebc81e64370ec3095184ad92dab1c 4d6558b8fa764baeb0f19c1e857df91e0eda5a0f nulltoken <emeric.fermas@gmail.com> 1380209455 +0200 reset: moving to 4d6558b8fa764baeb0f19c1e857df91e0eda5a0f
|
||||
4d6558b8fa764baeb0f19c1e857df91e0eda5a0f 31fc9136820b507e938a9c6b88bf2c567a9f6f4b nulltoken <emeric.fermas@gmail.com> 1380209465 +0200 commit: B
|
||||
31fc9136820b507e938a9c6b88bf2c567a9f6f4b ce1c4f8b6120122e23d4442925d98c56c41917d8 nulltoken <emeric.fermas@gmail.com> 1380209486 +0200 merge c: Merge made by the 'recursive' strategy.
|
||||
ce1c4f8b6120122e23d4442925d98c56c41917d8 4d6558b8fa764baeb0f19c1e857df91e0eda5a0f nulltoken <emeric.fermas@gmail.com> 1380209486 +0200 reset: moving to 4d6558b8fa764baeb0f19c1e857df91e0eda5a0f
|
||||
4d6558b8fa764baeb0f19c1e857df91e0eda5a0f 6a12b56088706aa6c39ccd23b7c7ce60f3a0b9a1 nulltoken <emeric.fermas@gmail.com> 1380209496 +0200 commit: D
|
||||
6a12b56088706aa6c39ccd23b7c7ce60f3a0b9a1 1e016431ec7b22dd3e23f3e6f5f68f358f9227cf nulltoken <emeric.fermas@gmail.com> 1380209527 +0200 commit: another
|
||||
1e016431ec7b22dd3e23f3e6f5f68f358f9227cf a9eb02af13df030159e39f70330d5c8a47655691 nulltoken <emeric.fermas@gmail.com> 1380209547 +0200 commit: yet another
|
||||
a9eb02af13df030159e39f70330d5c8a47655691 949b98e208015bfc0e2f573debc34ae2f97a7f0e nulltoken <emeric.fermas@gmail.com> 1380209557 +0200 merge ce1c4f8b6120122e23d4442925d98c56c41917d8: Merge made by the 'recursive' strategy.
|
||||
949b98e208015bfc0e2f573debc34ae2f97a7f0e a6095f816e81f64651595d488badc42399837d6a nulltoken <emeric.fermas@gmail.com> 1380209567 +0200 commit: x
|
||||
14
tests/resources/describe/.gitted/logs/refs/heads/master
Normal file
14
tests/resources/describe/.gitted/logs/refs/heads/master
Normal file
@@ -0,0 +1,14 @@
|
||||
0000000000000000000000000000000000000000 108b485d8268ea595df8ffea74f0f4b186577d32 nulltoken <emeric.fermas@gmail.com> 1380209394 +0200 commit (initial): initial
|
||||
108b485d8268ea595df8ffea74f0f4b186577d32 4d6558b8fa764baeb0f19c1e857df91e0eda5a0f nulltoken <emeric.fermas@gmail.com> 1380209404 +0200 commit: second
|
||||
4d6558b8fa764baeb0f19c1e857df91e0eda5a0f b240c0fb88c5a629e00ebc1275fa1f33e364a705 nulltoken <emeric.fermas@gmail.com> 1380209414 +0200 commit: third
|
||||
b240c0fb88c5a629e00ebc1275fa1f33e364a705 81f4b1aac643e6983fab370eae8aefccecbf3a4c nulltoken <emeric.fermas@gmail.com> 1380209425 +0200 commit: A
|
||||
81f4b1aac643e6983fab370eae8aefccecbf3a4c 6126a5f9c57ebc81e64370ec3095184ad92dab1c nulltoken <emeric.fermas@gmail.com> 1380209445 +0200 commit: c
|
||||
6126a5f9c57ebc81e64370ec3095184ad92dab1c 4d6558b8fa764baeb0f19c1e857df91e0eda5a0f nulltoken <emeric.fermas@gmail.com> 1380209455 +0200 reset: moving to 4d6558b8fa764baeb0f19c1e857df91e0eda5a0f
|
||||
4d6558b8fa764baeb0f19c1e857df91e0eda5a0f 31fc9136820b507e938a9c6b88bf2c567a9f6f4b nulltoken <emeric.fermas@gmail.com> 1380209465 +0200 commit: B
|
||||
31fc9136820b507e938a9c6b88bf2c567a9f6f4b ce1c4f8b6120122e23d4442925d98c56c41917d8 nulltoken <emeric.fermas@gmail.com> 1380209486 +0200 merge c: Merge made by the 'recursive' strategy.
|
||||
ce1c4f8b6120122e23d4442925d98c56c41917d8 4d6558b8fa764baeb0f19c1e857df91e0eda5a0f nulltoken <emeric.fermas@gmail.com> 1380209486 +0200 reset: moving to 4d6558b8fa764baeb0f19c1e857df91e0eda5a0f
|
||||
4d6558b8fa764baeb0f19c1e857df91e0eda5a0f 6a12b56088706aa6c39ccd23b7c7ce60f3a0b9a1 nulltoken <emeric.fermas@gmail.com> 1380209496 +0200 commit: D
|
||||
6a12b56088706aa6c39ccd23b7c7ce60f3a0b9a1 1e016431ec7b22dd3e23f3e6f5f68f358f9227cf nulltoken <emeric.fermas@gmail.com> 1380209527 +0200 commit: another
|
||||
1e016431ec7b22dd3e23f3e6f5f68f358f9227cf a9eb02af13df030159e39f70330d5c8a47655691 nulltoken <emeric.fermas@gmail.com> 1380209547 +0200 commit: yet another
|
||||
a9eb02af13df030159e39f70330d5c8a47655691 949b98e208015bfc0e2f573debc34ae2f97a7f0e nulltoken <emeric.fermas@gmail.com> 1380209557 +0200 merge ce1c4f8b6120122e23d4442925d98c56c41917d8: Merge made by the 'recursive' strategy.
|
||||
949b98e208015bfc0e2f573debc34ae2f97a7f0e a6095f816e81f64651595d488badc42399837d6a nulltoken <emeric.fermas@gmail.com> 1380209567 +0200 commit: x
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
xŒK @]sŠÙ›4¤|c<Co0ŒS‚–Ö .¼½¸yy›÷:eÐ&žŽôîàH›4;Á£#rl#óÝØäÙ³8\-aФUÿ¾ø¨µtÕÇcù3Kƒý³mýxÊ©Ò
|
||||
O«´Jï[®T¶i$WÐ6 Á8kç!¨Ô¢~U<)a
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
x<01>ŽA
|
||||
à »öîAý&1PJ¯òÕgc±fÑÛ×3t÷˜aà…’óÖ¤!ui<15>qdöF/ì´<C3AC>ÑÃzbFLŠBÛEwé¬xsÅѤ†Ò“%<25>0{cb$J„)<29>ir‰F—cæ<63>Ÿm-Uç¾·òÂ!oȨ[jæÏã™yÛ‡Pò]jrʨe´³¼ö¡D§ýdß¹ø¢I>J[QÅhK%
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
x<01>ŽM
|
||||
à »öîAͧQ(¥WñçÙJc,ÖÜ¿ž¡«7¼Øj-ƒ+E—Ñner†´ÌYè9› Xg¬•*’ «†±<>ï8§d´¶Áf¿
|
||||
Ad预Õ[ÊNB yíEfþ¯Öùqîûhoü†Š^â’Ñ«ÿ>žÕ—}‰Þ¹\P‘$~<7E> Ø´óäÀŸ9¯ÒûµGG¬
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1
tests/resources/describe/.gitted/refs/heads/master
Normal file
1
tests/resources/describe/.gitted/refs/heads/master
Normal file
@@ -0,0 +1 @@
|
||||
a6095f816e81f64651595d488badc42399837d6a
|
||||
1
tests/resources/describe/.gitted/refs/tags/A
Normal file
1
tests/resources/describe/.gitted/refs/tags/A
Normal file
@@ -0,0 +1 @@
|
||||
aaddd4f14847e0e323924ec262c2343249a84f8b
|
||||
1
tests/resources/describe/.gitted/refs/tags/B
Normal file
1
tests/resources/describe/.gitted/refs/tags/B
Normal file
@@ -0,0 +1 @@
|
||||
52912fbab0715dec53d43053966e78ad213ba359
|
||||
1
tests/resources/describe/.gitted/refs/tags/D
Normal file
1
tests/resources/describe/.gitted/refs/tags/D
Normal file
@@ -0,0 +1 @@
|
||||
10bd08b099ecb79184c60183f5c94ca915f427ad
|
||||
1
tests/resources/describe/.gitted/refs/tags/R
Normal file
1
tests/resources/describe/.gitted/refs/tags/R
Normal file
@@ -0,0 +1 @@
|
||||
680166b6cd31f76354fee2572618e6b0142d05e6
|
||||
1
tests/resources/describe/.gitted/refs/tags/c
Normal file
1
tests/resources/describe/.gitted/refs/tags/c
Normal file
@@ -0,0 +1 @@
|
||||
6126a5f9c57ebc81e64370ec3095184ad92dab1c
|
||||
1
tests/resources/describe/.gitted/refs/tags/e
Normal file
1
tests/resources/describe/.gitted/refs/tags/e
Normal file
@@ -0,0 +1 @@
|
||||
1e016431ec7b22dd3e23f3e6f5f68f358f9227cf
|
||||
1
tests/resources/describe/another
Normal file
1
tests/resources/describe/another
Normal file
@@ -0,0 +1 @@
|
||||
DDD
|
||||
1
tests/resources/describe/file
Normal file
1
tests/resources/describe/file
Normal file
@@ -0,0 +1 @@
|
||||
X
|
||||
1
tests/resources/describe/side
Normal file
1
tests/resources/describe/side
Normal file
@@ -0,0 +1 @@
|
||||
X
|
||||
Reference in New Issue
Block a user