libgit2/src
Russell Belfer 854eccbb2d Clean up GIT_UNUSED macros on all platforms
It turns out that commit 31e9cfc4cbcaf1b38cdd3dbe3282a8f57e5366a5
did not fix the GIT_USUSED behavior on all platforms.  This commit
walks through and really cleans things up more thoroughly, getting
rid of the unnecessary stuff.

To remove the use of some GIT_UNUSED, I ended up adding a couple
of new iterators for hashtables that allow you to iterator just
over keys or just over values.

In making this change, I found a bug in the clar tests (where we
were doing *count++ but meant to do (*count)++ to increment the
value).  I fixed that but then found the test failing because it
was not really using an empty repo.  So, I took some of the code
that I wrote for iterator testing and moved it to clar_helpers.c,
then made use of that to make it easier to open fixtures on a
per test basis even within a single test file.
2012-03-02 15:51:55 -08:00
..
ppc Update Copyright header 2012-02-13 17:11:09 +01:00
transports Clean up GIT_UNUSED macros on all platforms 2012-03-02 15:51:55 -08:00
unix Update diff to use iterators 2012-03-02 15:49:29 -08:00
win32 Clean up GIT_UNUSED macros on all platforms 2012-03-02 15:51:55 -08:00
xdiff Update diff to use iterators 2012-03-02 15:49:29 -08:00
attr_file.c attr: Change the attribute check macros 2012-03-02 03:51:45 +01:00
attr_file.h Update Copyright header 2012-02-13 17:11:09 +01:00
attr.c Clean up GIT_UNUSED macros on all platforms 2012-03-02 15:51:55 -08:00
attr.h Uniform iterators for trees, index, and workdir 2012-02-21 14:46:24 -08:00
blob.c Add filter tests and fix some bugs 2012-03-02 15:09:40 -08:00
blob.h Add filter tests and fix some bugs 2012-03-02 15:09:40 -08:00
bswap.h Update Copyright header 2012-02-13 17:11:09 +01:00
buffer.c Add filter tests and fix some bugs 2012-03-02 15:09:40 -08:00
buffer.h Add filter tests and fix some bugs 2012-03-02 15:09:40 -08:00
cache.c Update Copyright header 2012-02-13 17:11:09 +01:00
cache.h Update Copyright header 2012-02-13 17:11:09 +01:00
cc-compat.h Clean up GIT_UNUSED macros on all platforms 2012-03-02 15:51:55 -08:00
commit.c commit: actually allow yet to be born update_ref 2012-02-15 13:07:41 +01:00
commit.h Update Copyright header 2012-02-13 17:11:09 +01:00
common.h Update Copyright header 2012-02-13 17:11:09 +01:00
config_cache.c config: Add missing file 2012-03-02 21:12:00 +01:00
config_file.c Clean up GIT_UNUSED macros on all platforms 2012-03-02 15:51:55 -08:00
config.c config: Refactor & add git_config_get_mapped 2012-03-01 00:52:21 +01:00
config.h Update Copyright header 2012-02-13 17:11:09 +01:00
crlf.c Add filter tests and fix some bugs 2012-03-02 15:09:40 -08:00
delta-apply.c Update Copyright header 2012-02-13 17:11:09 +01:00
delta-apply.h Update Copyright header 2012-02-13 17:11:09 +01:00
diff_output.c Clean up GIT_UNUSED macros on all platforms 2012-03-02 15:51:55 -08:00
diff.c Clean up GIT_UNUSED macros on all platforms 2012-03-02 15:51:55 -08:00
diff.h Update diff to use iterators 2012-03-02 15:49:29 -08:00
errors.c Update Copyright header 2012-02-13 17:11:09 +01:00
fetch.c Update Copyright header 2012-02-13 17:11:09 +01:00
fetch.h Update Copyright header 2012-02-13 17:11:09 +01:00
filebuf.c Ensure that commits don't fail if committing content that already exists 2012-02-23 17:11:20 -08:00
filebuf.h zlib: Remove custom git2/zlib.h header 2012-02-15 16:56:56 +01:00
fileops.c Update diff to use iterators 2012-03-02 15:49:29 -08:00
fileops.h Update diff to use iterators 2012-03-02 15:49:29 -08:00
filter.c Add filter tests and fix some bugs 2012-03-02 15:09:40 -08:00
filter.h config: Implement a proper cvar cache 2012-03-02 20:08:00 +01:00
global.c Update Copyright header 2012-02-13 17:11:09 +01:00
global.h Update Copyright header 2012-02-13 17:11:09 +01:00
hash.c Update Copyright header 2012-02-13 17:11:09 +01:00
hash.h Update Copyright header 2012-02-13 17:11:09 +01:00
hashtable.c Update Copyright header 2012-02-13 17:11:09 +01:00
hashtable.h Clean up GIT_UNUSED macros on all platforms 2012-03-02 15:51:55 -08:00
ignore.c buffer: Unify git_fbuffer and git_buf 2012-02-27 05:30:07 +01:00
ignore.h Uniform iterators for trees, index, and workdir 2012-02-21 14:46:24 -08:00
index.c buffer: Unify git_fbuffer and git_buf 2012-02-27 05:30:07 +01:00
index.h Update Copyright header 2012-02-13 17:11:09 +01:00
indexer.c zlib: Remove custom git2/zlib.h header 2012-02-15 16:56:56 +01:00
iterator.c Update diff to use iterators 2012-03-02 15:49:29 -08:00
iterator.h Update diff to use iterators 2012-03-02 15:49:29 -08:00
map.h Update Copyright header 2012-02-13 17:11:09 +01:00
mwindow.c Update Copyright header 2012-02-13 17:11:09 +01:00
mwindow.h Update Copyright header 2012-02-13 17:11:09 +01:00
netops.c Update Copyright header 2012-02-13 17:11:09 +01:00
netops.h Update Copyright header 2012-02-13 17:11:09 +01:00
notes.c notes: fix assert 2012-02-16 12:01:09 +01:00
notes.h Add git notes API 2012-02-15 20:32:14 +01:00
object.c Update Copyright header 2012-02-13 17:11:09 +01:00
odb_loose.c buffer: Unify git_fbuffer and git_buf 2012-02-27 05:30:07 +01:00
odb_pack.c Clean up GIT_UNUSED macros on all platforms 2012-03-02 15:51:55 -08:00
odb.c buffer: Unify git_fbuffer and git_buf 2012-02-27 05:30:07 +01:00
odb.h Update Copyright header 2012-02-13 17:11:09 +01:00
oid.c Update diff to use iterators 2012-03-02 15:49:29 -08:00
pack.c zlib: Remove custom git2/zlib.h header 2012-02-15 16:56:56 +01:00
pack.h Update Copyright header 2012-02-13 17:11:09 +01:00
path.c Update diff to use iterators 2012-03-02 15:49:29 -08:00
path.h Update diff to use iterators 2012-03-02 15:49:29 -08:00
pkt.c Clean up GIT_UNUSED macros on all platforms 2012-03-02 15:51:55 -08:00
pkt.h Update Copyright header 2012-02-13 17:11:09 +01:00
posix.c Update Copyright header 2012-02-13 17:11:09 +01:00
posix.h Update diff to use iterators 2012-03-02 15:49:29 -08:00
pqueue.c Update Copyright header 2012-02-13 17:11:09 +01:00
pqueue.h Update Copyright header 2012-02-13 17:11:09 +01:00
protocol.c Update Copyright header 2012-02-13 17:11:09 +01:00
protocol.h Update Copyright header 2012-02-13 17:11:09 +01:00
reflog.c buffer: Unify git_fbuffer and git_buf 2012-02-27 05:30:07 +01:00
reflog.h Update Copyright header 2012-02-13 17:11:09 +01:00
refs.c Clean up GIT_UNUSED macros on all platforms 2012-03-02 15:51:55 -08:00
refs.h Update Copyright header 2012-02-13 17:11:09 +01:00
refspec.c Update Copyright header 2012-02-13 17:11:09 +01:00
refspec.h Update Copyright header 2012-02-13 17:11:09 +01:00
remote.c Clean up GIT_UNUSED macros on all platforms 2012-03-02 15:51:55 -08:00
remote.h Update Copyright header 2012-02-13 17:11:09 +01:00
repository.c config: Implement a proper cvar cache 2012-03-02 20:08:00 +01:00
repository.h config: Implement a proper cvar cache 2012-03-02 20:08:00 +01:00
revwalk.c Clean up GIT_UNUSED macros on all platforms 2012-03-02 15:51:55 -08:00
sha1_lookup.c Update Copyright header 2012-02-13 17:11:09 +01:00
sha1_lookup.h Update Copyright header 2012-02-13 17:11:09 +01:00
sha1.c Update Copyright header 2012-02-13 17:11:09 +01:00
sha1.h Update Copyright header 2012-02-13 17:11:09 +01:00
signature.c Update Copyright header 2012-02-13 17:11:09 +01:00
signature.h Update Copyright header 2012-02-13 17:11:09 +01:00
status.c Update diff to use iterators 2012-03-02 15:49:29 -08:00
tag.c Export parse_tag_buffer as git_tag__parse_buffer. 2012-02-22 04:45:30 +00:00
tag.h Export parse_tag_buffer as git_tag__parse_buffer. 2012-02-22 04:45:30 +00:00
thread-utils.c Update Copyright header 2012-02-13 17:11:09 +01:00
thread-utils.h Update Copyright header 2012-02-13 17:11:09 +01:00
transport.c Clean up GIT_UNUSED macros on all platforms 2012-03-02 15:51:55 -08:00
transport.h Update Copyright header 2012-02-13 17:11:09 +01:00
tree-cache.c Update Copyright header 2012-02-13 17:11:09 +01:00
tree-cache.h Update Copyright header 2012-02-13 17:11:09 +01:00
tree.c tree: break out on write error 2012-02-23 23:00:45 +01:00
tree.h Update Copyright header 2012-02-13 17:11:09 +01:00
tsort.c Update Copyright header 2012-02-13 17:11:09 +01:00
util.c Update Copyright header 2012-02-13 17:11:09 +01:00
util.h util: add git__ishex 2012-02-15 13:07:50 +01:00
vector.c Update diff to use iterators 2012-03-02 15:49:29 -08:00
vector.h Update diff to use iterators 2012-03-02 15:49:29 -08:00