Russell Belfer
ca94e031fa
Various minor commenting fixes
2012-11-27 15:28:48 -08:00
Russell Belfer
c3fb7d04ed
Make git_odb_foreach_cb take const param
...
This makes the first OID param of the ODB callback a const pointer
and also propogates that change all the way to the backends.
2012-11-27 15:00:49 -08:00
Russell Belfer
f984d97b22
Clarify git_message_prettify comments
2012-11-27 15:00:28 -08:00
Russell Belfer
2bd5998c9c
Remove git_note_data structure
2012-11-27 14:47:39 -08:00
Ben Straub
336d1275ca
API updates for transport.h
2012-11-27 14:18:51 -08:00
Ben Straub
f4a62c306d
Typedef enums.
2012-11-27 14:13:03 -08:00
Ben Straub
1d8ec670be
API updates for stash.h
2012-11-27 14:06:56 -08:00
Ben Straub
ff6b5ac97d
API updates for signature.h
2012-11-27 14:03:53 -08:00
Ben Straub
44d9f2cb60
API updates for revwalk.h
2012-11-27 14:01:24 -08:00
Ben Straub
c9fc4a6ff9
API updates for repository.h
2012-11-27 13:44:49 -08:00
Ben Straub
cb7ac81c4d
Fix warning
2012-11-27 13:30:04 -08:00
Ben Straub
df705148ec
API updates for remote.h
...
Includes typedef for git_direction, and renames for
GIT_DIR_[FETCH|PUSH] to GIT_DIRECTION_(\1).
2012-11-27 13:19:49 -08:00
Ben Straub
74f9132212
API updates for oid.h
2012-11-27 13:18:30 -08:00
Ben Straub
0ed67c1cb4
API updates for odb_backend.h
2012-11-27 13:18:30 -08:00
Ben Straub
2e76b5fc84
API updates for odb.h
2012-11-27 13:18:30 -08:00
Ben Straub
de5596bfd6
API updates for notes.h/c.
2012-11-27 13:18:30 -08:00
Ben Straub
05a3ab61c2
API updates for net.h
2012-11-27 13:18:29 -08:00
Ben Straub
fe55f1631c
API updates for message.h
2012-11-27 13:18:29 -08:00
Ben Straub
eac7695683
Format/documentation tweaks for merge.h
2012-11-27 13:18:29 -08:00
Ben Straub
4ff192d3f2
Move merge functions to merge.c
...
In so doing, promote commit_list to git_commit_list,
with its own internal API header.
2012-11-27 13:18:29 -08:00
Ben Straub
839c5f574f
API updates for indexer.h
2012-11-27 13:18:29 -08:00
Russell Belfer
a8122b5d4a
Fix warnings on Win64 build
2012-11-27 13:18:29 -08:00
Russell Belfer
4604a65460
update internal index API to avoid cast
2012-11-27 13:18:29 -08:00
Russell Belfer
d574de0e6e
API updates for status.h
2012-11-27 13:18:29 -08:00
Russell Belfer
9daf240053
Fixing up some comments in strarray.h
2012-11-27 13:18:29 -08:00
Russell Belfer
16248ee2d1
Fix up some missing consts in tree & index
...
This fixes some missed places where we can apply const-ness to
various public APIs.
There are still some index and tree APIs that cannot take const
pointers because we sort our `git_vectors` lazily and so we can't
reliably bsearch the index and tree content without applying a
`git_vector_sort()` first.
This also fixes some missed places where size_t can be used and
where const can be applied to a couple internal functions.
2012-11-27 13:18:29 -08:00
Ben Straub
f45d51ff8e
API updates for index.h
2012-11-27 13:18:28 -08:00
Russell Belfer
d9023dbe0c
API updates for tag.h
2012-11-27 13:18:28 -08:00
Russell Belfer
9cd423583f
API updates for submodule.h
2012-11-27 13:18:28 -08:00
Russell Belfer
793c438559
Update diff callback param order
...
This makes the diff functions that take callbacks both take
the payload parameter after the callback function pointers and
pass the payload as the last argument to the callback function
instead of the first. This should make them consistent with
other callbacks across the API.
2012-11-27 13:18:28 -08:00
Ben Straub
54b2a37ac7
Clean up config.h
2012-11-27 13:18:28 -08:00
Russell Belfer
eecc805029
Update callback fn ptr for git_reference_foreach
...
As part of API review, use a typedef for the callback fn ptr.
2012-11-27 13:18:28 -08:00
Russell Belfer
e120123e36
API review / update for tree.h
2012-11-27 13:18:28 -08:00
Russell Belfer
824cb2d5e5
Updates to reset.h
2012-11-27 13:18:28 -08:00
Ben Straub
3f63cc9e6d
Examples: fix clone api
2012-11-27 13:18:28 -08:00
Ben Straub
bac695b58c
Examples: fix reference names
2012-11-27 13:18:28 -08:00
Vicent Marti
cfbe4be3fb
More external API cleanup
...
Conflicts:
src/branch.c
tests-clar/refs/branches/create.c
2012-11-27 13:18:27 -08:00
Ben Straub
2508cc66eb
Rename ref and reflog apis for consistency
2012-11-27 13:17:45 -08:00
Vicent Martí
469827812f
Merge pull request #1106 from frasertweedale/fix/freebsd-build
...
fix build on FreeBSD
2012-11-26 05:42:49 -08:00
Fraser Tweedale
9e9aee6705
fix build on FreeBSD
...
3f9eb1e
introduced support for SSL certificates issued for IP
addresses, making use of in_addr and in_addr6 structs. On FreeBSD
these are defined in (a file included in) <netinet/in.h>, so include
that file on FreeBSD and get the build working again.
2012-11-26 23:29:34 +10:00
Vicent Martí
8404f2d67f
Merge pull request #1101 from csware/prevent_die
...
pack.c: Set p->mwf.fd to -1 on error
2012-11-26 03:56:25 -08:00
Vicent Martí
95cd83536f
Merge pull request #1105 from delanne/invalid_read_config_file
...
Fix invalid read reported by valgrind
2012-11-26 03:53:53 -08:00
delanne
f2696fa412
Fix invalid read reported by valgrind
2012-11-26 12:12:41 +01:00
Sven Strickroth
fcb48e0680
Set p->mwf.fd to -1 on error
...
If p->mwf.fd is e.g. -2 then it is closed in packfile_free and an exception might be thrown.
Signed-off-by: Sven Strickroth <email@cs-ware.de>
2012-11-24 15:50:51 +01:00
Vicent Martí
c4d8df27bc
Merge pull request #1097 from nulltoken/topic/head_tree_error
...
Make `git_repository_head_tree()` return error codes
2012-11-23 15:19:47 -08:00
Vicent Martí
28de452a4b
Merge pull request #1093 from libgit2/contributing
...
Create contributing guidelines
2012-11-23 15:18:30 -08:00
Vicent Martí
c9f1658ead
Merge pull request #1098 from scunz/cleanup_in_cleanup
...
Reset all static variables to NULL in clar's __cleanup
2012-11-23 15:17:48 -08:00
Edward Thomson
e226861e8d
Merge pull request #1100 from martinwoodward/fuckityfuck
...
Remove use of English expletives
2012-11-23 11:33:32 -08:00
Martin Woodward
826bc4a81b
Remove use of English expletives
...
Remove words such as fuck, crap, shit etc.
Remove other potentially offensive words from comments.
Tidy up other geopolicital terms in comments.
2012-11-23 13:31:22 +00:00
Sascha Cunz
9094d30b93
Reset all static variables to NULL in clar's __cleanup
...
Without this change, any failed assertion in the second (or a later) test
inside a test suite has a chance of double deleting memory, resulting in
a heap corruption. See #1096 for details.
This leaves alone the test cases where we "just" use cl_git_sandbox_init()
and cl_git_sandbox_cleanup(). These methods already take good care to not
double delete a repository.
Fixes #1096
2012-11-23 11:41:56 +01:00