Vicent Marti
6f9024a72b
Add Delphi bindings to the readme
...
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2011-01-08 21:54:14 +02:00
Scott Chacon
e04c709551
added links to php and lua bindings
2011-01-08 08:02:45 -08:00
Robert G. Jakabosky
4b64c37f68
Fixed memory leak in git_commit__free().
2011-01-08 02:22:22 -08:00
Vicent Marti
2645053be2
Find proper path to 'ldconfig' on wscript
...
Don't hardcode the '/sbin/ldconfig' path; also, don't run anything if
ldconfig cannot be found (Mac OS X, for instance).
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2011-01-04 01:17:07 +02:00
Vicent Marti
e52ed7a559
Split object methods from repository.c
...
All the relevant git_object methods have been moved to object.c
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2011-01-03 22:34:27 +02:00
Vicent Marti
fb3cd6bca4
Make internal methods static
...
Keep all the repository init code as static.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2011-01-03 21:46:18 +02:00
Vicent Marti
d5f2520413
Merge branch 'repo-init' of https://github.com/nulltoken/libgit2 into nulltoken-repo-init
2011-01-03 21:41:19 +02:00
Vicent Marti
e0646b38c7
Add generic hash function to util.c
...
It's MurmurHash3 slightly edited to make it
cross-platform. Fast and neat.
Use this for hashing strings on hash tables instead
of a full SHA1 hash. It's very fast and well distributed.
Obviously not crypto-secure.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-30 00:31:58 +02:00
nulltoken
951d06e4e9
Fixed placement of pointer argument.
2010-12-26 17:00:35 +01:00
nulltoken
98e3b29895
Merge branch 'master' into repo-init
2010-12-23 09:22:15 +01:00
Vicent Marti
51035184dd
Prevent test manifests from being run
...
The test runner was running the manifest and other crap files. Now it
filters out to just the executables.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-23 01:00:40 +02:00
Vicent Marti
e6c8966d37
Merge branch 'call-ldconfig-on-unix' of https://github.com/marvil07/libgit2
2010-12-23 00:49:34 +02:00
Vicent Marti
f464965584
Merge branch 'waf-pkgconfig-typo' of https://github.com/marvil07/libgit2
2010-12-23 00:48:35 +02:00
Vicent Marti
e035685f27
Revert "Properly export all external symbols in Win32"
...
It is not a good idea to export these internal symbols now that they are
not required to run the unit tests.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-23 00:44:41 +02:00
Vicent Marti
e7379f3384
Link tests with the raw objects
...
Fix the test building issues once for all; each test is linked
with the raw objects of the library, not with any compiled version. That
way we make sure the tests always run, and are always linked with the
latest and most up-to-date version of the code.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-23 00:43:07 +02:00
Vicent Marti
9f54fe482d
Remove git_errno
...
It was not being used by any methods (only by malloc and calloc), and
since it needs to be TLS, it cannot be exported on DLLs on Windows.
Burn it with fire. The API always returns error codes!
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-23 00:15:09 +02:00
Vicent Marti
11f6646f03
Export TLS symbols properly in Win32
...
There was no export definition for GIT_EXTERN_TLS() under MSVC.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-22 22:51:24 +02:00
Vicent Marti
2a18a792e3
Properly export all external symbols in Win32
...
Some external functions were not being exported because they were using
the 'extern' keyword instead of the generic GIT_EXTERN() macro.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-12-22 22:43:39 +02:00
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