Vicent Martí
ef4ef36e3c
Merge pull request #1275 from ethomson/examples_windows
...
update examples to work on windows
2013-01-23 15:55:29 -08:00
Edward Thomson
c27e211219
update examples to work on windows
2013-01-23 17:38:00 -06:00
Vicent Marti
0d52cb4aea
opts: Some basic tests
2013-01-24 00:09:55 +01:00
Vicent Marti
a0f777c87f
opts: Add getters too
2013-01-23 23:44:34 +01:00
Vicent Martí
586f71ef2e
Merge pull request #1273 from sba1/example-diff-fix
...
Don't clear the opt instance in the diff example.
2013-01-22 23:03:53 -08:00
Sebastian Bauer
75a0a80029
Don't clear the opt instance in the diff example.
...
The version field is overwritten otherwise. The opt instance is
already initialized properly.
2013-01-23 07:47:40 +01:00
Vicent Martí
b101fbf9a4
Merge pull request #1271 from libgit2/global-settings
...
Global options setter
2013-01-22 18:55:56 -08:00
Vicent Marti
59853eff99
Global options setter
2013-01-23 02:58:58 +01:00
Russell Belfer
8958fad770
Merge pull request #1270 from libgit2/packed-peeled-objects-fix
...
Allow peeled references without trailing newline at end of file
2013-01-22 16:02:43 -08:00
Scott J. Goldman
5c7b77c4f8
Seperate out a new test that verifies packed-refs with no trailing newline
...
as per @vmg's request
2013-01-22 16:01:03 -08:00
Scott J. Goldman
cb35094be3
Allow peeled references without trailing newline at end of file
...
Also ammends one of the tag tests to make sure it's working.
2013-01-22 15:49:51 -08:00
Vicent Martí
f0f073b740
Merge pull request #1269 from arrbee/tree-iterator-case-sensitivity-bug
...
Fix case sensitivity bug with tree iterators
2013-01-22 15:31:44 -08:00
Russell Belfer
cce548e3e0
Fix case sensitivity bug with tree iterators
...
With the new code to make tree iterators support ignore_case,
there is a bug in setting the start entry for range bounded
iterators where memcmp was being used instead of strncasecmp.
This fixes that and expands the tree iterator test to cover
the cases that were broken.
2013-01-22 15:28:25 -08:00
Scott J. Goldman
2a707d0e24
Revert "Handle packed peeled objects without trailing newlines"
...
This reverts commit 28b1cdf3a1
.
//cc #1262 #1267
2013-01-22 14:08:50 -08:00
Vicent Martí
148c786cd6
Merge pull request #1268 from phkelley/development
...
A simple perf optimization in pack-objects.c
2013-01-22 09:20:09 -08:00
Philip Kelley
47fc264203
Fix gen_pktline format specifier for Win32
2013-01-22 09:25:15 -05:00
Philip Kelley
f4b86126ee
A simple perf optimization in pack-objects.c
2013-01-22 08:30:40 -05:00
Vicent Martí
fad251ae02
Merge pull request #1267 from libgit2/no-newline
...
Handle packed peeled objects without trailing newlines
2013-01-21 15:09:38 -08:00
Scott J. Goldman
28b1cdf3a1
Handle packed peeled objects without trailing newlines
...
Fixes #1262
2013-01-21 14:46:28 -08:00
Vicent Martí
4c723a32f7
Merge pull request #1266 from arrbee/update-clar
...
Update clar to a80e7f30
2013-01-21 13:41:35 -08:00
Russell Belfer
e8a92fe107
Update clar to a80e7f30
2013-01-21 13:39:53 -08:00
Vicent Martí
1bf7bee3bc
Merge pull request #1265 from arrbee/parse-commit-time-as-uint64
...
Parse commit time as uint64_t to avoid overflow
2013-01-21 13:23:13 -08:00
Russell Belfer
965e4e2d31
Parse commit time as uint64_t to avoid overflow
...
The commit time is already stored as a git_time_t, but we were
parsing is as a uint32_t. This just switches the parser to use
uint64_t which will handle dates further in the future (and adds
some tests of those future dates).
2013-01-21 13:19:41 -08:00
Carlos Martín Nieto
d47c6aabfe
commit: don't include the LF in the header field value
...
When the encoding header changed to be treated as an additional
header, the EOL pointer started to point to the byte after the LF,
making the git__strndup call copy the LF into the value.
Increase the EOL pointer value after copying the data to keep the rest
of the semantics but avoid copying LF.
2013-01-20 04:20:09 +01:00
Carlos Martín Nieto
7a2cf780d1
Fix compilation on OpenBSD
2013-01-20 01:57:32 +01:00
Philip Kelley
d77f80d841
Merge pull request #1260 from phkelley/development
...
Fix really bad error handling in git_smart__negotiate_fetch
2013-01-18 12:05:10 -08:00
Philip Kelley
77844988b8
Fix really bad error handling in git_smart__negotiate_fetch
2013-01-18 14:51:46 -05:00
Vicent Martí
537abd4a2c
Merge pull request #1258 from zcbenz/fix_index_remove_test
...
Fix linking error caused by ddcb28a41f
.
2013-01-17 22:09:57 -08:00
Zhao Cheng
c55c624441
Fix linking error caused by ddcb28a41f
.
2013-01-18 13:22:55 +08:00
Vicent Martí
ddcb28a41f
Merge pull request #1239 from ethomson/index_remove
...
add an index_remove_bypath that removes conflicts
2013-01-17 16:56:57 -08:00
Vicent Martí
3a93ab9065
Merge pull request #1256 from arrbee/asciify-test-data
...
Move all non-ascii test data to raw hex
2013-01-17 16:33:40 -08:00
Vicent Martí
214bf53b41
Merge pull request #1257 from ethomson/crlf_test_fix
...
add a git config, don't run crlf tests on non-win32
2013-01-17 16:32:46 -08:00
Edward Thomson
271680d7f4
add a git config, don't run crlf tests on non-win32
2013-01-17 18:18:44 -06:00
Russell Belfer
f63d0ee9fc
Move all non-ascii test data to raw hex
...
This takes all of the characters in core::env and makes them use
hex sequences instead of keeping tricky character data inline in
the test.
2013-01-17 15:47:10 -08:00
Vicent Martí
75f49ae49b
Merge pull request #1244 from carlosmn/pack-evict
...
A comparison of eviction algorithms for the delta base cache
2013-01-17 13:45:52 -08:00
Ben Straub
c49fa037cc
Merge pull request #1247 from sba1/dont-segfault-if-transport-doesnt-support-push
...
Don't segfault if transport doesn't support push.
2013-01-17 13:37:32 -08:00
Vicent Martí
5c8901ab80
Merge pull request #1255 from arrbee/fix-signed-commit-header-parsing
...
Add skipping of unknown commit headers
2013-01-17 13:36:33 -08:00
Vicent Martí
56af285c80
Merge pull request #1254 from ethomson/index_filtered_size
...
cache should contain on-disk (filtered) file size
2013-01-17 13:34:20 -08:00
Sebastian Bauer
b90eb84ff9
Test that pushs properly fail for transports that don't provide a push implementation.
2013-01-17 22:32:37 +01:00
Russell Belfer
291090a076
Add skipping of unknown commit headers
...
This moves the check for the "encoding" header into a loop which
is just scanning for non-required headers at the end of a commit
header. That loop will skip unrecognized lines (including header
continuation lines) until a terminating completely blank line is
found, and only then does it move to reading the commit message.
2013-01-17 13:19:09 -08:00
Edward Thomson
6e959708e5
cache should contain on-disk (filtered) file size
2013-01-17 15:17:32 -06:00
Sebastian Bauer
9bf56c7b1c
Don't segfault if transport doesn't support push.
...
Instead, set an more informative error message.
2013-01-17 20:55:06 +01:00
Vicent Martí
34a4ad46e8
Merge pull request #1211 from arrbee/fix-icase-status-file
...
Fix case insensitivity issues in git_status_file
2013-01-16 15:52:58 -08:00
Vicent Martí
4b45675d7c
Merge pull request #1248 from sba1/doc-fix
...
Some doc improvements in transport.h
2013-01-16 14:20:41 -08:00
Vicent Martí
365485e3c6
Merge pull request #1245 from nulltoken/topic/git_branch_tracking_name
...
Introduce git_branch_tracking_name()
2013-01-16 14:17:48 -08:00
nulltoken
bf031581d3
branch: Introduce git_branch_tracking_name()
2013-01-16 22:56:13 +01:00
nulltoken
28cbd2e2a8
Fix indentations
2013-01-16 22:53:59 +01:00
Sebastian Bauer
62d4fa23a8
Some doc improvements
2013-01-16 12:25:28 +01:00
Russell Belfer
fffe429a20
Shortcut spool and sort for empty iterator
2013-01-15 09:51:35 -08:00
Russell Belfer
25423d03b8
Support case insensitive tree iterators and status
...
This makes tree iterators directly support case insensitivity by
using a secondary index that can be sorted by icase. Also, this
fixes the ambiguity check in the git_status_file API to also be
case insensitive. Lastly, this adds new test cases for case
insensitive range boundary checking for all types of iterators.
With this change, it should be possible to deprecate the spool
and sort iterator, but I haven't done that yet.
2013-01-15 09:51:35 -08:00