Carlos Martín Nieto
3d5a02b653
Plug an index leak
...
The test wasn't updated when repos lost ownership of indices
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
2011-06-16 20:30:40 +02:00
Carlos Martín Nieto
038d2fc343
Plug leaks in the repo discovery tests
...
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
2011-06-16 20:24:51 +02:00
Carlos Martín Nieto
b2e361cc5e
Plug two leaks in config writing
...
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
2011-06-16 20:22:05 +02:00
Vicent Marti
d144c569f3
Update documentation
...
Fix all the missmatched arguments in the docs
2011-06-16 03:06:22 +02:00
Vicent Marti
f1d018513a
oid: Uniformize ncmp methods
...
Drop redundant methods. The ncmp method is now public
2011-06-16 02:50:08 +02:00
Vicent Marti
fa48608ec3
oid: Rename methods
...
Yeah. Finally. Fuck the old names, this ain't POSIX
and they don't make any sense at all.
2011-06-16 02:36:21 +02:00
Vicent Marti
43521d0688
refs: Rename git_referece_listcb to _foreach
...
Same name as `git_config_foreach`
2011-06-16 02:27:43 +02:00
Vicent Martí
607d164380
Merge pull request #248 from carlosmn/config
...
Implement config writing
2011-06-15 17:24:04 -07:00
Vicent Marti
536955f9d7
Add method to get the compiled version of the lib
2011-06-16 02:21:33 +02:00
Vicent Martí
ef9a6f4cbc
Merge pull request #261 from Romain-Geissler/discovery-path-v2
...
Fix: GIT_PATH_PATH_SEPARATOR is now a semi-colon under Windows.
2011-06-15 13:47:41 -07:00
Romain Geissler
0657e46dee
Fix: GIT_PATH_PATH_SEPARATOR is now a semi-colon under Windows.
...
GIT_PATH_LIST_SEPARATOR and GIT_PATH_MAX are made public so
that it's can be used by a client.
2011-06-15 22:11:18 +02:00
Vicent Martí
f2bb894e64
Merge pull request #251 from nulltoken/fix/msvc-warnings
...
Fix compilation warnings in MSVC
2011-06-15 12:15:11 -07:00
Vicent Martí
1aa1b09e73
Merge pull request #260 from nulltoken/fix/git_index_add
...
Fix git_index_add()
2011-06-15 12:11:59 -07:00
nulltoken
8e11e707f3
git_index_add: enforce test coverage
2011-06-15 21:10:16 +02:00
nulltoken
a64bf21bbb
blob: Fix git_blob_create_fromfile()
2011-06-15 21:10:10 +02:00
nulltoken
63fadf99dc
Add mode_t definition in MSVC compat layer
2011-06-15 19:45:33 +02:00
Vicent Martí
61438604b2
Merge pull request #259 from schu/nitpicky-markdown
...
README.md: do not break syntax highlighting
2011-06-15 10:39:20 -07:00
Scott Chacon
96da90ae1f
update examples content to be compilable and up to date
2011-06-15 09:40:06 -07:00
schu
8087bb937e
README.md: do not break syntax highlighting
...
Signed-off-by: schu <schu-github@schulog.org>
2011-06-15 14:08:43 +02:00
Scott Chacon
2e6d8ec436
fix the example urls
2011-06-14 16:02:23 -07:00
Scott Chacon
388f37b37b
add examples for docs
2011-06-14 14:18:13 -07:00
Scott Chacon
742e3fc92e
replace stupid doxygen
2011-06-14 14:18:13 -07:00
Vicent Marti
f64586fab6
Add CTest support for CI
2011-06-14 20:00:06 +02:00
Scott Chacon
737406b7ab
fix gid_ misspelling
2011-06-14 09:31:19 -07:00
Em
904125075e
Port MSVC specific Waf compilation flags to CMake and remove dynamic dependence to msvcr100.dll on Windows
...
The '/MT' and '/MTd' flags replace the dynamic link to 'msvcr100.dll' with a static link to 'libcmt.lib'. This has the nice effect to ease the deployment of libgit2 by removing the dependence on 'msvcr100.dll' which is not deployed by default on Windows.
2011-06-14 17:40:18 +02:00
Vicent Marti
7548b8afa3
Update README.md
2011-06-14 17:40:18 +02:00
Vicent Marti
953e1f9366
build: Cleanup CMake
2011-06-14 17:40:18 +02:00
Vicent Marti
1a7b52dcc9
build: Drop waf support
...
Goodbye Waf. It's been a long ride.
2011-06-14 17:40:17 +02:00
Vicent Marti
b023321669
Remove custom backends
...
All the custom backend code will be moved to a separate project,
together with the new MySQL backend.
2011-06-14 17:40:17 +02:00
Vicent Martí
0f49a58901
Merge pull request #258 from carlosmn/no-arpa
...
Remove uneeded arpa/inet.h include
2011-06-14 08:28:03 -07:00
Carlos Martín Nieto
2e18e29b57
Remove uneeded arpa/inet.h include
...
This header isn't needed at all and it shows a lot of warnings on
OpenBSD.
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
2011-06-14 17:03:25 +02:00
Carlos Martín Nieto
a98b0d80dc
Test replacing a value
...
Add a test to check that value replacement works.
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
2011-06-14 14:26:08 +02:00
Carlos Martín Nieto
711b1096f3
Indent config variables with tags
...
Confg variables are indended using tags and not four spaces as was
being done by the code.
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
2011-06-14 13:09:40 +02:00
nulltoken
95818ff73a
Fix filebuf0 test which was failing on Windows
2011-06-12 07:37:56 +02:00
nulltoken
9e3aa94764
Fix compilation warnings in MSVC
2011-06-12 07:37:50 +02:00
Brian Lopez
a51201cc73
use proper in-memory database for sqlite3 tests
2011-06-11 22:06:02 -07:00
Vicent Martí
63ad439405
Merge pull request #253 from sschuberth/msvc10-fixes
...
Msvc10 fixes
2011-06-11 11:56:10 -07:00
Sebastian Schuberth
e6480970b4
Add missing function declarations to avoid MSVC compiler warnings
...
The better solution would probably be to turn the gitfo_lstat /
gitfo_readlink macros into real functions that wrap either lstat or
gitfo_lstat__w32 (and readlink or gitfo_readlink__w32). However, that
would introduce an indirection unless inlined. For now, this is the less
intrusive change.
2011-06-10 14:00:54 +02:00
Sebastian Schuberth
3f66c20202
Use "__inline" instead of "inline" with MSVC
...
MSVC supports "inline" only in C++ code, not in C code.
2011-06-10 13:57:01 +02:00
Sebastian Schuberth
c1802641ff
Prefer to use file mode defines instead of raw numbers
2011-06-10 13:56:24 +02:00
Sebastian Schuberth
535ff384e2
Prefer to use S_IFLNK instead of _S_IFLNK for consistency
2011-06-10 13:54:47 +02:00
Sebastian Schuberth
732eb0a8d9
Add some missing MSVC compatibility defines
2011-06-10 13:54:25 +02:00
Vicent Martí
e3f56a2b57
Merge pull request #216 from glesserd/development
...
git_tag_create{,_o,_frombuffer} correction and improvement
2011-06-08 08:11:26 -07:00
Vicent Martí
4e1543ff6e
Merge pull request #250 from pegonma/commit_short_message
...
Commit short message should be the same as git's
2011-06-08 08:09:54 -07:00
Vicent Marti
ae496955d2
windows: Fix Symlink issues
...
Handle Symlinks if they can be handled in Win32. This is not even
compiled. Needs review.
The lstat implementation is modified from core Git.
The readlink implementation is modified from PHP.
2011-06-08 17:03:41 +02:00
Vicent Martí
1071c56519
Merge pull request #246 from carlosmn/keep-lock
...
Keep the lockfile if we fail to lock it
2011-06-08 04:16:47 -07:00
Marc Pegon
858ef372a4
Changed commit short messages so that they match git log --oneline output.
...
In git, the short message of a commit is the part of the commit message before 2 consecutive line breaks. In the short message, line breaks are replaced by space characters.
2011-06-08 11:16:31 +02:00
Carlos Martín Nieto
8bb198e674
config: implement config writing
...
After each variable gets set, we store it in our list (not completely
in the right position, but the close enough). Then we write out the
new config file in the same way that git.git does it (keep the rest of
the file intact and insert or replace the variable in its line).
Overwriting variables and adding new ones is supported (even on new
sections), though deleting isn't yet.
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
2011-06-08 00:23:25 +02:00
Carlos Martín Nieto
3b3577c764
config: store new variables with the internal representation of the section
...
The section name should be stored in its case-sensitive variant when
we are adding a new variable. Use the internalize_section function to
do just that.
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
2011-06-08 00:23:12 +02:00
Carlos Martín Nieto
5ab50417b7
Remove an unfortunate optimisation from cvar_match_section
...
The (rather late) early-exit code, which provides a negligible
optimisation causes cvar_match_section to return false negatives when
it's called with a section name instead of a full variable name.
Remove this optimisation.
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
2011-06-08 00:12:26 +02:00