mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
tests: generate test resources for reftables
Generate test resources for reftables. These resources are basically the
Git repositories we already have, but converted to use the "reftable"
format. For most of the part, this conversion is done by executing `git
refs migrate`.
A couple notes:
- This require a recent Git upstream version with not-yet-upstreamed
patches due to a bug in `git refs migrate` with reflogs.
- The migration command does not yet support repositories with
worktrees. Those were converted by first removing the worktrees,
migrating the refs and then recreating them.
- The HEAD_TRACKER reference in testrepo.git is not recognized as a
root ref and is thus not automatically migrated.
- testrepo.git has an empty reflog for refs/heads/with-empty-log that
does not get migrated.
This commit is contained in:
1
tests/resources/reftable/attr/.gitted/HEAD
vendored
Normal file
1
tests/resources/reftable/attr/.gitted/HEAD
vendored
Normal file
@@ -0,0 +1 @@
|
||||
ref: refs/heads/.invalid
|
||||
8
tests/resources/reftable/attr/.gitted/config
vendored
Normal file
8
tests/resources/reftable/attr/.gitted/config
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
[core]
|
||||
repositoryformatversion = 1
|
||||
filemode = true
|
||||
bare = false
|
||||
logallrefupdates = true
|
||||
ignorecase = true
|
||||
[extensions]
|
||||
refstorage = reftable
|
||||
1
tests/resources/reftable/attr/.gitted/description
vendored
Normal file
1
tests/resources/reftable/attr/.gitted/description
vendored
Normal file
@@ -0,0 +1 @@
|
||||
Unnamed repository; edit this file 'description' to name the repository.
|
||||
BIN
tests/resources/reftable/attr/.gitted/index
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/index
vendored
Normal file
Binary file not shown.
4
tests/resources/reftable/attr/.gitted/info/attributes
vendored
Normal file
4
tests/resources/reftable/attr/.gitted/info/attributes
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
* repoattr
|
||||
a* foo !bar -baz
|
||||
sub/*.txt reposub
|
||||
sub/sub/*.txt reposubsub
|
||||
6
tests/resources/reftable/attr/.gitted/info/exclude
vendored
Normal file
6
tests/resources/reftable/attr/.gitted/info/exclude
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
# git ls-files --others --exclude-from=.git/info/exclude
|
||||
# Lines that start with '#' are comments.
|
||||
# For a project mostly in C, the following would be a good set of
|
||||
# exclude patterns (uncomment them if you want to use them):
|
||||
# *.[oa]
|
||||
# *~
|
||||
BIN
tests/resources/reftable/attr/.gitted/objects/10/8bb4e7fd7b16490dc33ff7d972151e73d7166e
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/10/8bb4e7fd7b16490dc33ff7d972151e73d7166e
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/16/983da6643656bb44c43965ecb6855c6d574512
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/16/983da6643656bb44c43965ecb6855c6d574512
vendored
Normal file
Binary file not shown.
4
tests/resources/reftable/attr/.gitted/objects/21/7878ab49e1314388ea2e32dc6fdb58a1b969e0
vendored
Normal file
4
tests/resources/reftable/attr/.gitted/objects/21/7878ab49e1314388ea2e32dc6fdb58a1b969e0
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
xťŽQ
|
||||
Â0DýÎ)öęn“ŘDÄ#x<>mv<6D>…ÖJ’Ţ߀7đcx0Ľ<30>IŰşÎ
¨‚óž-ąĚÁń+e"Ľvů‚Á‡śâ<C59B>ťůpŃwŽcJH1x‡Ô%Ś”¦HL>Ddˇ‰
ďíµxîµę˛ŔC—¬®\ʤz˙á”¶ődí0Z‘ŕ<E28098>#˘ém˙ŘşţĎÚ°<C39A>
|
||||
äyŃ
|
||||
óę>ť{Ě–qK˛
|
||||
BIN
tests/resources/reftable/attr/.gitted/objects/24/fa9a9fc4e202313e24b648087495441dab432b
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/24/fa9a9fc4e202313e24b648087495441dab432b
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/29/29de282ce999e95183aedac6451d3384559c4b
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/29/29de282ce999e95183aedac6451d3384559c4b
vendored
Normal file
Binary file not shown.
1
tests/resources/reftable/attr/.gitted/objects/2b/40c5aca159b04ea8d20ffe36cdf8b09369b14a
vendored
Normal file
1
tests/resources/reftable/attr/.gitted/objects/2b/40c5aca159b04ea8d20ffe36cdf8b09369b14a
vendored
Normal file
@@ -0,0 +1 @@
|
||||
xmPΡj„0μ«ω<C2AB>=ϊP8Z…ήSΎ¤”c£ρhR6{=Ό―obβ™<CEB2>"<22>Ωafv<66><76><EFBFBD>‚χΧζιδ#3‰Ξ¬=7P<37>%[8<Heμ`&]@?aFZ<04>®<EFBFBD>η@!…χ.ΚΘω:±ω½§…•ldπΪLG|K’7~XΓN8¤<38>·IΟdμκ}Ώψ<CE8F>q<EFBFBD>σ2cGΎ<>7lΎ5ΤV_pEϋ<45>®’#lZ΄<5A>GMςt[JΜΘΝΒ½¥&©hΈ±uΜ][‰Φί4‰-3;ΛC<CE9B>g<EFBFBD>4Ώx`Zΐ»YΓ<59>“ι<E2809C>»ϊ€bέ^>οyNlΝ£΅>c―;gΣ<67>•¥kΗYXΔ9b|D<>~VΨ—)…vΏψρΞά•
|
||||
BIN
tests/resources/reftable/attr/.gitted/objects/2c/66e14f77196ea763fb1e41612c1aa2bc2d8ed2
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/2c/66e14f77196ea763fb1e41612c1aa2bc2d8ed2
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/2d/e7dfe3588f3c7e9ad59e7d50ba90e3329df9d9
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/2d/e7dfe3588f3c7e9ad59e7d50ba90e3329df9d9
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/37/0fe9ec224ce33e71f9e5ec2bd1142ce9937a6a
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/37/0fe9ec224ce33e71f9e5ec2bd1142ce9937a6a
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/3a/6df026462ebafe455af9867d27eda20a9e0974
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/3a/6df026462ebafe455af9867d27eda20a9e0974
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/3b/74db7ab381105dc0d28f8295a77f6a82989292
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/3b/74db7ab381105dc0d28f8295a77f6a82989292
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/3e/42ffc54a663f9401cc25843d6c0e71a33e4249
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/3e/42ffc54a663f9401cc25843d6c0e71a33e4249
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/45/141a79a77842c59a63229403220a4e4be74e3d
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/45/141a79a77842c59a63229403220a4e4be74e3d
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/45/5a314fa848d52ae1f11d254da4f60858fc97f4
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/45/5a314fa848d52ae1f11d254da4f60858fc97f4
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/45/b983be36b73c0788dc9cbcb76cbb80fc7bb057
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/45/b983be36b73c0788dc9cbcb76cbb80fc7bb057
vendored
Normal file
Binary file not shown.
2
tests/resources/reftable/attr/.gitted/objects/4d/713dc48e6b1bd75b0d61ad078ba9ca3a56745d
vendored
Normal file
2
tests/resources/reftable/attr/.gitted/objects/4d/713dc48e6b1bd75b0d61ad078ba9ca3a56745d
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
xÁÁ
€ @ßWŶàÇ
|
||||
|ø§k 9n$¡}gŠ«à:<3A>‡îÂ;5°1¥e–4ˆ\k_]‘ÞƒŸÙhœD¡k›ý'~
|
||||
BIN
tests/resources/reftable/attr/.gitted/objects/4e/49ba8c5b6c32ff28cd9dcb60be34df50fcc485
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/4e/49ba8c5b6c32ff28cd9dcb60be34df50fcc485
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/55/6f8c827b8e4a02ad5cab77dca2bcb3e226b0b3
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/55/6f8c827b8e4a02ad5cab77dca2bcb3e226b0b3
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/58/19a185d77b03325aaf87cafc771db36f6ddca7
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/58/19a185d77b03325aaf87cafc771db36f6ddca7
vendored
Normal file
Binary file not shown.
2
tests/resources/reftable/attr/.gitted/objects/60/5812ab7fe421fdd325a935d35cb06a9234a7d7
vendored
Normal file
2
tests/resources/reftable/attr/.gitted/objects/60/5812ab7fe421fdd325a935d35cb06a9234a7d7
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
x²Nш
б0Ц;Sэ═к╩∙B▄ю≈кU ╔╢JсЩ ╟?╤lы√y≥Гgcц║U RbaБ░ыcG;╦l╡Ц═²Dqж═Z╘й╚AH■<г▒Ёв3NБ╗ЦД=J2d3[⌠0⌠╒╫=√
|
||||
В}ш╓╦I≥╓б≥jM"в²x≥/═╜И[г▌ьГTwШгжЦЪ╢U║&[┐/ЛkЧ(УtJL
|
||||
3
tests/resources/reftable/attr/.gitted/objects/6b/ab5c79cd5140d0f800917f550eb2a3dc32b0da
vendored
Normal file
3
tests/resources/reftable/attr/.gitted/objects/6b/ab5c79cd5140d0f800917f550eb2a3dc32b0da
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
x<01><>Û Ã0Eûí)´@‹d'~@(¥#tÅQ¨ÁiÀQö¯¡ôëÂánÞ·(Pôm"<22>Ř2æh°sL+<2B>d{—"{Zœ“`øÔ÷Þàu‡Ô
|
||||
O©«4˜¸µYäñ›[Þ·;<3B>³Ã@>¥®M§ýS»þOmʧhá
|
||||
*‡ÂÂÊæ¿<-
|
||||
BIN
tests/resources/reftable/attr/.gitted/objects/6d/968d62c89c7d9ea23a4c9a7b665d017c3d8ffd
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/6d/968d62c89c7d9ea23a4c9a7b665d017c3d8ffd
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/71/7fc31f6b84f9d6fc3a4edbca259d7fc92beee2
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/71/7fc31f6b84f9d6fc3a4edbca259d7fc92beee2
vendored
Normal file
Binary file not shown.
1
tests/resources/reftable/attr/.gitted/objects/8d/0b9df9bd30be7910ddda60548d485bc302b911
vendored
Normal file
1
tests/resources/reftable/attr/.gitted/objects/8d/0b9df9bd30be7910ddda60548d485bc302b911
vendored
Normal file
@@ -0,0 +1 @@
|
||||
x<01><>Kj1D<><44>)zol<6F>i<EFBFBD><69> _"hi<68>K2<4B>L<EFBFBD><4C>G!7Ȫ<05><><EFBFBD>J<EFBFBD>,<2C><><EFBFBD>E<EFBFBD>PX<50><58>D<EFBFBD><44>S<EFBFBD><53> ] /)<29><>}<7D><>/<2F><>Uw<55>R<EFBFBD><52>. <09>j<EFBFBD><6A><13><>p<EFBFBD><70><EFBFBD><EFBFBD>#<23><>#:?<3F><>:|<7C><>;<3B><>F9<46>܋<EFBFBD>r=_<0B><>)<29><>ơ<>N/<2F><>A[<5B><>l<EFBFBD><6C>!<21>q<EFBFBD><71>}<7D><><EFBFBD><15><Lfx4<78>H\<5C><>\<5C><>q֏cj<63><6A><EFBFBD><EFBFBD><04>T<EFBFBD>
|
||||
BIN
tests/resources/reftable/attr/.gitted/objects/93/61f40bb97239cf55811892e14de2e344168ba1
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/93/61f40bb97239cf55811892e14de2e344168ba1
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/94/da4faa0a6bfb8ee6ccf7153801a69202b31857
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/94/da4faa0a6bfb8ee6ccf7153801a69202b31857
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/96/089fd31ce1d3ee2afb0ba09ba063066932f027
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/96/089fd31ce1d3ee2afb0ba09ba063066932f027
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/99/eae476896f4907224978b88e5ecaa6c5bb67a9
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/99/eae476896f4907224978b88e5ecaa6c5bb67a9
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/9e/5bdc47d6a80f2be0ea3049ad74231b94609242
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/9e/5bdc47d6a80f2be0ea3049ad74231b94609242
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/9f/b40b6675dde60b5697afceae91b66d908c02d9
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/9f/b40b6675dde60b5697afceae91b66d908c02d9
vendored
Normal file
Binary file not shown.
1
tests/resources/reftable/attr/.gitted/objects/a0/f7217ae99f5ac3e88534f5cea267febc5fa85b
vendored
Normal file
1
tests/resources/reftable/attr/.gitted/objects/a0/f7217ae99f5ac3e88534f5cea267febc5fa85b
vendored
Normal file
@@ -0,0 +1 @@
|
||||
x5Ž1Â0E™}Š?–΀;•˜Sâ<53>ˆÔ®’”ŠÛ“Ðv´ýߢ8ŸO‡'FÈÈ:2r™<72>ƒ)(¾
&¢Þ·«×9Z¼A Âð³¼Ñ¹<C391>r9Ýl¬
%¨˜ˆ„3ÑE<17>o‚<6F>£.ÿVÕi<BñàF©MÌb‰®+ÂÙŸ*vµªÛþìÖmõ÷¾¢ÞLK†ÝD?+N
|
||||
BIN
tests/resources/reftable/attr/.gitted/objects/a5/6bbcecaeac760cc26239384d2d4c614e7e4320
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/a5/6bbcecaeac760cc26239384d2d4c614e7e4320
vendored
Normal file
Binary file not shown.
4
tests/resources/reftable/attr/.gitted/objects/a5/d76cad53f66f1312bd995909a5bab3c0820770
vendored
Normal file
4
tests/resources/reftable/attr/.gitted/objects/a5/d76cad53f66f1312bd995909a5bab3c0820770
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
x<01>Ž]
|
||||
‚!E{v³<>B>!"ZB;u¤à3Cmÿ í §‡{.7µZŸ4âavfÈÖgBLÊEeP;NQÚ¬BŒLAnŲIÆç ÞÔù5ÁI»)MÑ6Z•œQ[
|
||||
h3Úe:
|
||||
ùì}æ£u¸Æà}‡ï…;œ©÷È|ýÅ)µzµ&ô¦¼Óp”›”bÑõq®ú?¶¨3TJ½Áä1‡ø3ÙJX
|
||||
2
tests/resources/reftable/attr/.gitted/objects/a9/7cc019851d401a4f1d091cb91a15890a0dd1ba
vendored
Normal file
2
tests/resources/reftable/attr/.gitted/objects/a9/7cc019851d401a4f1d091cb91a15890a0dd1ba
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
xťŽQjÄ0DűíSč[ähc;PJéÚ(˛Ľ $q°–Ţľ†Ţ _3oŕIŢ÷µÁŕÜK+ŞŕâäBt<42>„I|ś”â»LěgçĆ<C3A7>ÖĹ<>R4'=¤qFN6Í÷4
|
||||
JôĚ1ôÖFr<46>Ń‘zĂW[r<>Ż«VÝ6řÔ-i<>7.eVýř‹WÉű;X‚‰,Á
˘émwl˙ĎŰ|ç]ṬMëɢ<C389>ŹídáăˇRwęC[ŹśW9sŐj~’Wy
|
||||
BIN
tests/resources/reftable/attr/.gitted/objects/b4/35cd5689a0fb54afbeda4ac20368aa480e8f04
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/b4/35cd5689a0fb54afbeda4ac20368aa480e8f04
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/c0/091889c0c77142b87a1fa5123a6398a61d33e7
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/c0/091889c0c77142b87a1fa5123a6398a61d33e7
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/c4/85abe35abd4aa6fd83b076a78bbea9e2e7e06c
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/c4/85abe35abd4aa6fd83b076a78bbea9e2e7e06c
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/c7/aadd770d5907a8475c29e9ee21a27b88bf675d
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/c7/aadd770d5907a8475c29e9ee21a27b88bf675d
vendored
Normal file
Binary file not shown.
2
tests/resources/reftable/attr/.gitted/objects/c9/6bbb2c2557a8325ae1559e3ba79cdcecb23076
vendored
Normal file
2
tests/resources/reftable/attr/.gitted/objects/c9/6bbb2c2557a8325ae1559e3ba79cdcecb23076
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
x5<>A
|
||||
Â0D]ÿSÌεèoàÂuJ~L0ýͯ¡··)¸xÃcfªœp¹]OOΊcñBµ˜6‘»!뢘´²Ã³‚{,áU<C¿j˜¹[ÁE-ŠÜ-¢Ò˜ð&#š¯)<29>~ëÇäÆ=˜<>;;{.öùe"3A
|
||||
BIN
tests/resources/reftable/attr/.gitted/objects/ce/39a97a7fb1fa90bcf5e711249c1e507476ae0e
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/ce/39a97a7fb1fa90bcf5e711249c1e507476ae0e
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/d5/7da33c16b14326ecb05d19bbea908f5e4c47d9
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/d5/7da33c16b14326ecb05d19bbea908f5e4c47d9
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/d8/00886d9c86731ae5c4a62b0b77c437015e00d2
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/d8/00886d9c86731ae5c4a62b0b77c437015e00d2
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/dc/cada462d3df8ac6de596fb8c896aba9344f941
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/dc/cada462d3df8ac6de596fb8c896aba9344f941
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/de/863bff4976c9ed7e17a4da0fd524908dc84049
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/de/863bff4976c9ed7e17a4da0fd524908dc84049
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/e5/63cf4758f0d646f1b14b76016aa17fa9e549a4
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/e5/63cf4758f0d646f1b14b76016aa17fa9e549a4
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/ec/b97df2a174987475ac816e3847fc8e9f6c596b
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/ec/b97df2a174987475ac816e3847fc8e9f6c596b
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/ed/f3dcee4003d71f139777898882ccd097e34c53
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/ed/f3dcee4003d71f139777898882ccd097e34c53
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr/.gitted/objects/f2/c6d717cf4a5a3e6b02684155ab07b766982165
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/f2/c6d717cf4a5a3e6b02684155ab07b766982165
vendored
Normal file
Binary file not shown.
2
tests/resources/reftable/attr/.gitted/objects/f5/b0af1fb4f5c0cd7aad880711d368a07333c307
vendored
Normal file
2
tests/resources/reftable/attr/.gitted/objects/f5/b0af1fb4f5c0cd7aad880711d368a07333c307
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
x<01>N[j1Ì·O¡4ÈRbÇPJÈ
|
||||
=€Ö;NûÂë½
½A?†y 1“×y~7½žZ(¾¥2ªÏð£beàÁ8uå’Ja‰n³Š¥‘F.HÈ"—UD_®Ý£÷ÉHI£sv´×ZéûØwL=0Tú´ZàþGç¼Î_äUbßKèƒoÌ®§}cëçÿùv?Ûhí½<©aoÔµ¹_áEK
|
||||
BIN
tests/resources/reftable/attr/.gitted/objects/fb/5067b1aef3ac1ada4b379dbcb7d17255df7d78
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/fb/5067b1aef3ac1ada4b379dbcb7d17255df7d78
vendored
Normal file
Binary file not shown.
1
tests/resources/reftable/attr/.gitted/objects/fe/773770c5a6cc7185580c9204b1ff18a33ff3fc
vendored
Normal file
1
tests/resources/reftable/attr/.gitted/objects/fe/773770c5a6cc7185580c9204b1ff18a33ff3fc
vendored
Normal file
@@ -0,0 +1 @@
|
||||
x5ЋAВ09ыы„xBЬAвњG¤vХ¤Tьћ¤РЈеќќхЩ<ыгоВ#ҐО1ВUT釛*СMъWlОOCR<43>2dЦСµC.„T“©ЛИI№ќlQH/цњmYЫ¬UN[аћЄЂЯ¬¬ҐюBЦ@t¶Ьр8~<7E>†Х‹ї}}R#ДЌ#kAШdD_=-H–
|
||||
BIN
tests/resources/reftable/attr/.gitted/objects/ff/69f8639ce2e6010b3f33a74160aad98b48da2b
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/objects/ff/69f8639ce2e6010b3f33a74160aad98b48da2b
vendored
Normal file
Binary file not shown.
1
tests/resources/reftable/attr/.gitted/refs/heads
vendored
Normal file
1
tests/resources/reftable/attr/.gitted/refs/heads
vendored
Normal file
@@ -0,0 +1 @@
|
||||
this repository uses the reftable format
|
||||
BIN
tests/resources/reftable/attr/.gitted/reftable/0x000000000001-0x000000000009-c6dbd6c2.ref
vendored
Normal file
BIN
tests/resources/reftable/attr/.gitted/reftable/0x000000000001-0x000000000009-c6dbd6c2.ref
vendored
Normal file
Binary file not shown.
1
tests/resources/reftable/attr/.gitted/reftable/tables.list
vendored
Normal file
1
tests/resources/reftable/attr/.gitted/reftable/tables.list
vendored
Normal file
@@ -0,0 +1 @@
|
||||
0x000000000001-0x000000000009-c6dbd6c2.ref
|
||||
1
tests/resources/reftable/attr/attr0
vendored
Normal file
1
tests/resources/reftable/attr/attr0
vendored
Normal file
@@ -0,0 +1 @@
|
||||
* binary
|
||||
29
tests/resources/reftable/attr/attr1
vendored
Normal file
29
tests/resources/reftable/attr/attr1
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
# a comment followed by some blank lines
|
||||
|
||||
|
||||
|
||||
# another comment that is indented
|
||||
|
||||
# variations on fnmatch
|
||||
|
||||
pat0 attr0
|
||||
!pat1 attr1
|
||||
pat2/ attr2
|
||||
pat3dir/pat3file attr3
|
||||
pat4.* attr4
|
||||
*.pat5 attr5
|
||||
pat6/pat6/*.pat6 attr6
|
||||
|
||||
pat7[a-e]??[xyz] attr7 # with a comment on the line
|
||||
|
||||
pat8\ with\ spaces attr8
|
||||
|
||||
invalid # attr with no assignments doesn't count
|
||||
|
||||
also/invalid
|
||||
|
||||
invalid.again/
|
||||
|
||||
# next attr is at eof
|
||||
|
||||
pat9 attr9
|
||||
21
tests/resources/reftable/attr/attr2
vendored
Normal file
21
tests/resources/reftable/attr/attr2
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
# variations on assignments
|
||||
|
||||
pat0 simple
|
||||
pat1 -neg
|
||||
* notundef
|
||||
pat2 !notundef
|
||||
pat3 assigned=test-value
|
||||
pat4 rule-with-more-chars=value-with-more-chars
|
||||
pat5 empty=
|
||||
pat6 -negempty=
|
||||
pat7 multiple -single values=1 also=a-really-long-value/* happy=yes!
|
||||
# the next line has trailing spaces
|
||||
pat8 again= another=12321
|
||||
patbad0 # empty assignment does not count
|
||||
# next line will be another simple empty assign that should not count
|
||||
patbad1
|
||||
|
||||
# BTW I think there are 11 valid rules and two "invalid" empty ones
|
||||
|
||||
pat9 -at-eof
|
||||
4
tests/resources/reftable/attr/attr3
vendored
Normal file
4
tests/resources/reftable/attr/attr3
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
# These are examples from the git-check-attr.1 man page
|
||||
*.java diff=java -crlf myAttr
|
||||
NoMyAttr.java !myAttr
|
||||
README caveat=unspecified
|
||||
7
tests/resources/reftable/attr/attr4
vendored
Normal file
7
tests/resources/reftable/attr/attr4
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
# This is a comment
|
||||
# This is also a comment
|
||||
*.java diff=java -crlf myAttr
|
||||
|
||||
NoMyAttr.java !myAttr
|
||||
|
||||
README caveat=unspecified
|
||||
1
tests/resources/reftable/attr/binfile
vendored
Normal file
1
tests/resources/reftable/attr/binfile
vendored
Normal file
@@ -0,0 +1 @@
|
||||
123
|
||||
0
tests/resources/reftable/attr/dir/file
vendored
Normal file
0
tests/resources/reftable/attr/dir/file
vendored
Normal file
1
tests/resources/reftable/attr/file
vendored
Normal file
1
tests/resources/reftable/attr/file
vendored
Normal file
@@ -0,0 +1 @@
|
||||
hi
|
||||
29
tests/resources/reftable/attr/gitattributes
vendored
Normal file
29
tests/resources/reftable/attr/gitattributes
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
* rootattr
|
||||
root_test2 -rootattr
|
||||
root_test3 !rootattr
|
||||
binfile binary
|
||||
abc foo bar baz
|
||||
does-not-exist foo=yes
|
||||
|
||||
root_test2 multiattr
|
||||
root_test3 multi2=foo
|
||||
|
||||
root_test3 multiattr=1 multiattr=2 multiattr=3 multi2=abc !multi2
|
||||
root_test2 multiattr=string -multiattr
|
||||
|
||||
[attr]mymacro positive -negative !rootattr
|
||||
macro* mymacro another=77
|
||||
|
||||
[attr]macro2 multi2 -multi2 multi3 !multi3 multi3=answer
|
||||
macro* macro2 macro2 macro2
|
||||
|
||||
# let's try some malicious macro defs
|
||||
[attr]firstmacro -thirdmacro -secondmacro
|
||||
[attr]secondmacro firstmacro -firstmacro
|
||||
[attr]thirdmacro secondmacro=hahaha
|
||||
|
||||
macro_bad firstmacro secondmacro thirdmacro
|
||||
|
||||
# another test that Peff found was failing
|
||||
[attr]notest !test
|
||||
|
||||
2
tests/resources/reftable/attr/gitignore
vendored
Normal file
2
tests/resources/reftable/attr/gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
ign
|
||||
dir/
|
||||
1
tests/resources/reftable/attr/ign
vendored
Normal file
1
tests/resources/reftable/attr/ign
vendored
Normal file
@@ -0,0 +1 @@
|
||||
ignore me
|
||||
1
tests/resources/reftable/attr/macro_bad
vendored
Normal file
1
tests/resources/reftable/attr/macro_bad
vendored
Normal file
@@ -0,0 +1 @@
|
||||
boo
|
||||
1
tests/resources/reftable/attr/macro_test
vendored
Normal file
1
tests/resources/reftable/attr/macro_test
vendored
Normal file
@@ -0,0 +1 @@
|
||||
Yo
|
||||
1
tests/resources/reftable/attr/root_test1
vendored
Normal file
1
tests/resources/reftable/attr/root_test1
vendored
Normal file
@@ -0,0 +1 @@
|
||||
Hello from the root
|
||||
6
tests/resources/reftable/attr/root_test2
vendored
Normal file
6
tests/resources/reftable/attr/root_test2
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
Hello from the root
|
||||
|
||||
Some additional lines
|
||||
|
||||
Down here below
|
||||
|
||||
19
tests/resources/reftable/attr/root_test3
vendored
Normal file
19
tests/resources/reftable/attr/root_test3
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
Some additional lines
|
||||
|
||||
|
||||
Down here below the other lines
|
||||
|
||||
|
||||
With even more at the end
|
||||
|
||||
|
||||
And lots of good stuff
|
||||
|
||||
|
||||
Anywhere you want
|
||||
|
||||
|
||||
Don't you think
|
||||
|
||||
|
||||
|
||||
14
tests/resources/reftable/attr/root_test4.txt
vendored
Normal file
14
tests/resources/reftable/attr/root_test4.txt
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
Here is some stuff at the start
|
||||
|
||||
This should go in one hunk (first)
|
||||
|
||||
Some additional lines
|
||||
|
||||
Down here below the other lines
|
||||
|
||||
With even more at the end
|
||||
|
||||
Followed by a second hunk of stuff (second)
|
||||
|
||||
That happens down here
|
||||
|
||||
7
tests/resources/reftable/attr/sub/.gitattributes
vendored
Normal file
7
tests/resources/reftable/attr/sub/.gitattributes
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
* subattr=yes -negattr
|
||||
*.txt another=zero
|
||||
sub/*.txt another=one
|
||||
ab* merge=filfre
|
||||
abc -foo -bar
|
||||
*.c frotz
|
||||
deep/file deepdeep
|
||||
37
tests/resources/reftable/attr/sub/abc
vendored
Normal file
37
tests/resources/reftable/attr/sub/abc
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
# Test file from gitattributes(5) example:
|
||||
|
||||
If you have these three gitattributes file:
|
||||
|
||||
(in $GIT_DIR/info/attributes)
|
||||
|
||||
a* foo !bar -baz
|
||||
|
||||
(in .gitattributes)
|
||||
abc foo bar baz
|
||||
|
||||
(in t/.gitattributes)
|
||||
ab* merge=filfre
|
||||
abc -foo -bar
|
||||
*.c frotz
|
||||
|
||||
the attributes given to path t/abc are computed as follows:
|
||||
|
||||
1. By examining t/.gitattributes (which is in the same directory as the path
|
||||
in question), git finds that the first line matches. merge attribute is
|
||||
set. It also finds that the second line matches, and attributes foo and
|
||||
bar are unset.
|
||||
2. Then it examines .gitattributes (which is in the parent directory), and
|
||||
finds that the first line matches, but t/.gitattributes file already
|
||||
decided how merge, foo and bar attributes should be given to this path,
|
||||
so it leaves foo and bar unset. Attribute baz is set.
|
||||
3. Finally it examines $GIT_DIR/info/attributes. This file is used to
|
||||
override the in-tree settings. The first line is a match, and foo is set,
|
||||
bar is reverted to unspecified state, and baz is unset.
|
||||
|
||||
As the result, the attributes assignment to t/abc becomes:
|
||||
|
||||
foo set to true
|
||||
bar unspecified
|
||||
baz set to false
|
||||
merge set to string value "filfre"
|
||||
frotz unspecified
|
||||
0
tests/resources/reftable/attr/sub/dir/file
vendored
Normal file
0
tests/resources/reftable/attr/sub/dir/file
vendored
Normal file
1
tests/resources/reftable/attr/sub/file
vendored
Normal file
1
tests/resources/reftable/attr/sub/file
vendored
Normal file
@@ -0,0 +1 @@
|
||||
hi
|
||||
1
tests/resources/reftable/attr/sub/ign/file
vendored
Normal file
1
tests/resources/reftable/attr/sub/ign/file
vendored
Normal file
@@ -0,0 +1 @@
|
||||
in ignored dir
|
||||
1
tests/resources/reftable/attr/sub/ign/sub/file
vendored
Normal file
1
tests/resources/reftable/attr/sub/ign/sub/file
vendored
Normal file
@@ -0,0 +1 @@
|
||||
below ignored dir
|
||||
3
tests/resources/reftable/attr/sub/sub/.gitattributes
vendored
Normal file
3
tests/resources/reftable/attr/sub/sub/.gitattributes
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
d/* test=a/b/d/*
|
||||
d/yes notest
|
||||
|
||||
0
tests/resources/reftable/attr/sub/sub/dir
vendored
Normal file
0
tests/resources/reftable/attr/sub/sub/dir
vendored
Normal file
1
tests/resources/reftable/attr/sub/sub/file
vendored
Normal file
1
tests/resources/reftable/attr/sub/sub/file
vendored
Normal file
@@ -0,0 +1 @@
|
||||
hi
|
||||
1
tests/resources/reftable/attr/sub/sub/subsub.txt
vendored
Normal file
1
tests/resources/reftable/attr/sub/sub/subsub.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
subsub
|
||||
2
tests/resources/reftable/attr/sub/subdir_test1
vendored
Normal file
2
tests/resources/reftable/attr/sub/subdir_test1
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
Hello from the subdir
|
||||
|
||||
1
tests/resources/reftable/attr/sub/subdir_test2.txt
vendored
Normal file
1
tests/resources/reftable/attr/sub/subdir_test2.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
Hello again
|
||||
1
tests/resources/reftable/attr_index/.gitted/HEAD
vendored
Normal file
1
tests/resources/reftable/attr_index/.gitted/HEAD
vendored
Normal file
@@ -0,0 +1 @@
|
||||
ref: refs/heads/.invalid
|
||||
8
tests/resources/reftable/attr_index/.gitted/config
vendored
Normal file
8
tests/resources/reftable/attr_index/.gitted/config
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
[core]
|
||||
repositoryformatversion = 1
|
||||
filemode = true
|
||||
bare = false
|
||||
logallrefupdates = true
|
||||
ignorecase = true
|
||||
[extensions]
|
||||
refstorage = reftable
|
||||
1
tests/resources/reftable/attr_index/.gitted/description
vendored
Normal file
1
tests/resources/reftable/attr_index/.gitted/description
vendored
Normal file
@@ -0,0 +1 @@
|
||||
Unnamed repository; edit this file 'description' to name the repository.
|
||||
BIN
tests/resources/reftable/attr_index/.gitted/index
vendored
Normal file
BIN
tests/resources/reftable/attr_index/.gitted/index
vendored
Normal file
Binary file not shown.
6
tests/resources/reftable/attr_index/.gitted/info/exclude
vendored
Normal file
6
tests/resources/reftable/attr_index/.gitted/info/exclude
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
# git ls-files --others --exclude-from=.git/info/exclude
|
||||
# Lines that start with '#' are comments.
|
||||
# For a project mostly in C, the following would be a good set of
|
||||
# exclude patterns (uncomment them if you want to use them):
|
||||
# *.[oa]
|
||||
# *~
|
||||
1
tests/resources/reftable/attr_index/.gitted/info/refs
vendored
Normal file
1
tests/resources/reftable/attr_index/.gitted/info/refs
vendored
Normal file
@@ -0,0 +1 @@
|
||||
58f7cf825b553ef7c26e5b9f8a23599c1a9ca296 refs/heads/master
|
||||
@@ -0,0 +1,3 @@
|
||||
x•<>[
|
||||
Γ Eϋν*ά@‹<>PJι
|
||||
]€<>™&“`ΜώλϊwΈ<77>'o¥ΜMΈK«D’ ‚q•4¤ΚΛμ5DFΛ#<23>δ!!<21>=VZ›DΟ.³L<>†:ƒ%L<>}ƒ!dC<>¬<>g›¶*ίηqΠ²Θ-LUήkz~η6<CEB7>ι–·ς<C2B7>Ϊ«νΰ<06>Wε”}ν}«<C2AD>>Εg<CE95>ΛΎΥ{f<>βϊ%ρ΅Gς
|
||||
@@ -0,0 +1 @@
|
||||
x
ÃÑ €0@¿<>âÍà‡“¸@kR”’@ßÂ]½ã<¶K4±ÜnÕÔÅY‰á<E280B0>)l(a¨hF˜Hcƒcÿ^Ô<18>
|
||||
BIN
tests/resources/reftable/attr_index/.gitted/objects/cd/f17ea3fe625ef812f4dce7f423f4f299287505
vendored
Normal file
BIN
tests/resources/reftable/attr_index/.gitted/objects/cd/f17ea3fe625ef812f4dce7f423f4f299287505
vendored
Normal file
Binary file not shown.
BIN
tests/resources/reftable/attr_index/.gitted/objects/f7/2502ddd01412bb20796ff812af56fd53b82b52
vendored
Normal file
BIN
tests/resources/reftable/attr_index/.gitted/objects/f7/2502ddd01412bb20796ff812af56fd53b82b52
vendored
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user