]> git.proxmox.com Git - libgit2.git/commit
index: test that we round-trip nsecs
authorEdward Thomson <ethomson@edwardthomson.com>
Thu, 22 Oct 2015 13:29:40 +0000 (09:29 -0400)
committerEdward Thomson <ethomson@edwardthomson.com>
Thu, 22 Oct 2015 13:29:40 +0000 (09:29 -0400)
commit99a09f7f18f321c2a37e483bcd8aeb6dff781abc
treed8263f1891dfeafe1ceb0d090711caf3f7d4c157
parent855f048a7b28de8c1f44a570aee93a26cc684a60
index: test that we round-trip nsecs

Test that nanoseconds are round-tripped correctly when we read
an index file that contains them.  We should, however, ignore them
because we don't understand them, and any new entries in the index
should contain a `0` nsecs field, while existing preserving entries.
13 files changed:
tests/index/nsec.c [new file with mode: 0644]
tests/resources/nsecs/.gitted/HEAD [new file with mode: 0644]
tests/resources/nsecs/.gitted/config [new file with mode: 0644]
tests/resources/nsecs/.gitted/index [new file with mode: 0644]
tests/resources/nsecs/.gitted/objects/03/1986a8372d1442cfe9e3b54906a9aadc524a7e [new file with mode: 0644]
tests/resources/nsecs/.gitted/objects/03/9afd91c98f82c14e425bb6796d8ca98e9c8cac [new file with mode: 0644]
tests/resources/nsecs/.gitted/objects/6d/8b18077cc99abd8dda05a6062c646406abb2d4 [new file with mode: 0644]
tests/resources/nsecs/.gitted/objects/c5/12b6c64656b87ea8caf37a32bc5a562d797745 [new file with mode: 0644]
tests/resources/nsecs/.gitted/objects/df/78d3d51c369e1d2f1eadb73464aadd931d56b4 [new file with mode: 0644]
tests/resources/nsecs/.gitted/refs/heads/master [new file with mode: 0644]
tests/resources/nsecs/a.txt [new file with mode: 0644]
tests/resources/nsecs/b.txt [new file with mode: 0644]
tests/resources/nsecs/c.txt [new file with mode: 0644]