Commit Graph

10103 Commits

Author SHA1 Message Date
Vicent Marti
0847dff5cd Fix test builds in Win32
Use forward slashes for the TEST_RESOURCES definition. libgit2 uses only
forward slashes.

Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-22 21:57:48 +02:00
Marco Villegas
a58e6a5fc9 Run ldconfig on install at unix platforms. 2010-12-22 13:40:39 -05:00
Marco Villegas
bd6eb23022 minor: Let waf write the right values for prefix and libdir at pkg-config file. 2010-12-22 04:09:24 -05:00
nulltoken
2c08c3f074 Made is_windows_rooted_path() able to cope with awkward but valid relative paths such as "C:..\File.txt".
Path "C:..\File.txt" refers to a file called File.txt located in the parent directory of the current directory on drive C:.
2010-12-21 06:52:07 +01:00
nulltoken
23a1edbd04 Wrapped the detection of a Windows rooted path within a conditional compilation directive. 2010-12-21 05:43:47 +01:00
nulltoken
f2d6a23aa6 Small code maintenability improvement. 2010-12-21 05:21:33 +01:00
nulltoken
8ea2c83b5d Added creation of 'objects/info' and 'objects/pack' directories. 2010-12-20 16:46:13 +01:00
nulltoken
2e29957a79 Made gitfo_mkdir_recurs() skip creation of the root of the path if it looks like a Windows drive. 2010-12-20 10:56:32 +01:00
nulltoken
412de9a637 Made gitfo_mkdir_recurs() gracefully recover when a given directory already exists. 2010-12-20 10:43:23 +01:00
Vicent Marti
40c44d2fb6 Fix issues in repository initialization
Implemented recursive directory creation
Fix style issues

Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-19 22:50:20 +02:00
Vicent Marti
fe93dabeef Merge branch 'repo-init' of https://github.com/nulltoken/libgit2 into nulltoken-repo-init 2010-12-19 21:30:15 +02:00
nulltoken
1c2c7c0d16 Added creation of ref/heads/ and refs/tags/ directories. 2010-12-19 15:08:53 +01:00
nulltoken
8ea7fbc0cd Fixed a nasty bug which was preventing correct generation of the signature. 2010-12-18 22:27:26 +01:00
Vicent Marti
f70cbbc511 Link tests with shared library, not static
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-18 03:16:04 +02:00
Vicent Marti
b5ced41e85 Merge branch 'timezone' 2010-12-18 02:35:45 +02:00
Vicent Marti
638c2ca428 Rename 'git_person' to 'git_signature'
The new signature struct is public, and contains information about the
timezone offset. Must be free'd manually by the user.

Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-18 02:35:33 +02:00
nulltoken
2899093835 Prettified HEAD symlink generation. 2010-12-17 20:03:20 +01:00
nulltoken
d13e7e02a8 Added a comment reminding that the gitfo_mkdir_recurs() is far from being fully implemented. 2010-12-17 15:58:30 +01:00
nulltoken
e1f8cad0c9 Added basic HEAD file creation. 2010-12-17 14:45:02 +01:00
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