]> git.proxmox.com Git - libgit2.git/log
libgit2.git
13 years agoclay: Fix compilation under MSVC
Vicent Marti [Sat, 1 Oct 2011 11:25:24 +0000 (13:25 +0200)]
clay: Fix compilation under MSVC

13 years agotransport-git: Encapsulation ist gut
Vicent Marti [Sat, 1 Oct 2011 11:10:29 +0000 (13:10 +0200)]
transport-git: Encapsulation ist gut

13 years agohttp-transport: Properly cleanup the WSA context
Vicent Marti [Sat, 1 Oct 2011 10:58:55 +0000 (12:58 +0200)]
http-transport: Properly cleanup the WSA context

13 years agohttp-transport: Update copyright
Vicent Marti [Sat, 1 Oct 2011 10:58:17 +0000 (12:58 +0200)]
http-transport: Update copyright

13 years agoMerge pull request #437 from carlosmn/networking-windows
Vicent Martí [Sat, 1 Oct 2011 10:56:19 +0000 (03:56 -0700)]
Merge pull request #437 from carlosmn/networking-windows

Fix networking on Windows

13 years agoInclude stdint.h in git2/config.h
Carlos Martín Nieto [Sat, 1 Oct 2011 00:09:35 +0000 (02:09 +0200)]
Include stdint.h in git2/config.h

Otherwise MSVC doesn't know what we're talking about when we say
int32_t or int64_t.

Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
13 years agonetops: abstract away socket closing
Carlos Martín Nieto [Fri, 30 Sep 2011 21:48:27 +0000 (23:48 +0200)]
netops: abstract away socket closing

Winsock wants us to use closesocket() instead of close(), so introduce
the gitno_close function, which does the right thing.

Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
13 years agolocal transport: don't segfault on wrong URL
Carlos Martín Nieto [Fri, 30 Sep 2011 16:35:33 +0000 (18:35 +0200)]
local transport: don't segfault on wrong URL

memset the structure on initialisation and don't try to dereference
the vector with the heads if we didn't find a repository.

Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
13 years agoInitialise the winsock DLL
Carlos Martín Nieto [Fri, 30 Sep 2011 15:21:30 +0000 (17:21 +0200)]
Initialise the winsock DLL

Windows wants us to initialise the networking DLL before we're allowed
to send data through a socket. Call WSASetup and WSACleanup if
GIT_WIN32 is defined.

Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
13 years agoUse git_buf in the git request
Carlos Martín Nieto [Fri, 30 Sep 2011 14:55:05 +0000 (16:55 +0200)]
Use git_buf in the git request

This is clearer and sidesteps the issue of what the return value of
snprintf is on the particular OS we're running on.

Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
13 years agoMerge pull request #436 from libgit2/config-int-types
Vicent Martí [Fri, 30 Sep 2011 20:52:01 +0000 (13:52 -0700)]
Merge pull request #436 from libgit2/config-int-types

config: Proper type declarations for 64 bit ints

13 years agocore: One last `long long`
Vicent Marti [Fri, 30 Sep 2011 14:25:03 +0000 (16:25 +0200)]
core: One last `long long`

13 years agoconfig: Proper type declarations for 64 bit ints
Vicent Marti [Fri, 30 Sep 2011 14:08:06 +0000 (16:08 +0200)]
config: Proper type declarations for 64 bit ints

13 years agoconfig: fix check for environment string expansion
Carlos Martín Nieto [Fri, 30 Sep 2011 13:43:58 +0000 (15:43 +0200)]
config: fix check for environment string expansion

If ExpandEnvironmentStringsW is successful, it returns the amount of
characters written, including the NUL terminator.

Thanks to Emeric for reading the MSDN documentation correctly.

Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
13 years agoMerge pull request #434 from schu/fix-ref-regression
Vicent Martí [Fri, 30 Sep 2011 12:14:04 +0000 (05:14 -0700)]
Merge pull request #434 from schu/fix-ref-regression

refs.c: fix reference_rename

13 years agorefs.c: fix reference_rename
schu [Fri, 30 Sep 2011 08:31:41 +0000 (10:31 +0200)]
refs.c: fix reference_rename

6c8b458 removed an "unused" variable needed for git_hashtable_insert2(),
causing a segfault in reference_rename(). Instead, use
git_hashtable_insert().

Signed-off-by: schu <schu-github@schulog.org>
13 years agorepository: export git_repository_config_autoload
Carlos Martín Nieto [Fri, 30 Sep 2011 04:26:29 +0000 (06:26 +0200)]
repository: export git_repository_config_autoload

Take the opportunity to finish the comment about this function.

Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
13 years agomingw: Fix compilation warnings
Vicent Marti [Thu, 29 Sep 2011 15:04:45 +0000 (17:04 +0200)]
mingw: Fix compilation warnings

13 years agonetops: Use pragmas only in MSVC
Vicent Marti [Thu, 29 Sep 2011 14:30:38 +0000 (16:30 +0200)]
netops: Use pragmas only in MSVC

13 years agoindex: Silence type-punned warning
Vicent Marti [Thu, 29 Sep 2011 14:28:00 +0000 (16:28 +0200)]
index: Silence type-punned warning

13 years agomingw: Fix printf identifiers
Vicent Marti [Thu, 29 Sep 2011 14:23:24 +0000 (16:23 +0200)]
mingw: Fix printf identifiers

13 years agoodb: Pass compression settings to filebuf
Vicent Marti [Thu, 29 Sep 2011 13:49:28 +0000 (15:49 +0200)]
odb: Pass compression settings to filebuf

13 years agoodb: Let users decide compression level for the loose ODB
Vicent Marti [Thu, 29 Sep 2011 13:34:17 +0000 (15:34 +0200)]
odb: Let users decide compression level for the loose ODB

13 years agohttp-parser: Disable MSVC warnings locally
Vicent Marti [Thu, 29 Sep 2011 13:24:41 +0000 (15:24 +0200)]
http-parser: Disable MSVC warnings locally

13 years agoResync with upstream http-parser
Carlos Martín Nieto [Wed, 28 Sep 2011 21:54:09 +0000 (23:54 +0200)]
Resync with upstream http-parser

13 years agomsvc: Disable warnings in header file
Vicent Marti [Wed, 28 Sep 2011 21:42:38 +0000 (23:42 +0200)]
msvc: Disable warnings in header file

Remove clutter from the CMakeLists file by disabling the warnings
programatically.

13 years agohttp-parser: More type changes
Vicent Marti [Wed, 28 Sep 2011 18:21:48 +0000 (20:21 +0200)]
http-parser: More type changes

13 years agoChange types in http-parser
Vicent Marti [Wed, 28 Sep 2011 17:27:58 +0000 (19:27 +0200)]
Change types in http-parser

13 years agoUpdate Clay
Vicent Marti [Wed, 28 Sep 2011 16:57:32 +0000 (18:57 +0200)]
Update Clay

13 years agoMerge pull request #432 from carlosmn/msvc
Vicent Martí [Tue, 27 Sep 2011 18:14:23 +0000 (11:14 -0700)]
Merge pull request #432 from carlosmn/msvc

Really fix MSVC

13 years agoReally fix MSVC
Carlos Martín Nieto [Tue, 27 Sep 2011 18:08:13 +0000 (20:08 +0200)]
Really fix MSVC

These was left over from the previous PRs.

Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
13 years agoFix dev branch under MSVC
Carlos Martín Nieto [Fri, 23 Sep 2011 15:36:37 +0000 (17:36 +0200)]
Fix dev branch under MSVC

In libgit2: Move an enum out of an int bitfield in the HTTP transport.

In the parser: Use int bitfields and change some variable sizes to
better fit thir use. Variables that count the size of the data chunk
can only ever be as large as off_t. Warning 4127 can be ignored, as
nobody takes it seriously anyway.

From Emeric: change some variable declarations to keep MSVC happy.

Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
13 years agohttp-parser: Do not use bitfields
Vicent Marti [Tue, 27 Sep 2011 12:53:57 +0000 (14:53 +0200)]
http-parser: Do not use bitfields

Bitfields suck. And if you make them with non-int types, they suck
in a non-standards compliant way. Like sucking sideways or something.

This commit removes all bitfields in the `http_parser` struct, and
replaces them with the minimal type needed to contain their values. Note
that the fields in the struct have been reordered so they can be packed
with 4-byte alignment.

This saves both memory on the parser (because non-int bitfields get expanded to
4byte in most compilers anyway) and time (because the fields are now
properly aligned and the compiler doesn't need to generate bit-level ops
to access them).

13 years agoMake repo config loading automatic or completely explicit
Carlos Martín Nieto [Thu, 22 Sep 2011 20:50:36 +0000 (22:50 +0200)]
Make repo config loading automatic or completely explicit

git_repository_config wants to take the global and system paths again
so that one can be explicit if needed.

The git_repository_config_autoload function is provided for the cases
when it's good enough for the library to guess where those files are
located.

Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
13 years agoAdd git_config_find_system
Carlos Martín Nieto [Thu, 22 Sep 2011 19:34:46 +0000 (21:34 +0200)]
Add git_config_find_system

This allows the library to guess where the system configuration file
should be located.

Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
13 years agoMerge pull request #427 from schu/fix-unused-parameters
Vicent Martí [Tue, 27 Sep 2011 12:35:34 +0000 (05:35 -0700)]
Merge pull request #427 from schu/fix-unused-parameters

t18-status.c: fix unused warnings

13 years agotree: Fix check for valid attributes
Vicent Marti [Tue, 27 Sep 2011 12:31:57 +0000 (14:31 +0200)]
tree: Fix check for valid attributes

13 years agotree: Use an internal append functiont to add new entries
Vicent Marti [Tue, 27 Sep 2011 12:30:14 +0000 (14:30 +0200)]
tree: Use an internal append functiont to add new entries

13 years agoMake use of the tree cache
Carlos Martín Nieto [Sat, 24 Sep 2011 15:06:52 +0000 (17:06 +0200)]
Make use of the tree cache

Taking advantage of the tree cache, git_tree_create_fromindex becomes
comparable in speed to git write-tree when the cache is available.

Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
13 years agoAdd git_tree_cache_get
Carlos Martín Nieto [Tue, 2 Aug 2011 13:27:42 +0000 (15:27 +0200)]
Add git_tree_cache_get

Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
13 years agoInvalidate the path when removing from the index
Carlos Martín Nieto [Tue, 2 Aug 2011 12:38:49 +0000 (14:38 +0200)]
Invalidate the path when removing from the index

Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
13 years agoindex: invalidate added paths
Carlos Martín Nieto [Tue, 26 Jul 2011 13:22:15 +0000 (15:22 +0200)]
index: invalidate added paths

When a file is updated in the index, it's path needs to be invalidated
in the tree cache as the hash is no longer correct.

Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
13 years agoAdd git_tree_cache_invalidate_path
Carlos Martín Nieto [Tue, 26 Jul 2011 12:58:32 +0000 (14:58 +0200)]
Add git_tree_cache_invalidate_path

Whenever a file is updated in the index, each tree leading towards it
needs to be invalidated. Provide the supporting function.

Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
13 years agotree cache: correctly handle invalidated trees
Carlos Martín Nieto [Tue, 26 Jul 2011 10:44:06 +0000 (12:44 +0200)]
tree cache: correctly handle invalidated trees

The fix introduced in a02fc2cd1 (2011-05-24; index: correctly parse
invalidated TREE extensions) threw out the rest of the data in the
extension if it found an invalidated entry. This was the result of
incorrect reading of the documentation.

Insted, keep reading the extension, as there may be cached data we can
use.

Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
13 years agoMake tree cache name a flex-array
Carlos Martín Nieto [Tue, 26 Jul 2011 10:26:12 +0000 (12:26 +0200)]
Make tree cache name a flex-array

Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
13 years agoMove the tree cache functions to their own file
Carlos Martín Nieto [Tue, 26 Jul 2011 09:34:54 +0000 (11:34 +0200)]
Move the tree cache functions to their own file

Rename git_index_tree to git_tree_cache.

Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
13 years agoRevert "Rewrite getenv to use Win32 version on Windows"
Vicent Marti [Thu, 22 Sep 2011 17:44:30 +0000 (20:44 +0300)]
Revert "Rewrite getenv to use Win32 version on Windows"

This reverts commit e1b86444676b70154bf8ab450d429bdef57a8276.

13 years agoMerge pull request #424 from carlosmn/access-unicode
Vicent Martí [Sun, 25 Sep 2011 13:52:01 +0000 (06:52 -0700)]
Merge pull request #424 from carlosmn/access-unicode

Implment p_access and use it in git_fileutils_exists

13 years agot18-status.c: fix unused warnings
schu [Sat, 24 Sep 2011 11:41:10 +0000 (13:41 +0200)]
t18-status.c: fix unused warnings

Signed-off-by: schu <schu-github@schulog.org>
13 years agoImplment p_access and use it in git_fileutils_exists
Carlos Martín Nieto [Thu, 22 Sep 2011 22:00:05 +0000 (00:00 +0200)]
Implment p_access and use it in git_fileutils_exists

Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
13 years agoRevert changes to clay
Paul Betts [Thu, 22 Sep 2011 19:26:23 +0000 (12:26 -0700)]
Revert changes to clay

13 years agoMerge pull request #421 from nulltoken/ntk/fix/config-get-set-long
Vicent Martí [Thu, 22 Sep 2011 17:28:05 +0000 (10:28 -0700)]
Merge pull request #421 from nulltoken/ntk/fix/config-get-set-long

config: make git_config_[get|set]_long() able to properly deal with 8 bytes wide values

13 years agoAdd HTTP sources to Clay suite
Vicent Marti [Thu, 22 Sep 2011 17:23:42 +0000 (20:23 +0300)]
Add HTTP sources to Clay suite

13 years agoMerge pull request #405 from carlosmn/http-ls
Vicent Martí [Thu, 22 Sep 2011 17:17:43 +0000 (10:17 -0700)]
Merge pull request #405 from carlosmn/http-ls

Implement ls-remote over HTTP

13 years agoconfig: make git_config_[get|set]_long() able to properly deal with 8 bytes wide...
nulltoken [Wed, 21 Sep 2011 21:17:39 +0000 (23:17 +0200)]
config: make git_config_[get|set]_long() able to properly deal with 8 bytes wide values

Should fix issue #419.

Signed-off-by: nulltoken <emeric.fermas@gmail.com>
13 years agohttp: get rid of the global state
Carlos Martín Nieto [Wed, 21 Sep 2011 20:14:09 +0000 (22:14 +0200)]
http: get rid of the global state

Move the header parsing state into the transport, making use of the
existing bitfield.

Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
13 years agoRewrite getenv to use Win32 version on Windows
Paul Betts [Wed, 21 Sep 2011 18:17:30 +0000 (11:17 -0700)]
Rewrite getenv to use Win32 version on Windows

13 years agoDo not have duplicate filenames
Vicent Marti [Wed, 21 Sep 2011 11:09:56 +0000 (14:09 +0300)]
Do not have duplicate filenames

Two `posix.c` files may or may not break MSVC builds under 2008. Do not
have repeated objects.

You will need to clean & regenerate CMake.

13 years agoMerge pull request #415 from schu/ref-rename-regression
Vicent Martí [Tue, 20 Sep 2011 22:52:16 +0000 (15:52 -0700)]
Merge pull request #415 from schu/ref-rename-regression

refs: fix git_reference_rename()

13 years agoMerge pull request #413 from libgit2/utf8-paths-win32
Vicent Martí [Tue, 20 Sep 2011 22:38:10 +0000 (15:38 -0700)]
Merge pull request #413 from libgit2/utf8-paths-win32

Rewrite p_* functions to use Unicode and marshal to UTF8 internally, take 2

13 years agoMerge pull request #414 from carlosmn/repo-discover-short
Vicent Martí [Tue, 20 Sep 2011 22:37:55 +0000 (15:37 -0700)]
Merge pull request #414 from carlosmn/repo-discover-short

repsitory: use better error code if path is too short for discover

13 years agoFix clay under MinGW
Vicent Marti [Tue, 20 Sep 2011 22:14:57 +0000 (01:14 +0300)]
Fix clay under MinGW

13 years agoMerge branch 'development' of github.com:libgit2/libgit2 into development
Vicent Marti [Tue, 20 Sep 2011 22:10:11 +0000 (01:10 +0300)]
Merge branch 'development' of github.com:libgit2/libgit2 into development

13 years agorefs: fix git_reference_rename()
schu [Tue, 20 Sep 2011 09:11:59 +0000 (11:11 +0200)]
refs: fix git_reference_rename()

reference_rename() recently failed when renaming an existing reference
refs/heads/foo/bar -> refs/heads/foo because of a change in the
underlying functions / error codes. Fixes #412.

Signed-off-by: schu <schu-github@schulog.org>
13 years agorefs: add additional test for reference renaming
schu [Mon, 19 Sep 2011 20:19:59 +0000 (22:19 +0200)]
refs: add additional test for reference renaming

Signed-off-by: nulltoken <emeric.fermas@gmail.com>
Signed-off-by: schu <schu-github@schulog.org>
13 years agorepsitory: use better error code if path is too short for discover
Carlos Martín Nieto [Tue, 20 Sep 2011 08:02:11 +0000 (10:02 +0200)]
repsitory: use better error code if path is too short for discover

GIT_EOVERFLOW means something different. Use GIT_ESHORTBUFFER. On the
way, remove a redundant sizeof(char).

Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
13 years agoFix opendir/readdir and friends on Win32 to use Unicode
Paul Betts [Mon, 19 Sep 2011 19:41:27 +0000 (12:41 -0700)]
Fix opendir/readdir and friends on Win32 to use Unicode

13 years agoRewrite p_* functions to use Unicode and marshal to UTF8 internally
Paul Betts [Mon, 19 Sep 2011 19:36:12 +0000 (12:36 -0700)]
Rewrite p_* functions to use Unicode and marshal to UTF8 internally

13 years agoFix tests to use portable setenv
Paul Betts [Mon, 19 Sep 2011 17:38:44 +0000 (10:38 -0700)]
Fix tests to use portable setenv

13 years agoCreate cross-platform setenv
Paul Betts [Mon, 19 Sep 2011 17:34:52 +0000 (10:34 -0700)]
Create cross-platform setenv

13 years agoFix `repository_config` call in network::remotes
Vicent Marti [Mon, 19 Sep 2011 03:32:56 +0000 (06:32 +0300)]
Fix `repository_config` call in network::remotes

13 years agoFix warning in `status.c`
Vicent Marti [Mon, 19 Sep 2011 03:31:54 +0000 (06:31 +0300)]
Fix warning in `status.c`

13 years agoAdd remotes test to clay
Carlos Martín Nieto [Mon, 12 Sep 2011 23:13:41 +0000 (01:13 +0200)]
Add remotes test to clay

Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
13 years agoWho makes the magic possible?
Vicent Marti [Mon, 19 Sep 2011 03:14:54 +0000 (06:14 +0300)]
Who makes the magic possible?

13 years agoMerge pull request #384 from kiryl/warnings
Vicent Martí [Mon, 19 Sep 2011 03:07:59 +0000 (20:07 -0700)]
Merge pull request #384 from kiryl/warnings

Add more -W flags to CFLAGS

13 years agoMerge pull request #397 from lambourg/development
Vicent Martí [Mon, 19 Sep 2011 03:00:19 +0000 (20:00 -0700)]
Merge pull request #397 from lambourg/development

Fix compilation issues with mingw64 headers

13 years agoMerge pull request #394 from carlosmn/tree-fromindex
Vicent Martí [Mon, 19 Sep 2011 02:59:34 +0000 (19:59 -0700)]
Merge pull request #394 from carlosmn/tree-fromindex

Use git_treebuilder to write the index as a tree

13 years agoMerge pull request #398 from carlosmn/config-autohome
Vicent Martí [Mon, 19 Sep 2011 02:58:22 +0000 (19:58 -0700)]
Merge pull request #398 from carlosmn/config-autohome

git_repository_config: open global config file automatically

13 years agoMerge pull request #408 from schu/fixup-status
Vicent Martí [Mon, 19 Sep 2011 02:55:48 +0000 (19:55 -0700)]
Merge pull request #408 from schu/fixup-status

Fixup status.c

13 years agoMerge pull request #393 from schu/unused-but-set-variable
Vicent Martí [Mon, 19 Sep 2011 02:54:18 +0000 (19:54 -0700)]
Merge pull request #393 from schu/unused-but-set-variable

filebuf.c: fix unused-but-set warning

13 years agoMerge pull request #392 from sschuberth/development
Vicent Martí [Mon, 19 Sep 2011 02:52:40 +0000 (19:52 -0700)]
Merge pull request #392 from sschuberth/development

Fix a bug and GCC warning introduced in 932669b

13 years agoMerge pull request #400 from boyski/fixup-examples
Vicent Martí [Mon, 19 Sep 2011 02:47:36 +0000 (19:47 -0700)]
Merge pull request #400 from boyski/fixup-examples

Fix up examples code

13 years agoMerge pull request #399 from carlosmn/free-null
Vicent Martí [Mon, 19 Sep 2011 02:46:12 +0000 (19:46 -0700)]
Merge pull request #399 from carlosmn/free-null

Add checks for NULL to the config and remote free functions

13 years agoBackport t18 fixes to Clay
Vicent Marti [Mon, 19 Sep 2011 02:41:00 +0000 (05:41 +0300)]
Backport t18 fixes to Clay

13 years agoMerge pull request #409 from nulltoken/ntk/fix/status-tests-segfault
Vicent Martí [Mon, 19 Sep 2011 02:40:29 +0000 (19:40 -0700)]
Merge pull request #409 from nulltoken/ntk/fix/status-tests-segfault

Fix git_status_foreach tests

13 years agoMerge pull request #411 from boyski/gcc4
Vicent Martí [Mon, 19 Sep 2011 02:38:14 +0000 (19:38 -0700)]
Merge pull request #411 from boyski/gcc4

Don't use '__attribute__ visibility' with gcc unless it's at version 4 or better

13 years agoDon't use '__attribute__ visibility' with gcc unless it's at
David Boyce [Mon, 19 Sep 2011 01:27:25 +0000 (21:27 -0400)]
Don't use '__attribute__ visibility' with gcc unless it's at
version 4 or better.

13 years agoTabify everything
Vicent Marti [Mon, 19 Sep 2011 00:34:49 +0000 (03:34 +0300)]
Tabify everything

There were quite a few places were spaces were being used instead of
tabs. Try to catch them all. This should hopefully not break anything.
Except for `git blame`. Oh well.

13 years agoCleanup legal data
Vicent Marti [Sun, 18 Sep 2011 22:54:32 +0000 (01:54 +0300)]
Cleanup legal data

1. The license header is technically not valid if it doesn't have a
copyright signature.

2. The COPYING file has been updated with the different licenses used in
the project.

3. The full GPLv2 header in each file annoys me.

13 years agostatus.c: add missing check for error
schu [Sat, 17 Sep 2011 15:28:39 +0000 (17:28 +0200)]
status.c: add missing check for error

dirent_cb() didn't check the return value of determine_status().

Signed-off-by: schu <schu-github@schulog.org>
13 years agoAdd some forgotten asserts in the status tests
nulltoken [Sat, 17 Sep 2011 14:28:18 +0000 (16:28 +0200)]
Add some forgotten asserts in the status tests

13 years agoFix a off-by-one error in the git_status_foreach tests
nulltoken [Sat, 17 Sep 2011 14:07:28 +0000 (16:07 +0200)]
Fix a off-by-one error in the git_status_foreach tests

Provided the tests fail (which they should not) and the callback is invoked too many times, this prevents the tests from segfaulting.

13 years agostatus.c: remove wrong address operator
schu [Fri, 16 Sep 2011 11:55:29 +0000 (13:55 +0200)]
status.c: remove wrong address operator

Signed-off-by: schu <schu-github@schulog.org>
13 years agoUpdate Clay script
Vicent Marti [Fri, 16 Sep 2011 17:48:57 +0000 (19:48 +0200)]
Update Clay script

13 years agoFix Clay compilation under Win32
Vicent Marti [Fri, 16 Sep 2011 17:42:44 +0000 (19:42 +0200)]
Fix Clay compilation under Win32

13 years agoRename Clay target in CMakeLists
Vicent Marti [Fri, 16 Sep 2011 03:39:52 +0000 (05:39 +0200)]
Rename Clay target in CMakeLists

This allows to build both test suites at the same time

13 years agoRegenerate test suite
Vicent Marti [Fri, 16 Sep 2011 03:47:18 +0000 (05:47 +0200)]
Regenerate test suite

13 years agoAdd missing prototypes
Vicent Marti [Fri, 16 Sep 2011 03:46:18 +0000 (05:46 +0200)]
Add missing prototypes

13 years agoRevert changes to t18
Vicent Marti [Fri, 16 Sep 2011 03:44:21 +0000 (05:44 +0200)]
Revert changes to t18

...Ops, I broke the old test when porting it to Clay.

13 years agoFixed typo in example Makefile code and slimmed it down more.
David Boyce [Tue, 13 Sep 2011 03:44:39 +0000 (23:44 -0400)]
Fixed typo in example Makefile code and slimmed it down more.
Reverted signature of git_signature_new.
Removed error check wrappers (voted down). Made Makefile
work out of the box on Linux and Solaris when standard
cmake build instructions for the library are followed.