Commit Graph

2092 Commits

Author SHA1 Message Date
Scott J. Goldman
06ac3e7f34 Fix clar generated code to compile on MINGW32
MINGW32 does not define _mktemp_s, so we can just use _mktemp instead. See
the non-compressed/non-base64-encoded version of the patch here:
http://gist.github.com/2605249
2012-05-05 13:16:48 -07:00
Carlos Martín Nieto
2218fd57a5 tree-cache: don't error out on a childless invalidated entry
The code used to assume that there had to be data after the newline in
a tree cache extension entry. This isn't true for a childless
invalidated entry if it's the last one, as there won't be any children
nor a hash to take up space.

Adapt the off-by-one comparison to also work in this case. Fixes #633.
2012-04-23 10:41:43 -07:00
Vicent Martí
7dbbf4d7f2 Merge pull request #636 from csware/WIN32-fixes
Win32 fixes
2012-04-22 11:34:12 -07:00
Sven Strickroth
8c327228fd Check for _WIN32 instead of GIT_WIN32 or WIN32 to detect windows build environments
This fixes a possible compilation issue (when GIT_WIN32 was not set) which was introduced in revision 69a4bc1988.

Signed-off-by: Sven Strickroth <email@cs-ware.de>
2012-04-21 18:45:32 +02:00
Sven Strickroth
c02f13925a Check for _WIN32 is sufficient, even for x64 compilers
There is no need to check for _WIN32 and _WIN64. x64 compiler also set _WIN32 (compare http://sourceforge.net/apps/mediawiki/predef/index.php?title=Operating_Systems#Windows).

Signed-off-by: Sven Strickroth <email@cs-ware.de>
2012-04-21 18:43:10 +02:00
Vicent Martí
69a4bc1988 Merge pull request #634 from csware/fix-win64-build
WIN32 is not always defined, use GIT_WIN32 instead
2012-04-20 11:24:17 -07:00
Vicent Martí
e8dc508f6a Merge pull request #635 from csware/win32-utf8
GetFileAttributes does not work for utf-8 encoded paths
2012-04-20 11:24:03 -07:00
Sven Strickroth
eb6db16d82 GetFileAttributes does not work for utf-8 encoded paths
Signed-off-by: Sven Strickroth <email@cs-ware.de>
2012-04-20 20:12:48 +02:00
Sven Strickroth
b333fbf968 WIN32 is not always defined, use GIT_WIN32 instead
Signed-off-by: Sven Strickroth <email@cs-ware.de>
2012-04-20 18:51:10 +02:00
Carlos Martín Nieto
31e80290a1 mwindow: make sure the whole range is contained inside the same window
Looking through the open windows to check whether we can re-use an
open window should take into account whether both `offset` and `offset
+ extra` are contained within the same window. Failure to do so can
lead to invalid memory accesses. This closes #614.

While we're in the area remove an outdated assert.
2012-04-04 16:26:08 +02:00
Vicent Martí
bbb3723657 clar: Properly create file in helper 2012-04-04 01:31:29 +02:00
Vicent Martí
a12c291b54 Merge pull request #617 from schu/tests-fixup
tests-clar: cleanup
2012-04-03 04:03:47 -07:00
schu
13ed29664f tests-clar/index: actually assert result
Signed-off-by: schu <schu-github@schulog.org>
2012-04-03 11:09:39 +02:00
schu
a912ea3f9d tests-clar/object: remove unused helper print_tree()
Signed-off-by: schu <schu-github@schulog.org>
2012-04-03 11:08:23 +02:00
schu
daa22dee28 tests-clar/commit: fix memory leaks
Signed-off-by: schu <schu-github@schulog.org>
2012-04-03 11:07:04 +02:00
Vicent Martí
471bb8b120 tests: Cleanup & fix test suite 2012-04-03 04:52:52 +02:00
Vicent Martí
16eaa15059 Merge pull request #606 from benstraub/t04_commit_to_clar
Ported t04_commit.c to Clar.
2012-04-02 17:24:16 -07:00
Vicent Martí
4cba39ac58 Merge pull request #615 from benstraub/port-all-tests-to-clar
Port all tests to clar
2012-04-02 17:23:17 -07:00
Vicent Martí
5afe95d206 travis: Change notify email 2012-04-02 20:45:04 +02:00
Vicent Martí
34a064d962 Merge pull request #616 from drahosp/development
Travis-CI integration
2012-04-02 11:41:15 -07:00
Peter Drahoš
f9abcbdf53 Initial Travis CI build 2012-04-02 00:33:01 +02:00
Peter Drahoš
37029314d4 Added Travis CI build status 2012-04-02 00:32:47 +02:00
Peter Drahoš
3433a69954 Removed my duplicate entry 2012-04-02 00:32:21 +02:00
Ben Straub
b173121555 Simple readability fixes. 2012-03-31 20:12:29 -07:00
Ben Straub
20ec426dde Discovered cl_git_strequal! Mounted a crusade! 2012-03-31 19:47:59 -07:00
Ben Straub
fd29cd13b7 Moved testing resources to clar, and removed old tests directory.
Removed the BUILD_CLAR CMake flag, and updated the readme.
2012-03-31 16:10:01 -07:00
Ben Straub
270303ca7a Moved more assertions inside Clar test helpers. 2012-03-31 15:51:35 -07:00
Ben Straub
9297b6e0a1 Removing test suites that have been ported to Clar:
* t00 / 6e86fb3 (mentioned in #406)
* t01 / fc60c4a (mentioned in #406)
* t03 / bcbabe6
* t04 / PR #606
* t05 / d96f2c3
* t06 / 6c106ee
* t07 / 2ef582b
* t08 / b482c42
* t09 / 9a39a36
* t10 / 00a4893
* t12 / 7c3a4a7
* t13 / 1cb9b31
* t17 / cdaa6ff (mentioned in #406)
* t18 / efabc08
2012-03-31 14:15:18 -07:00
Ben Straub
8e82600e67 Ref normalization test helpers now doing internal asserts. 2012-03-31 14:14:31 -07:00
Ben Straub
1cb9b31e51 t13-threads.c ported. 2012-03-30 13:05:54 -07:00
Ben Straub
7c3a4a7f07 t12-repo.c ported, although kind of messy.
It'd be nice to be rid of all the #define's, but converting to const
char*'s would be even messier, and less declarative.
2012-03-30 12:26:39 -07:00
Ben Straub
00a48934f1 t10-refs.c ported. 2012-03-30 12:05:42 -07:00
Ben Straub
dde61de6bc Fixed linux build/test issues. 2012-03-30 12:05:41 -07:00
Ben Straub
6bb7499312 Moved tag tests to object suite. 2012-03-30 12:05:40 -07:00
Ben Straub
9a39a36424 t09-tree.c ported. 2012-03-30 12:05:39 -07:00
Ben Straub
9f75a9ce78 Turning on runtime checks when building debug under MSVC. 2012-03-30 12:05:39 -07:00
Ben Straub
23cb35fe8c Added Clar build-flag note to readme. 2012-03-30 12:05:38 -07:00
Ben Straub
2df029ed9b Cleaned up build issues under Linux. Had to disable a file-mode check
in tag/write.c.
2012-03-30 12:05:37 -07:00
Ben Straub
b482c420e9 t08_tag.c ported.
Also cleaned up some names for things that used to be macros.
2012-03-30 12:05:36 -07:00
Ben Straub
2ef582b457 t07_hashtable.c ported. 2012-03-30 12:05:35 -07:00
Ben Straub
6c106eeceb t06_index.c ported. 2012-03-30 12:05:34 -07:00
Ben Straub
bcbabe6181 t03_objwrite.c ported. 2012-03-30 12:05:33 -07:00
Vicent Martí
181bbf1498 tree: Fix homing entry search 2012-03-28 19:12:13 +02:00
Russell Belfer
d3dd775ea5 Merge pull request #608 from schu/remove-unused-parameter
diff_output: remove unused parameter
2012-03-21 11:04:32 -07:00
schu
7826d57759 diff_output: remove unused parameter
Signed-off-by: schu <schu-github@schulog.org>
2012-03-21 11:56:01 +01:00
Ben Straub
e0799b6cd0 Ported t04_commit.c to Clar.
Created a copy of tests/resources/testrepo.git that is compatible
with the Clar sandboxing helpers.

Restructured commit test suites to use Clar sandbox helpers.

Now using typed data arrays rather than lots of macros to define test
cases.
2012-03-20 23:11:24 -07:00
Russell Belfer
e71b78b02b Merge pull request #605 from benstraub/win-multi-cpu-compile
Adding multi-cpu compile option when generating MSVC projects.
2012-03-20 22:25:49 -07:00
Ben Straub
06c081e1bc Adding multi-cpu compile option when generating MSVC projects. 2012-03-20 20:47:17 -07:00
schu
288c8a2575 examples/diff: update example code
Signed-off-by: schu <schu-github@schulog.org>
2012-03-13 16:51:16 +01:00
Vicent Martí
a17e882fab Merge pull request #594 from evhan/development
add chicken-git bindings to readme
2012-03-11 14:09:52 -07:00