Commit Graph

584 Commits

Author SHA1 Message Date
nulltoken
f0b2bfe527 Made gitfo_mkdir_recurs() more tolerant.
Doesn't err any more when the directory already exists.
2010-12-17 14:24:47 +01:00
nulltoken
a67a096a9e Added creation of 'objects' and 'refs' directories. 2010-12-17 10:41:56 +01:00
nulltoken
58fcfc26e0 Removed unnecessary git_repository_init_results handling. 2010-12-17 10:36:58 +01:00
nulltoken
1a5204a788 Added gitfo_mkdir_recurs() placeholder. 2010-12-17 10:08:01 +01:00
nulltoken
08190e2ad1 Simplified git_repository_init_results struct. 2010-12-16 15:39:25 +01:00
nulltoken
4b8e27c81e Very first git_repository_init() draft. 2010-12-15 18:25:15 +01:00
Vicent Marti
1f080e2da4 Fix initialization & freeing of inexistent repos
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-13 03:43:56 +02:00
Vicent Marti
5cccfa8999 Merge branch 'timezone-offset' of https://github.com/nulltoken/libgit2 into timezone 2010-12-12 00:33:57 +02:00
Vicent Marti
e0d9e12e50 Update README.md
Add info on libgit2sharp, new build system, and usage guide.

Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-12 00:23:19 +02:00
Vicent Marti
2619dee430 Remove the Visual Studio 2010 solution
Users can automatically generate one for their system using CMake.

Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-12 00:22:57 +02:00
Peter Drahoš
bfe0658ec6 Update install info and test resource path handling 2010-12-12 00:20:43 +02:00
Peter Drahoš
032db4d015 Reflect the recent changes in header organization (CMake) 2010-12-12 00:20:31 +02:00
Peter Drahos
5b8bb8e7c6 Minor modifications for MinGW/Cygwin compatibility. 2010-12-12 00:20:31 +02:00
Peter Drahoš
6484008297 Fix case sensitivity issue. 2010-12-12 00:20:31 +02:00
Peter Drahoš
73c46d539f Add basic testing support and options to specify install paths 2010-12-12 00:20:17 +02:00
Peter Drahoš
7cbdaf7ffa Add option to select sha1 type in CMake build 2010-12-12 00:20:08 +02:00
Peter Drahoš
ec821ca6e4 Update README.md 2010-12-12 00:19:56 +02:00
Peter Drahoš
583cf1696a Add optional CMake build script. 2010-12-12 00:19:49 +02:00
nulltoken
b76d984e0b Added more person parsing tests. 2010-12-11 16:20:57 +01:00
nulltoken
5a386e4d0a Added timezone checks to person parsing tests. 2010-12-11 15:50:07 +01:00
nulltoken
7161beb11e Fixed too much faked timezone offset.
An offset of more than 14 hours makes no sense (cf. http://www.worldtimezone.com/faq.html).
2010-12-11 15:38:22 +01:00
nulltoken
fee065a069 Made possible to parse a person with no specified timezone offset. 2010-12-11 15:34:37 +01:00
nulltoken
13710f1e86 Added timezone offset parsing and outputting. 2010-12-10 16:30:06 +01:00
Vicent Marti
2cd6d6866e Tests now run with the resources folder as a hardcoded path
Each tests expects a "TEST_RESOURCES" define with the full path to the
resources folder.

Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-10 05:53:39 +02:00
nulltoken
6c14d64123 Fixed a memory leak in git_repository_lookup() when provided git_otype is invalid. 2010-12-10 04:45:20 +02:00
Vicent Marti
9de351b258 Move documentation generation to the Waf system
The new command is './waf doxygen'

Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-10 04:38:15 +02:00
Scott Chacon
635cacc6eb fix doxygen setup and automate generation
rakefile for some common tasks and doxygen needs
to look in the new place for headers
2010-12-08 10:35:55 -08:00
Vicent Marti
4eec2c0d4a Set short message when changing a commit's message
Yes, finally.

Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-07 03:55:46 +02:00
Vicent Marti
a44fc1d413 Fix type-conversion warnings
The types in the git_index_entry struct are now system-defaults, and get
truncated to uint32_t's when written back on the index.

Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-06 23:36:21 +02:00
Vicent Marti
f591833095 Add license file to all public headers
Yes, the public headers do need our license.

Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-06 23:08:31 +02:00
Vicent Marti
44908fe763 Change the library include file
Libgit2 is now officially include as

	#include "<git2.h>"

or indidividual files may be included as

	#include <git2/index.h>

Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-06 23:03:16 +02:00
Vicent Marti
d12299fe22 Change include structure for the project
The maze with include dependencies has been fixed.
There is now a global include:

	#include <git.h>

The git_odb_backend API has been exposed.

Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-06 01:14:15 +02:00
Vicent Marti
7d7cd8857a Decouple storage from ODB logic
Comes with two default backends: loose object and packfiles.

Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-06 01:14:15 +02:00
Vicent Marti
86bfec39b5 Revert changes in odb.c to eventually rebase
The odb.c will disappear after the decoupling changes.

Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-06 01:13:09 +02:00
nulltoken
6f02c3bad8 Small source code readability improvements.
Replaced magic number "0" with GIT_SUCCESS constant wherever it made sense.
2010-12-05 20:18:56 +01:00
nulltoken
d3e2dd5ea1 Fixed .gitignore typo. 2010-12-04 14:04:12 +01:00
nulltoken
02286c3375 Added reference to "src/vector.c" to the Visual Studio solution in order to cope with tanoku's latest refactorings. 2010-12-04 13:58:06 +01:00
nulltoken
0d2eb2d88b Added some patterns to .gitignore file to filter out some Visual Studio specifics. 2010-12-04 13:25:29 +01:00
Vicent Marti
654cd5ff7b Fix segfault in t0603 (unitialized pointer)
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-02 21:50:28 +02:00
Vicent Marti
599955586d Fix segfault handler in Mac OS X
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-02 21:48:03 +02:00
Vicent Marti
691aa96817 Add 'git_repository_open2' to customize repo folders
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-02 18:35:38 +02:00
Vicent Marti
eec9523513 Commit parents now use the common 'vector' code
No more linked lists, no more O(n) access.

Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-02 04:58:22 +02:00
Vicent Marti
41109a7e7e Merge branch 'commitparents' of https://github.com/JustinLove/libgit2 into JustinLove-commitparents 2010-12-02 04:42:33 +02:00
Vicent Marti
c4034e63f3 Refactor all 'vector' functions into common code
All the operations on the 'git_index_entry' array and the
'git_tree_entry' array have been refactored into common code in the
src/vector.c file.

The new vector methods support:
	- insertion:	O(1) (avg)
	- deletion:		O(n)
	- searching:	O(logn)
	- sorting:		O(logn)
	- r. access:	O(1)

Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-02 04:31:54 +02:00
Vicent Marti
1e35f929ef Add stack trace to the tests when building with GCC
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-02 04:19:14 +02:00
Justin Love
eb095435f3 add git_commit_parent to retrieve a parent by index 2010-11-30 21:28:39 -06:00
Justin Love
12114415ab add git_commit_parentcount 2010-11-30 21:27:12 -06:00
Vicent Marti
8c1f9e4dc3 Make the bitmasks for Index Entry flags public
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-11-29 18:07:17 +02:00
Vicent Marti
91e8894150 Properly write Index Entry 'flags_extended'
Always write the 'flags_extended' attribute to disk if it's available.

Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-11-29 18:06:22 +02:00
Vicent Marti
a84972d0c4 Add premade solution for compiling in MSVC2010
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-11-28 21:54:06 +02:00