]> git.proxmox.com Git - libgit2.git/commit - src/repository.c
Change git_repository initialization to use a path
authorVicent Marti <tanoku@gmail.com>
Tue, 2 Nov 2010 16:42:42 +0000 (18:42 +0200)
committerVicent Marti <tanoku@gmail.com>
Tue, 2 Nov 2010 16:42:42 +0000 (18:42 +0200)
commit6fd195d76c7f52baae5540e287affe2259900d36
tree4dd644c5086dce17827f42b8c811049175da88f9
parentd80e9d55aa2d0629f7f207db42762494075d7854
Change git_repository initialization to use a path

The constructor to git_repository is now called

'git_repository_open(path)'

and takes a path to a git repository instead of an existing ODB object.
Unit tests have been updated accordingly and the two test repositories
have been merged into one.

Signed-off-by: Vicent Marti <tanoku@gmail.com>
81 files changed:
src/fileops.c
src/fileops.h
src/git/index.h
src/git/repository.h
src/index.c
src/index.h
src/repository.c
src/repository.h
tests/resources/index [deleted file]
tests/resources/pack-odb/7b/4384978d2493e851f9cca7858815fac9b10980 [deleted file]
tests/resources/pack-odb/b2/5fa35b38051e4ae45d4222e795f9df2e43f1d1 [deleted file]
tests/resources/pack-odb/info/packs [deleted file]
tests/resources/pack-odb/pack/pack-a81e489679b7d3418f9ab594bda8ceb37dd4c695.idx [deleted file]
tests/resources/pack-odb/pack/pack-a81e489679b7d3418f9ab594bda8ceb37dd4c695.pack [deleted file]
tests/resources/pack-odb/pack/pack-d85f5d483273108c9d8dd0e4728ccf0b2982423a.idx [deleted file]
tests/resources/pack-odb/pack/pack-d85f5d483273108c9d8dd0e4728ccf0b2982423a.pack [deleted file]
tests/resources/sample-odb/13/85f264afb75a56a5bec74243be9b367ba4ca08 [deleted file]
tests/resources/sample-odb/18/1037049a54a1eb5fab404658a3a250b44335d7 [deleted file]
tests/resources/sample-odb/18/10dff58d8a660512d4832e740f692884338ccd [deleted file]
tests/resources/sample-odb/45/b983be36b73c0788dc9cbcb76cbb80fc7bb057 [deleted file]
tests/resources/sample-odb/4a/202b346bb0fb0db7eff3cffeb3c70babbd2045 [deleted file]
tests/resources/sample-odb/5b/5b025afb0b4c913b4c338a42934a3863bf3644 [deleted file]
tests/resources/sample-odb/75/057dd4114e74cca1d750d0aee1647c903cb60a [deleted file]
tests/resources/sample-odb/81/4889a078c031f61ed08ab5fa863aea9314344d [deleted file]
tests/resources/sample-odb/84/96071c1b46c854b31185ea97743be6a8774479 [deleted file]
tests/resources/sample-odb/9f/d738e8f7967c078dceed8190330fc8648ee56a [deleted file]
tests/resources/sample-odb/a4/a7dce85cf63874e984719f4fdd239f5145052f [deleted file]
tests/resources/sample-odb/a7/1586c1dfe8a71c6cbf6c129f404c5642ff31bd [deleted file]
tests/resources/sample-odb/a8/233120f6ad708f843d861ce2b7228ec4e3dec6 [deleted file]
tests/resources/sample-odb/be/3563ae3f795b2b4353bcce3a527ad0a4f7f644 [deleted file]
tests/resources/sample-odb/c4/7800c7266a2be04c571c04d5a6614691ea99bd [deleted file]
tests/resources/sample-odb/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 [deleted file]
tests/resources/sample-odb/f6/0079018b664e4e79329a7ef9559c8d9e0378d1 [deleted file]
tests/resources/sample-odb/fa/49b077972391ad58037050f2a75f74e3671e92 [deleted file]
tests/resources/sample-odb/fd/093bff70906175335656e6ce6ae05783708765 [deleted file]
tests/resources/sample-odb/pack/pack-d7c6adf9f61318f041845b01440d09aa7a91e1b5.idx [deleted file]
tests/resources/sample-odb/pack/pack-d7c6adf9f61318f041845b01440d09aa7a91e1b5.pack [deleted file]
tests/resources/testrepo.git/HEAD [new file with mode: 0644]
tests/resources/testrepo.git/index [new file with mode: 0644]
tests/resources/testrepo.git/objects/13/85f264afb75a56a5bec74243be9b367ba4ca08 [new file with mode: 0644]
tests/resources/testrepo.git/objects/18/1037049a54a1eb5fab404658a3a250b44335d7 [new file with mode: 0644]
tests/resources/testrepo.git/objects/18/10dff58d8a660512d4832e740f692884338ccd [new file with mode: 0644]
tests/resources/testrepo.git/objects/45/b983be36b73c0788dc9cbcb76cbb80fc7bb057 [new file with mode: 0644]
tests/resources/testrepo.git/objects/4a/202b346bb0fb0db7eff3cffeb3c70babbd2045 [new file with mode: 0644]
tests/resources/testrepo.git/objects/5b/5b025afb0b4c913b4c338a42934a3863bf3644 [new file with mode: 0644]
tests/resources/testrepo.git/objects/75/057dd4114e74cca1d750d0aee1647c903cb60a [new file with mode: 0644]
tests/resources/testrepo.git/objects/7b/4384978d2493e851f9cca7858815fac9b10980 [new file with mode: 0644]
tests/resources/testrepo.git/objects/81/4889a078c031f61ed08ab5fa863aea9314344d [new file with mode: 0644]
tests/resources/testrepo.git/objects/84/96071c1b46c854b31185ea97743be6a8774479 [new file with mode: 0644]
tests/resources/testrepo.git/objects/9f/d738e8f7967c078dceed8190330fc8648ee56a [new file with mode: 0644]
tests/resources/testrepo.git/objects/a4/a7dce85cf63874e984719f4fdd239f5145052f [new file with mode: 0644]
tests/resources/testrepo.git/objects/a7/1586c1dfe8a71c6cbf6c129f404c5642ff31bd [new file with mode: 0644]
tests/resources/testrepo.git/objects/a8/233120f6ad708f843d861ce2b7228ec4e3dec6 [new file with mode: 0644]
tests/resources/testrepo.git/objects/b2/5fa35b38051e4ae45d4222e795f9df2e43f1d1 [new file with mode: 0644]
tests/resources/testrepo.git/objects/be/3563ae3f795b2b4353bcce3a527ad0a4f7f644 [new file with mode: 0644]
tests/resources/testrepo.git/objects/c4/7800c7266a2be04c571c04d5a6614691ea99bd [new file with mode: 0644]
tests/resources/testrepo.git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 [new file with mode: 0644]
tests/resources/testrepo.git/objects/f6/0079018b664e4e79329a7ef9559c8d9e0378d1 [new file with mode: 0644]
tests/resources/testrepo.git/objects/fa/49b077972391ad58037050f2a75f74e3671e92 [new file with mode: 0644]
tests/resources/testrepo.git/objects/fd/093bff70906175335656e6ce6ae05783708765 [new file with mode: 0644]
tests/resources/testrepo.git/objects/pack/pack-a81e489679b7d3418f9ab594bda8ceb37dd4c695.idx [new file with mode: 0644]
tests/resources/testrepo.git/objects/pack/pack-a81e489679b7d3418f9ab594bda8ceb37dd4c695.pack [new file with mode: 0644]
tests/resources/testrepo.git/objects/pack/pack-d7c6adf9f61318f041845b01440d09aa7a91e1b5.idx [new file with mode: 0644]
tests/resources/testrepo.git/objects/pack/pack-d7c6adf9f61318f041845b01440d09aa7a91e1b5.pack [new file with mode: 0644]
tests/resources/testrepo.git/objects/pack/pack-d85f5d483273108c9d8dd0e4728ccf0b2982423a.idx [new file with mode: 0644]
tests/resources/testrepo.git/objects/pack/pack-d85f5d483273108c9d8dd0e4728ccf0b2982423a.pack [new file with mode: 0644]
tests/t0204-readpack.c
tests/t0205-readheader.c
tests/t0401-parse.c
tests/t0402-details.c
tests/t0403-write.c
tests/t0501-walk.c
tests/t0601-read.c
tests/t0602-write.c
tests/t0603-sort.c
tests/t0801-readtag.c
tests/t0802-write.c
tests/t0901-readtree.c
tests/t0902-modify.c
tests/test_helpers.c
tests/test_helpers.h