Vicent Marti
a9c07c47ea
tests: MSVC fix
2012-12-05 21:06:54 +01:00
Vicent Marti
bf192cdb43
versions: MSVC build fixes
2012-12-05 20:56:27 +01:00
Vicent Marti
43efaabd40
common: Silly vmg.
2012-12-05 20:54:03 +01:00
Vicent Marti
8ff66112d9
common: Silly MSVC
2012-12-05 20:50:19 +01:00
Vicent Martí
e05ca13f1f
Merge pull request #1115 from ben/struct-versions
...
Version info for public structs
2012-12-05 11:47:19 -08:00
Ben Straub
a541eafa60
Fix erroneous whitespace guideline
2012-12-05 08:22:28 -08:00
Edward Thomson
05fc823fce
indentation fix
2012-12-04 16:59:34 -06:00
Vicent Martí
16e6cee2fd
Merge pull request #1119 from ethomson/symlink_cast_ouch
...
Hey that's not an int!
2012-12-04 14:47:25 -08:00
Edward Thomson
aab8f5af4b
hey don't stomp on my memory!
2012-12-04 16:40:09 -06:00
Russell Belfer
46e4227695
Merge pull request #1111 from ethomson/conflictstatus
...
status should ignore conflicts entries in the index
2012-12-03 13:20:39 -08:00
Edward Thomson
b241466133
status should ignore conflicts entries in the index
2012-12-03 14:51:39 -06:00
Ben Straub
ee1c33b146
Don't unconstify when casting
2012-12-03 12:45:15 -08:00
Ben Straub
de70aea6b1
Remove GIT_SIGNATURE_VERSION and friends
2012-12-03 12:41:50 -08:00
Ben Straub
2da619abde
Remove GIT_CRED_VERSION and friends
2012-12-03 12:41:38 -08:00
Vicent Martí
3368c520dc
Merge pull request #1112 from barrbrain/odb-pack-read-header
...
odb-pack: resurrect pack_backend__read_header
2012-12-03 07:38:58 -08:00
Vicent Marti
7ea3a79f0c
Vade retro satana
2012-12-03 16:04:39 +01:00
Vicent Martí
e6b013a042
Merge pull request #1063 from nulltoken/topic/invalid-name
...
EINVALIDSPEC
2012-12-03 06:26:41 -08:00
David Michael Barr
bfb8bcc1df
odb-pack: resurrect pack_backend__read_header
2012-12-03 10:39:17 +11:00
David Michael Barr
44f9f54797
pack: add git_packfile_resolve_header
...
To paraphrase @peff:
You can get both size and type from a packed object reasonably cheaply.
If you have:
* An object that is not a delta; both type and size are available in the
packfile header.
* An object that is a delta. The packfile type will be OBJ_*_DELTA, and
you have to resolve back to the base to find the real type. That means
potentially a lot of packfile index lookups, but each one is
relatively cheap. For the size, you inflate the first few bytes of the
delta, whose header will tell you the resulting size of applying the
delta to the base.
For simplicity, we just decompress the whole delta for now.
2012-12-03 10:39:17 +11:00
nulltoken
cc1466264a
revparse: Deploy EINVALIDSPEC usage
2012-12-01 08:34:31 +01:00
nulltoken
84166facc9
revparse: remove timezone setup in tests
2012-12-01 08:34:30 +01:00
nulltoken
bc05f30c47
object: refine git_object_peel() error report
2012-12-01 08:34:29 +01:00
nulltoken
621730383a
branch: Deploy EINVALIDSPEC usage
2012-12-01 08:34:28 +01:00
nulltoken
18d6f12040
tag: Deploy EINVALIDSPEC usage
2012-12-01 08:34:28 +01:00
nulltoken
80212ecb1c
reflog: Deploy EINVALIDSPEC usage
2012-12-01 08:34:27 +01:00
nulltoken
e4aa7f58fe
refs: cover git_reference_name_to_oid() unfound behavior
2012-12-01 08:34:26 +01:00
nulltoken
80d9d1df14
refs: Deploy EINVALIDSPEC usage
2012-12-01 08:34:26 +01:00
nulltoken
47261d9c8a
tests: drop unused variables
2012-12-01 08:34:25 +01:00
nulltoken
83458bb77f
refs: Fix error clearing
2012-12-01 08:34:24 +01:00
nulltoken
032ba9e4ad
remote: deploy EINVALIDSPEC usage
2012-12-01 08:34:23 +01:00
nulltoken
8b50935a69
errors: Introduce EINVALIDSPEC error code
2012-12-01 08:34:22 +01:00
nulltoken
3da73c40fc
Fix compilation warnings
2012-12-01 08:34:21 +01:00
Ben Straub
7bcfbe16c5
Make constant name all-caps
2012-11-30 20:35:01 -08:00
Ben Straub
0ab3a2ab2c
Deploy GIT_INIT_STRUCTURE
2012-11-30 20:34:50 -08:00
David Michael Barr
d1b6ea8ad1
delta-apply: add git__delta_read_header
2012-12-01 14:50:45 +11:00
Ben Straub
c7231c45fe
Deploy GITERR_CHECK_VERSION
2012-11-30 16:31:42 -08:00
Ben Straub
4ec197f304
Deploy GIT_SIGNATURE_INIT
2012-11-30 13:12:16 -08:00
Ben Straub
1071176900
Deploy versioned git_transport structure
2012-11-30 13:12:15 -08:00
Ben Straub
79cfa20d60
Deploy GIT_STATUS_OPTIONS_INIT
2012-11-30 13:12:15 -08:00
Ben Straub
b4d136527c
Deploy GIT_REPOSITORY_INIT_OPTIONS_INIT
2012-11-30 13:12:15 -08:00
Ben Straub
9267ff586f
Deploy GIT_REMOTE_CALLBACKS_INIT
2012-11-30 13:12:15 -08:00
Ben Straub
55f6f21b7d
Deploy versioned git_odb_backend structure
2012-11-30 13:12:15 -08:00
Ben Straub
ca901e7b0f
Deploy GIT_DIFF_FIND_OPTIONS_INIT
2012-11-30 13:12:15 -08:00
Ben Straub
2f8d30becb
Deploy GIT_DIFF_OPTIONS_INIT
2012-11-30 13:12:14 -08:00
Ben Straub
6917762139
Deploy git_config_backend version
2012-11-30 13:12:14 -08:00
Ben Straub
b81aa2f1de
Deploy GIT_CHECKOUT_OPTS_INIT
2012-11-30 13:12:14 -08:00
Ben Straub
f4fc9fdba0
Cleanup nitpicky things
2012-11-30 13:12:10 -08:00
Ben Straub
bde336ea51
Add version fields and init macros for public input structs.
2012-11-30 12:55:45 -08:00
Carlos Martín Nieto
3908c254aa
indexer: correctly deal with objects larger than the window size
...
A mmap-window is not guaranteed to give you the whole object, but the
indexer currently assumes so.
Loop asking for more data until we've successfully CRC'd all of the
packed data.
2012-11-30 19:16:39 +01:00
Carlos Martín Nieto
5a3ad89dbd
indexer: make use of streaming also for deltas
...
Up to now, deltas needed to be enterily in the packfile, and we tried
to decompress then in their entirety over and over again.
Adjust the logic so we read them as they come, just as we do for full
objects. This also allows us to simplify the logic and have less
nested code. The delta resolving phase still needs to decompress the
whole object into memory, as there is not yet any streaming
delta-apply support, but it helps in speeding up the downloading
process and reduces the amount of memory allocations we need to do.
2012-11-30 15:55:23 +01:00