Ben Straub
4cbe9a1be1
Add git_cred_acquire_cb payload to winhttp transport
2012-12-10 11:48:20 -08:00
Vicent Martí
a72a8f34d3
Merge pull request #1132 from ben/cred-acquire-payload
...
Add a payload param to git_cred_acquire_cb
2012-12-10 11:40:49 -08:00
Ben Straub
59bccf33c4
Add a payload param to git_cred_acquire_cb
...
Fixes #1128 .
2012-12-10 11:11:01 -08:00
Ben Straub
72629a10e3
Clean up GCC build warnings
2012-12-10 10:05:31 -08:00
Vicent Martí
22bcf86c5a
Merge pull request #1126 from carlosmn/indexer-buffer
...
indexer: move the temporary buffers into the indexer object
2012-12-10 06:55:59 -08:00
Vicent Martí
cbad0270ca
Merge pull request #1127 from libgit2/fix-mwindow-threading
...
Fix mwindow mutex initialization and error checking
2012-12-10 06:55:13 -08:00
Justin Spahr-Summers
1d00960334
orite C89
2012-12-09 02:40:16 -08:00
Justin Spahr-Summers
2bb1c7aa26
Treat git_mutex_lock as successful when threads are disabled
2012-12-09 02:37:33 -08:00
Justin Spahr-Summers
a35b386458
Always check the result of git_mutex_lock
2012-12-09 02:31:39 -08:00
Justin Spahr-Summers
c3320aca76
git__mwindow_mutex needs to be initialized even with pthreads
...
This could also use PTHREAD_MUTEX_INITIALIZER, but a dynamic initializer seems like a more portable concept, and we won't need another #define on top of git_mutex_init()
2012-12-09 02:22:50 -08:00
Carlos Martín Nieto
6481a68d49
indexer: move the temporary buffers into the indexer object
...
Storing 4kB or 8kB in the stack is not very gentle. As this part has
to be linear, put the buffer into the indexer object so we allocate it
once in the heap.
2012-12-07 19:24:55 +01:00
Vicent Martí
0249a5032e
Merge pull request #1091 from carlosmn/stream-object
...
Indexer speedup with large objects
2012-12-07 09:40:21 -08:00
Vicent Martí
2599237363
Merge pull request #1123 from carlosmn/lax-tree
...
tree: relax the filemode parser
2012-12-07 08:29:53 -08:00
Carlos Martín Nieto
f1c75b94a1
tree: relax the filemode parser
...
There are many different broken filemodes in the wild so we need to
protect against them and give something useful up the chain. Don't
fail when reading a tree from the ODB but normalize the mode as best
we can.
As 664 is no longer a mode that we consider to be valid and gets
normalized to 644, we can stop accepting it in the treebuilder. The
library won't expose it to the user, so any invalid modes are a bug.
2012-12-07 16:59:18 +01:00
Ben Straub
fac43c54a6
Allow compilation as C++
2012-12-06 19:41:52 -08:00
Vicent Marti
ed6a418791
travis: Try this key
2012-12-06 17:39:56 +01:00
Vicent Marti
7be7b42f5c
travis: Fix this hook
2012-12-06 17:08:53 +01:00
Vicent Marti
79c649e4ea
travis: Campfire notifications. Of course.
2012-12-06 15:52:15 +01:00
Vicent Martí
d9a5009ea6
Merge pull request #1120 from arrbee/diff-header-fixes
...
Fix diff header comments and missing const
2012-12-05 14:07:27 -08:00
Russell Belfer
32770c52a8
Fix diff header comments and missing const
...
Based on the recent work to wrap diff in objective-git, this
includes a fix for a missing const and a number of clarifications
of the documentation.
2012-12-05 13:56:32 -08:00
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