|
8fae76c5
|
2011-12-14T09:38:05
|
|
commit: add test to ensure predictability of generation of commit, tree and blob object ids
|
|
16a9f32a
|
2011-12-14T03:32:49
|
|
Merge remote-tracking branch 'nulltoken/topic/oid-generation' into development
Conflicts:
tests-clay/clay.h
tests-clay/clay_main.c
|
|
40e73d6f
|
2011-12-09T01:38:46
|
|
Merge remote-tracking branch 'arrbee/git-buf-for-paths' into development
Conflicts:
tests-clay/clay_main.c
|
|
97769280
|
2011-11-30T11:27:15
|
|
Use git_buf for path storage instead of stack-based buffers
This converts virtually all of the places that allocate GIT_PATH_MAX
buffers on the stack for manipulating paths to use git_buf objects
instead. The patch is pretty careful not to touch the public API
for libgit2, so there are a few places that still use GIT_PATH_MAX.
This extends and changes some details of the git_buf implementation
to add a couple of extra functions and to make error handling easier.
This includes serious alterations to all the path.c functions, and
several of the fileops.c ones, too. Also, there are a number of new
functions that parallel existing ones except that use a git_buf
instead of a stack-based buffer (such as git_config_find_global_r
that exists alongsize git_config_find_global).
This also modifies the win32 version of p_realpath to allocate whatever
buffer size is needed to accommodate the realpath instead of hardcoding
a GIT_PATH_MAX limit, but that change needs to be tested still.
|
|
a7954d2a
|
2011-12-04T17:55:35
|
|
tree: add test to ensure predictability of generation of object ids
|
|
b4d757c0
|
2011-10-26T15:19:49
|
|
clay: add tests for tree diff'ing
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Signed-off-by: Vicent Marti <tanoku@gmail.com>
|
|
969d588d
|
2011-11-30T13:10:47
|
|
Optimized of git_buf_join.
This streamlines git_buf_join and removes the join-append behavior,
opting instead for a very compact join-replace of the git_buf contents.
The unit tests had to be updated to remove the join-append tests and
have a bunch more exhaustive tests added.
|
|
8e46168c
|
2011-11-29T11:36:18
|
|
clay: Add buffer tests
|
|
91a9a070
|
2011-11-29T11:03:06
|
|
tests-clay: mix the tests
Actually add the tests introduced with 8c74d22.
Signed-off-by: schu <schu-github@schulog.org>
|
|
9462c471
|
2011-11-25T08:16:26
|
|
repository: Change ownership semantics
The ownership semantics have been changed all over the library to be
consistent. There are no more "borrowed" or duplicated references.
Main changes:
- `git_repository_open2` and `3` have been dropped.
- Added setters and getters to hotswap all the repository owned
objects:
`git_repository_index`
`git_repository_set_index`
`git_repository_odb`
`git_repository_set_odb`
`git_repository_config`
`git_repository_set_config`
`git_repository_workdir`
`git_repository_set_workdir`
Now working directories/index files/ODBs and so on can be
hot-swapped after creating a repository and between operations.
- All these objects now have proper ownership semantics with
refcounting: they all require freeing after they are no longer
needed (the repository always keeps its internal reference).
- Repository open and initialization has been updated to keep in
mind the configuration files. Bare repositories are now always
detected, and a default config file is created on init.
- All the tests affected by these changes have been dropped from the
old test suite and ported to the new one.
|
|
533fda3b
|
2011-11-26T02:00:18
|
|
config: test saving config to new file
|
|
b762e576
|
2011-11-17T15:10:27
|
|
filebuf: add GIT_FILEBUF_INIT and protect multiple opens and cleanups
Update all stack allocations of git_filebuf to use GIT_FILEBUF_INIT
and make git_filebuf_open and git_filebuf_cleanup safe to be called
multiple times on the same buffer.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
|
|
1d09a1c8
|
2011-11-22T01:41:22
|
|
clay: Merge manually @leto's tests from #485
This uses the new Clay code. As you can see, the diff is minimal... It
works!
|
|
c515b5bf
|
2011-11-18T02:16:24
|
|
Add test for renaming a file and adding it to the index
Thanks to Emeric.
|
|
d1a721c5
|
2011-11-17T06:01:09
|
|
clay: Bump to 0.9.0, add TAP support
Comes with schu's stress tests for config files. Hopefully the diffs
will stay minimal from now on.
|
|
9ff46db9
|
2011-10-19T13:48:51
|
|
tests-clay: move t01-rawobj.c to clay
Signed-off-by: schu <schu-github@schulog.org>
|
|
3fa735ca
|
2011-10-13T23:17:19
|
|
tree: Add git_tree_frompath() which, given a relative path to a tree entry, retrieves the tree object containing this tree entry
|
|
34aff010
|
2011-10-12T14:06:23
|
|
oid: Add git_oid_streq() which checks if an oid and an hex formatted string are equal
|
|
681008c7
|
2011-10-07T22:31:08
|
|
tests-clay: update clay
The clay script didn't match the latest version from upstream.
Additionaly, add core/strtol.c to complete porting the core tests to
clay.
Signed-off-by: schu <schu-github@schulog.org>
|
|
d02a7d83
|
2011-09-28T18:57:32
|
|
Update Clay
|
|
11385c3c
|
2011-09-16T05:12:56
|
|
Add sample "Status" clay tests
|
|
f1558d9b
|
2011-09-15T01:12:46
|
|
Come out and Clay
|