Commit Graph

1632 Commits

Author SHA1 Message Date
Carlos Martín Nieto
44daec4229 Bind the configuration and remotes to a repository
Configurations when taken from a repository and remotes should be
identifiable as coming from a particular repository. This allows us to
reduce the amount of variables that the user has to keep track of.

Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-18 02:34:08 +02:00
Carlos Martín Nieto
da2902204b Download pack
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-18 02:34:07 +02:00
Carlos Martín Nieto
7e1a94db11 Move have sending
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-18 02:34:07 +02:00
Carlos Martín Nieto
b4c9063040 Implement sending haves
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-18 02:34:07 +02:00
Carlos Martín Nieto
0e20ba6066 Add a generic send_wants
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-18 02:34:07 +02:00
Carlos Martín Nieto
65fbc48a17 negotiation 2011-08-18 02:34:07 +02:00
Carlos Martín Nieto
0132cf6438 git_pkt_send_wants 2011-08-18 02:34:07 +02:00
Carlos Martín Nieto
e1f4a76150 Add git_fetch_list_want which creates the "want" list
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-18 02:34:07 +02:00
Vicent Martí
c94bc192e3 Merge pull request #375 from schu/cleanup
cleanup: some nitpicking and missing free's.
2011-08-17 17:33:44 -07:00
schu
d4958b8848 refs.c: remove two lines of dead code
Signed-off-by: schu <schu-github@schulog.org>
2011-08-17 16:37:59 +02:00
schu
e7a3b3171b reflog.c: fix memory leaks
Signed-off-by: schu <schu-github@schulog.org>
2011-08-17 16:37:53 +02:00
schu
31e5909214 git__strndup: immediately return NULL when ENOMEM
Signed-off-by: schu <schu-github@schulog.org>
2011-08-17 15:24:48 +02:00
schu
5a0659fe3b config_file.c: fix memory leaks
Signed-off-by: schu <schu-github@schulog.org>
2011-08-17 14:36:53 +02:00
schu
b6817692a6 tsort.c: fix include of common.h
Signed-off-by: schu <schu-github@schulog.org>
2011-08-17 12:14:47 +02:00
schu
7fade6c63a unix/posix.h: remove redundant include
Signed-off-by: schu <schu-github@schulog.org>
2011-08-17 12:14:12 +02:00
Vicent Martí
ec5b158996 Merge pull request #373 from carlosmn/fancy-branchname
Fix the reference character check for Unicode
2011-08-16 10:13:45 -07:00
Carlos Martín Nieto
50a8fd0367 Fix the reference character check for Unicode
We need to do an unsigned comparison, as otherwise UTF-8 characters
might look like they have the sign bit set and the check will fail.

Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
2011-08-16 18:16:44 +02:00
Vicent Martí
3a97bff3dc Merge pull request #372 from schu/reflog-return-oid
reflog: assimilate API
2011-08-16 01:37:15 -07:00
schu
bcb080b00a reflog: fix memory leaks
Make sure to free the existing reflog when we run out or memory while
adding new entries.

Signed-off-by: schu <schu-github@schulog.org>
2011-08-16 10:17:26 +02:00
schu
e7be57a98b reflog: assimilate reflog API to return git_oid's
Rather than returning the OIDs out of the reflog as string return them
as git_oid.

Signed-off-by: schu <schu-github@schulog.org>
2011-08-15 21:14:51 +02:00
Vicent Martí
bae88c0dc6 Merge pull request #366 from belkiss/development
Add missing GIT_BEGIN_DECL and GIT_END_DECL to indexer header
2011-08-13 09:58:11 -07:00
Lambert CLARA
a6bbb8cab6 Add missing GIT_BEGIN_DECL and GIT_END_DECL to indexer header 2011-08-13 10:56:33 +02:00
Vicent Martí
283573fdb5 Merge pull request #365 from carlosmn/pkg-config
Really fix pkg-config
2011-08-12 16:32:34 -07:00
Vicent Marti
5ae2f0c013 commit: Add support for Encoding header 2011-08-12 16:24:19 -07:00
Carlos Martín Nieto
4fd486e0c2 Really fix pkg-config
Without the @ONLY option, CONFIGURE_FILE would replace the variables
that are meant to be used to pkg-config at configure time.

Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-12 23:57:44 +02:00
Vicent Marti
b2e60e4eb5 Add common.h to types.h 2011-08-10 15:25:37 -07:00
Vicent Martí
3b76be1646 Merge pull request #363 from schu/test-discover0
t12-repo.c: fix failing test discover0
2011-08-10 12:55:39 -07:00
schu
befae28f7b t12-repo.c: fix failing test discover0
discover0 tried to stat a non existing directory. Create it beforehand.

Signed-off-by: schu <schu-github@schulog.org>
2011-08-10 21:19:21 +02:00
Vicent Martí
c24ceffe61 Merge pull request #359 from nulltoken/ntk/fix/discover-tests
Slight enhancement to the Discover test
2011-08-09 17:08:44 -07:00
Vicent Martí
2133c44f6a Merge pull request #355 from jdavid/fix-build
Fix "redefinition of typedef git_indexer" build error
2011-08-09 17:08:18 -07:00
Vicent Martí
4e5210541a Merge pull request #360 from belkiss/development
Fix installation of libgit2.pc file
2011-08-09 17:06:10 -07:00
Vicent Martí
7bc3d0c86d Merge pull request #361 from nulltoken/ntk/fix/wrap-strcmp
util: Add git__strcmp_cb() wrapper
2011-08-09 17:04:48 -07:00
Vicent Martí
86960158fa Merge pull request #362 from schu/fix-missing-initializer
mwindow.c: fix -Wmissing-field-initializers
2011-08-09 17:03:57 -07:00
nulltoken
d1f346931a util: Add git__strcmp_cb() wrapper
We don't want direct pointers to the CRT on Windows, we may get stdcall conflicts.
2011-08-09 22:34:54 +02:00
schu
33e9ee8f12 mwindow.c: fix -Wmissing-field-initializers
Signed-off-by: schu <schu-github@schulog.org>
2011-08-09 12:55:51 +02:00
Lambert CLARA
71e08b330c Fix installation of libgit2.pc file
configure_file outputs by default to binary dir,
and install(files) search from source dir.
2011-08-09 08:52:59 +02:00
nulltoken
ccd122fd03 discover: Make test run in temporary folder instead of altering the test resources folder 2011-08-09 07:34:20 +02:00
Vicent Marti
f6867e639a Fix compilation in Windows 2011-08-08 16:56:28 -07:00
Vicent Marti
09df3f2c0f transport: Wrap strcmp
We don't want direct pointers to the CRT on Windows, we may
get stdcall conflicts.
2011-08-08 11:15:40 -07:00
Vicent Martí
a41bf61222 Merge pull request #357 from carlosmn/calling-convention
Use __stdcall by default on Windows
2011-08-08 11:10:16 -07:00
Vicent Martí
5bd4fb59bc Merge pull request #358 from carlosmn/pkg-config
Create and install pkg-config file
2011-08-07 13:58:59 -07:00
Carlos Martín Nieto
2327a7cc10 Create and install pkg-config file
This hasn't been working since the switch away from waf.

Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-07 18:44:08 +02:00
Carlos Martín Nieto
1b5078f6b1 Use __stdcall by default on Windows
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-06 18:18:12 +02:00
Carlos Martín Nieto
6e6ec54beb Force the test's main function to use cdecl under Windows
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-06 16:33:24 +02:00
Carlos Martín Nieto
8c1d5d4839 Use the internal sort in the local transport
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-06 16:33:24 +02:00
J. David Ibáñez
2d3e417e5f Fix "redefinition of typedef git_indexer" build error
Signed-off-by: J. David Ibáñez <jdavid@itaapy.com>
2011-08-05 15:17:48 +02:00
Vicent Martí
a655cc3571 Merge pull request #353 from belkiss/development
Fix wrong test in t04-commit
2011-08-04 16:50:10 -07:00
Vicent Martí
98bc99bea8 Merge pull request #352 from carlosmn/delta-base-error
Check for error calculating the delta base
2011-08-04 16:48:56 -07:00
Carlos Martín Nieto
97f40a0d5c Check for error calculating the delta base
Don't assume that it's always going to work.

Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-04 22:51:46 +02:00
Lambert CLARA
9d76b934f1 Fix wrong test in t04-commit
Replace all must_pass(strcmp()) by must_be_true(strcmp()==0)
2011-08-04 22:49:39 +02:00