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
Vicent Marti
e5fd5b9429
Update README.md
...
Fix my broken English.
Fix formatting issues in some links.
Add new build flag options.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-11-24 17:56:45 +02:00
Vicent Marti
8507ab12cf
Improve build system for MSVC
...
Add options to select architecture and compiler version.
Removed dependency on 'grep'.
Fix debug mode flags being always empty.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-11-24 17:56:41 +02:00
Vicent Marti
25e9b4dd44
Do proper symbol exports on MSVC
...
Yes, if you are wondering why the shared library was
failing to build under MSVC, it's because it was empty.
Oh wow.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-11-24 17:56:35 +02:00
Vicent Marti
322086f9b1
Do not use STDINT types in public headers
...
Old versions of MSVC don't have such types available.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-11-24 17:56:30 +02:00
Scott Chacon
c5b97d5ae6
update readme to be markdown based
2010-11-23 15:20:03 -08:00
Vicent Marti
b97b386dea
Update the README with info about the new buildsys
...
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-11-24 00:23:26 +02:00
Vicent Marti
0ef70b4a81
Make the test suite depend on the static library
...
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-11-24 00:23:15 +02:00
Vicent Marti
405ac51182
Add --debug flag to toggle debugging
...
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-11-24 00:23:15 +02:00
Vicent Marti
277e45f486
Remove the Makefile from the tests/ folder too
...
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-11-24 00:23:15 +02:00
Vicent Marti
824f4acde2
Fix redeclaration warnings in MSVC
...
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-11-24 00:23:15 +02:00
Vicent Marti
f8b422b6d4
Use the proper Zlib version with MSVC
...
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-11-24 00:23:15 +02:00
Vicent Marti
8b0e448f5c
Removed unreachable code (MSVC warning)
2010-11-24 00:23:15 +02:00
Vicent Marti
43e380a88c
Fix gitfo_isdir() in Win32 systems
...
Because adhering to the POSIX standards is overrated.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-11-24 00:23:15 +02:00