Vicent Martí
e311519dce
Merge pull request #411 from boyski/gcc4
...
Don't use '__attribute__ visibility' with gcc unless it's at version 4 or better
2011-09-18 19:38:14 -07:00
David Boyce
d2a1861ea1
Don't use '__attribute__ visibility' with gcc unless it's at
...
version 4 or better.
2011-09-18 21:27:25 -04:00
Vicent Marti
87d9869fc3
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.
2011-09-19 03:34:49 +03:00
Vicent Marti
bb742ede3d
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.
2011-09-19 01:54:32 +03:00
Vicent Marti
934fa904e9
Update Clay script
2011-09-16 19:49:18 +02:00
Vicent Marti
df297a1f65
Fix Clay compilation under Win32
2011-09-16 19:42:44 +02:00
Vicent Marti
48e97ed1f0
Rename Clay target in CMakeLists
...
This allows to build both test suites at the same time
2011-09-16 05:48:50 +02:00
Vicent Marti
fe4aa2066d
Regenerate test suite
2011-09-16 05:47:18 +02:00
Vicent Marti
a5f8c1bd9e
Add missing prototypes
2011-09-16 05:46:18 +02:00
Vicent Marti
bcba84600b
Revert changes to t18
...
...Ops, I broke the old test when porting it to Clay.
2011-09-16 05:44:21 +02:00
Vicent Marti
11385c3c4b
Add sample "Status" clay tests
2011-09-16 05:13:44 +02:00
nulltoken
d8b903dab0
status: enhance determination of statuses for a whole directory
...
- Should increase performance through usage of a walker
- No callback invocation for unaltered entries
2011-09-15 01:14:36 +02:00
nulltoken
56453d3468
status: enhance determination of status for a single file
...
- fix retrieval of a file status when working against a newly initialized repository
- reduce memory pressure
- prevents a directory from being tested
2011-09-15 01:14:36 +02:00
nulltoken
3601c4bfce
repository: Add git_repository_head()
2011-09-15 01:13:50 +02:00
nulltoken
a9daa9bc16
Mark the resources in the test folder as binary to prevent unexpected line-feed conversion
2011-09-15 01:13:50 +02:00
Vicent Marti
f1558d9bca
Come out and Clay
2011-09-15 01:12:46 +02:00
Vicent Martí
edb644dd98
Merge pull request #401 from boyski/document-git-success
...
Document GIT_SUCCESS
2011-09-13 10:51:27 -07:00
David Boyce
d911172255
Standardized doxygen @return lines for int functions to say "GIT_SUCCESS or an error code".
2011-09-13 12:30:25 -04:00
Vicent Martí
3f3f6225f8
Merge pull request #391 from sschuberth/development
...
Warning fixes
2011-09-08 14:20:19 -07:00
Sebastian Schuberth
bac47f1ff8
Add myself to the list of Git authors who consent
2011-09-08 17:13:32 +02:00
Sebastian Schuberth
18136d8306
Fix an integral overflow on 64-bit
2011-09-08 17:09:10 +02:00
Sebastian Schuberth
1c3fac4d5e
Add casts to get rid of some warnings when filling zlib structures
2011-09-08 17:08:57 +02:00
Sebastian Schuberth
353560b440
Get rid of a superfluous pointer cast
2011-09-08 17:08:10 +02:00
Sebastian Schuberth
45e93ef34e
Fix minor indentation issues (spaces to tabs)
2011-09-08 17:07:52 +02:00
Sebastian Schuberth
26e74c6ace
Fix some random size_t vs. int conversion warnings
2011-09-08 17:07:37 +02:00
Vicent Martí
564f0f7be1
Merge pull request #388 from lambourg/master
...
pull request for #387
2011-09-02 06:08:47 -07:00
Jerome Lambourg
13bc2016b7
Fix for issue #387
2011-09-02 13:04:29 +02:00
Vicent Marti
c035ede234
Fix compilation in MinGW
2011-08-31 03:56:57 +02:00
Vicent Marti
2fcf9c8273
posix: Fix undeclared prototype
2011-08-30 11:32:33 -07:00
Vicent Marti
6f1d23b29f
repository: Fix signed/unsigned comp.
2011-08-30 11:27:36 -07:00
Vicent Marti
92e34fa6d6
netops: This is the proper check
2011-08-30 19:48:13 +02:00
Vicent Martí
b298e03b16
Merge pull request #380 from kiryl/no-release-debug
...
CMakeLists: no need in split debug/release build
2011-08-30 10:46:40 -07:00
Vicent Marti
0bd594b61c
netops: Use the size_t, Luke
2011-08-30 19:44:09 +02:00
Carlos Martín Nieto
778e1c739b
Add git_remote_new
...
As we no longer expose the transport functions, this is now the only
way to connect to a remote when given an URL instead of a remote name
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-30 19:37:14 +02:00
Carlos Martín Nieto
b5a8aa94bf
Don't hide the transport details
...
Transports shouldn't get used outside of the library, so don't expose
accessor functions.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-30 19:37:14 +02:00
Carlos Martín Nieto
74bd343ae8
Fix Windows compilation
...
Sockets on Windows are unsigned, so define a type GIT_SOCKET which is
signed or unsigned depending on the platform.
Thanks to Em for his patience with this.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-30 19:37:14 +02:00
Vicent Marti
f978b748bb
compat: Move mkstemp
to the POSIX compat layer
2011-08-30 13:34:14 +02:00
Vicent Marti
3ef7d06302
network: <select.h> is not available in MinGW
2011-08-30 13:10:47 +02:00
Vicent Martí
aa2f68d807
Merge pull request #378 from kiryl/Wuninitialized
...
Wuninitialized
2011-08-30 03:39:28 -07:00
Vicent Martí
420cbdc24d
Merge pull request #379 from kiryl/STRLEN
...
Drop STRLEN() macros
2011-08-25 20:42:03 -07:00
Kirill A. Shutemov
85b9165201
pkt: use sizeof() instead of strlen() to avoid variable length array
...
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
2011-08-26 00:02:06 +03:00
Kirill A. Shutemov
932669b865
Drop STRLEN() macros
...
There is no need in STRLEN macros. Compilers can do this trivial
optimization on its own.
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
2011-08-25 16:41:15 +03:00
Kirill A. Shutemov
0d5aa7d7b8
CMakeLists: no need in split debug/release build
...
With GNU toolchain there's no need to split debug/release build.
It's useful to have -O2 in debug envitonment since GCC show more
warnings in this case. -O2 -g works fine.
For release purpose, debug information can be stripted on later stage.
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
2011-08-25 14:31:19 +03:00
Kirill A. Shutemov
c75a890b60
transport_git: add missed error handling
...
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
2011-08-24 20:11:15 +03:00
Kirill A. Shutemov
d7f0ababe1
Fix false positive -Wuninitialized warnings
...
GCC produces several -Wuninitialized warnings. Most of them can be fixed
if we make visible for gcc that git__throw() and git__rethrow() always
return first argument.
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
2011-08-24 20:10:50 +03:00
Vicent Marti
a7e34e3c85
transport: Merge bitfield
...
I don't think MSVC merges these automatically.
2011-08-18 02:35:28 +02:00
Vicent Marti
84dd3820d4
posix: Properly handle snprintf
in all platforms
2011-08-18 02:35:28 +02:00
Vicent Marti
c85e08b1bd
odb: Do not pass around a header when hashing
2011-08-18 02:34:10 +02:00
Carlos Martín Nieto
7adba5f49c
Keep sending want lines if the server doesn't anwer a flush
...
Some servers take a long time to answer and expect us to keep sending
want lines; otherwise they close the connection. Avoid this by waiting
for one second for the server to answer. If the timeout runs out,
treat is as a NAK and keep sending want lines.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-18 02:34:10 +02:00
Carlos Martín Nieto
427ca3d3c5
Actually implement object negotiation
...
Only signal that we need a pack if we do need it and don't send a want
just because it's the first. If we don't need to download the pack,
then we can skip all of the negotiation and just return success.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-18 02:34:10 +02:00