]> git.proxmox.com Git - libgit2.git/log
libgit2.git
12 years agoMerge pull request #906 from nulltoken/topic/git_reference_peel
Russell Belfer [Tue, 11 Sep 2012 06:15:54 +0000 (23:15 -0700)]
Merge pull request #906 from nulltoken/topic/git_reference_peel

git reference peel

12 years agoAdd missing accessor for fetchRecurseSubmodules
Russell Belfer [Fri, 7 Sep 2012 22:49:08 +0000 (15:49 -0700)]
Add missing accessor for fetchRecurseSubmodules

When `git_submodule` became an opaque structure, I forgot to add
accessor functions for the fetchRecurseSubmodules config setting.
This fixes that.

12 years agoobject: make git_object_peel() test more readable
nulltoken [Tue, 4 Sep 2012 09:17:46 +0000 (11:17 +0200)]
object: make git_object_peel() test more readable

12 years agocheckout: fix documentation code alignment
nulltoken [Mon, 20 Aug 2012 10:30:54 +0000 (12:30 +0200)]
checkout: fix documentation code alignment

12 years agocheckout: cleanup misplaced declaration
nulltoken [Mon, 20 Aug 2012 09:26:02 +0000 (11:26 +0200)]
checkout: cleanup misplaced declaration

12 years agoerrors: deploy GIT_EBAREREPO usage
nulltoken [Wed, 22 Aug 2012 09:30:55 +0000 (11:30 +0200)]
errors: deploy GIT_EBAREREPO usage

12 years agoerrors: introduce GIT_EBAREREPO
nulltoken [Wed, 22 Aug 2012 08:47:25 +0000 (10:47 +0200)]
errors: introduce GIT_EBAREREPO

12 years agorefs: introduce git_reference_peel()
nulltoken [Fri, 24 Aug 2012 19:30:45 +0000 (21:30 +0200)]
refs: introduce git_reference_peel()

Fix #530

12 years agoodb: mark unused variable
Michael Schubert [Thu, 6 Sep 2012 09:35:09 +0000 (11:35 +0200)]
odb: mark unused variable

12 years agoMerge pull request #900 from pwkelley/development
Vicent Martí [Thu, 6 Sep 2012 08:17:23 +0000 (01:17 -0700)]
Merge pull request #900 from pwkelley/development

Expose a malloc function to 3rd party ODB backends

12 years agoMerge pull request #912 from schu/netops-ssl-error
Vicent Martí [Thu, 6 Sep 2012 08:15:14 +0000 (01:15 -0700)]
Merge pull request #912 from schu/netops-ssl-error

netops: be more careful with SSL errors

12 years agodiff: Cleanup documentation and printf compat
Vicent Marti [Thu, 6 Sep 2012 08:13:38 +0000 (10:13 +0200)]
diff: Cleanup documentation and printf compat

12 years agoMerge remote-tracking branch 'arrbee/diff-iterator' into development
Vicent Marti [Thu, 6 Sep 2012 08:08:14 +0000 (10:08 +0200)]
Merge remote-tracking branch 'arrbee/diff-iterator' into development

12 years agoMerge pull request #917 from arrbee/test-issue-835
Russell Belfer [Wed, 5 Sep 2012 23:31:44 +0000 (16:31 -0700)]
Merge pull request #917 from arrbee/test-issue-835

Test for gitmodules only submodule def

12 years agoTest for gitmodules only submodule def
Russell Belfer [Wed, 5 Sep 2012 22:54:32 +0000 (15:54 -0700)]
Test for gitmodules only submodule def

This should confirm that issue #835 is fixed where a submodule that
is only declared in the .gitmodules file was not accessible via the
submodule APIs.

12 years agoFix comments and a minor bug
Russell Belfer [Thu, 30 Aug 2012 23:39:05 +0000 (16:39 -0700)]
Fix comments and a minor bug

This adds better header comments and also fixes a bug in one of
simple APIs that tells the number of lines in the current hunk.

12 years agoDiff iterators
Russell Belfer [Thu, 30 Aug 2012 21:24:16 +0000 (14:24 -0700)]
Diff iterators

This refactors the diff output code so that an iterator object
can be used to traverse and generate the diffs, instead of just
the `foreach()` style with callbacks.  The code has been rearranged
so that the two styles can still share most functions.

This also replaces `GIT_REVWALKOVER` with `GIT_ITEROVER` and uses
that as a common error code for marking the end of iteration when
using a iterator style of object.

12 years agoMerge pull request #856 from libgit2/utf8-win
Vicent Martí [Tue, 4 Sep 2012 21:19:24 +0000 (14:19 -0700)]
Merge pull request #856 from libgit2/utf8-win

Windows: Perform UTF-8 path conversion on the Stack

12 years agobranch: Add missing include
Vicent Marti [Tue, 4 Sep 2012 20:57:31 +0000 (22:57 +0200)]
branch: Add missing include

12 years agoodb: pass the user's data pointer correctly in foreach
Carlos Martín Nieto [Tue, 4 Sep 2012 19:42:00 +0000 (21:42 +0200)]
odb: pass the user's data pointer correctly in foreach

12 years agotravis: use a valgrind suppressions file
Carlos Martín Nieto [Tue, 4 Sep 2012 13:54:33 +0000 (15:54 +0200)]
travis: use a valgrind suppressions file

We don't care about the supposed zlib errors, and the leak from
giterr_set isn't interesting, as it gets freed each time an error is
set.

Give valgrind a suppressions file so it doesn't tell us about them.

12 years agoclar: Clear errors on shutdown
Vicent Marti [Tue, 4 Sep 2012 13:40:05 +0000 (15:40 +0200)]
clar: Clear errors on shutdown

12 years agoMerge pull request #913 from nulltoken/fix/warnings
Vicent Martí [Tue, 4 Sep 2012 08:06:34 +0000 (01:06 -0700)]
Merge pull request #913 from nulltoken/fix/warnings

Fix MSVC compilation warnings

12 years agoFix MSVC compilation warnings
nulltoken [Tue, 4 Sep 2012 08:01:18 +0000 (10:01 +0200)]
Fix MSVC compilation warnings

12 years agonetops: be more careful with SSL errors
Michael Schubert [Tue, 28 Aug 2012 19:58:10 +0000 (21:58 +0200)]
netops: be more careful with SSL errors

SSL_get_error() allows to receive a result code for various SSL
operations. Depending on the return value (see man (3) SSL_get_error)
there might be additional information in the OpenSSL error queue. Return
the queued message if available, otherwise set an error message
corresponding to the return code.

12 years agonetops: continue writing on SSL_ERROR_WANT_WRITE
Michael Schubert [Mon, 3 Sep 2012 22:13:59 +0000 (00:13 +0200)]
netops: continue writing on SSL_ERROR_WANT_WRITE

12 years agoIgnore tags file
Ben Straub [Thu, 30 Aug 2012 14:55:36 +0000 (07:55 -0700)]
Ignore tags file

12 years agoMerge pull request #908 from nulltoken/bug/repo_reinit_init
Russell Belfer [Wed, 29 Aug 2012 18:01:46 +0000 (11:01 -0700)]
Merge pull request #908 from nulltoken/bug/repo_reinit_init

repository: add failing repo initialization test

12 years agorepository: make initialization cope with missing core.worktree
nulltoken [Wed, 29 Aug 2012 12:20:53 +0000 (14:20 +0200)]
repository: make initialization cope with missing core.worktree

12 years agoAdd bounds checking to UTF-8 conversion
Vicent Marti [Wed, 29 Aug 2012 05:19:08 +0000 (22:19 -0700)]
Add bounds checking to UTF-8 conversion

12 years agowindows: Keep UTF-8 on the stack yo
Vicent Marti [Mon, 6 Aug 2012 10:45:59 +0000 (12:45 +0200)]
windows: Keep UTF-8 on the stack yo

12 years agoUTF-8 changes yo
Vicent Martí [Wed, 25 Apr 2012 23:26:12 +0000 (16:26 -0700)]
UTF-8 changes yo

12 years agoMerge pull request #905 from carlosmn/signature-now
Vicent Martí [Tue, 28 Aug 2012 20:55:55 +0000 (13:55 -0700)]
Merge pull request #905 from carlosmn/signature-now

signature: make the OS give us the offset for git_signature_now

12 years agoFix parentheses warning
Michael Schubert [Tue, 28 Aug 2012 18:15:21 +0000 (20:15 +0200)]
Fix parentheses warning

12 years agosignature: make the OS give us the offset for git_signature_now
Carlos Martín Nieto [Tue, 28 Aug 2012 16:02:12 +0000 (18:02 +0200)]
signature: make the OS give us the offset for git_signature_now

There is a better and less fragile way to calculate time offsets. Let
the OS take care of dealing with DST and simply take the the offset
between the local time and UTC that it gives us.

12 years agossl: make cert check ignore work for invalid certs, not just CNs
Carlos Martín Nieto [Tue, 28 Aug 2012 12:15:32 +0000 (14:15 +0200)]
ssl: make cert check ignore work for invalid certs, not just CNs

Passing SSL_VERIFY_PEER makes OpenSSL shut down the connection if the
certificate is invalid, without giving us a chance to ignore that
error. Pass SSL_VERIFY_NONE and call SSL_get_verify_result if the user
wanted us to check.

When no CNs match, we used to jump to on_error which gave a bogus
error as that's for OpenSSL errors. Jump to cert_fail so we tell the
user that the error came from checking the certificate.

12 years agoMerge branch 'branch-delete-ref' into development
Vicent Marti [Mon, 27 Aug 2012 21:54:52 +0000 (14:54 -0700)]
Merge branch 'branch-delete-ref' into development

Conflicts:
include/git2/refs.h

12 years agoMerge pull request #904 from arrbee/better-object-peel
Vicent Martí [Mon, 27 Aug 2012 21:52:26 +0000 (14:52 -0700)]
Merge pull request #904 from arrbee/better-object-peel

Make git_object_peel a bit smarter

12 years agoMerge pull request #897 from nulltoken/topic/git_reference_check_format
Vicent Martí [Mon, 27 Aug 2012 20:39:17 +0000 (13:39 -0700)]
Merge pull request #897 from nulltoken/topic/git_reference_check_format

refs: expose git_reference_normalize_name()

12 years agoMerge pull request #899 from schu/revwalk-push
Vicent Martí [Mon, 27 Aug 2012 20:35:58 +0000 (13:35 -0700)]
Merge pull request #899 from schu/revwalk-push

revwalk: refuse push of non-commit objects

12 years agoMake git_object_peel a bit smarter
Russell Belfer [Mon, 27 Aug 2012 18:53:59 +0000 (11:53 -0700)]
Make git_object_peel a bit smarter

This expands the types of peeling that `git_object_peel` knows
how to do to include TAG -> BLOB peeling, and makes the errors
slightly more consistent depending on the situation.  It also
adds a new special behavior where peeling to ANY will peel until
the object type changes (e.g. chases TAGs to a non-TAG).

Using this expanded peeling, this replaces peeling code that was
embedded in `git_tag_peel` and `git_reset`.

12 years agoMerge pull request #903 from nulltoken/topic/peeling-duplication
Russell Belfer [Mon, 27 Aug 2012 18:45:48 +0000 (11:45 -0700)]
Merge pull request #903 from nulltoken/topic/peeling-duplication

branch: reduce code duplication

12 years agoExpose a malloc function to 3rd party ODB backends
Philip Kelley [Mon, 27 Aug 2012 13:59:13 +0000 (09:59 -0400)]
Expose a malloc function to 3rd party ODB backends

12 years agobranch: reduce code duplication
nulltoken [Mon, 27 Aug 2012 13:24:27 +0000 (15:24 +0200)]
branch: reduce code duplication

12 years agorevwalk: refuse push of non-commit objects
Michael Schubert [Mon, 27 Aug 2012 08:51:01 +0000 (10:51 +0200)]
revwalk: refuse push of non-commit objects

Check the type of the pushed object immediately instead of starting the
walk and failing in between.

12 years agorefs: expose git_reference_normalize_name()
nulltoken [Sun, 26 Aug 2012 20:08:22 +0000 (22:08 +0200)]
refs: expose git_reference_normalize_name()

12 years agobranch: Change `git_branch_delete` to take a ref
Vicent Marti [Thu, 23 Aug 2012 22:47:29 +0000 (15:47 -0700)]
branch: Change `git_branch_delete` to take a ref

12 years agoposix: Always set a default mapping mode
Vicent Marti [Thu, 23 Aug 2012 22:47:08 +0000 (15:47 -0700)]
posix: Always set a default mapping mode

12 years agoindexer: kill git_indexer_stats.data_received
Carlos Martín Nieto [Sat, 25 Aug 2012 22:35:52 +0000 (00:35 +0200)]
indexer: kill git_indexer_stats.data_received

It's not really needed with the current code as we have EOS and the
sideband's flush to tell us we're done.

Keep the distinction between processed and received objects.

12 years agohttp: increase buffer side to deal with side-band-64k
Carlos Martín Nieto [Sat, 25 Aug 2012 21:32:19 +0000 (23:32 +0200)]
http: increase buffer side to deal with side-band-64k

This poor transport was forgotten in the recent sideband support.

12 years agoindexer: don't segfault when freeing an unused indexer
Carlos Martín Nieto [Sat, 25 Aug 2012 21:31:29 +0000 (23:31 +0200)]
indexer: don't segfault when freeing an unused indexer

Make sure that idx->pack isn't NULL before trying to free resources
under it.

12 years agoMerge pull request #896 from ben/revparse-ambiguous
Vicent Martí [Sat, 25 Aug 2012 18:37:23 +0000 (11:37 -0700)]
Merge pull request #896 from ben/revparse-ambiguous

Revparse: GIT_EAMBIGUOUS

12 years agoRevparse: GIT_EAMBIGUOUS
Ben Straub [Thu, 23 Aug 2012 19:29:09 +0000 (12:29 -0700)]
Revparse: GIT_EAMBIGUOUS

Revparse now returns EAMBIGUOUS if the the spec
doesn't match any refs/tags, and is <4 characters.

12 years agoMerge pull request #895 from carlosmn/sideband
Vicent Martí [Fri, 24 Aug 2012 23:29:01 +0000 (16:29 -0700)]
Merge pull request #895 from carlosmn/sideband

Add sideband support

12 years agoMerge pull request #852 from arrbee/submodule-extensions
Vicent Martí [Fri, 24 Aug 2012 22:45:13 +0000 (15:45 -0700)]
Merge pull request #852 from arrbee/submodule-extensions

Submodule extensions

12 years agoMerge pull request #876 from arrbee/new-config-locations
Vicent Martí [Fri, 24 Aug 2012 22:43:19 +0000 (15:43 -0700)]
Merge pull request #876 from arrbee/new-config-locations

new config file locations and defaults

12 years agoSupport new config locations
Russell Belfer [Fri, 24 Aug 2012 21:32:45 +0000 (14:32 -0700)]
Support new config locations

As of git v1.7.12, $HOME/.config/git/ is supported as a new
location for "config", "attributes", and "ignore" files.

12 years agoFix memory leak in cp_r
Russell Belfer [Fri, 24 Aug 2012 21:24:33 +0000 (14:24 -0700)]
Fix memory leak in cp_r

12 years agoFix crash with adding internal ignores
Russell Belfer [Fri, 24 Aug 2012 20:41:45 +0000 (13:41 -0700)]
Fix crash with adding internal ignores

Depending on what you had done before adding new items to the
internal ignores list, it was possible for the cache of ignore
data to be uninitialized.

12 years agoFix valgrind warnings and spurious error messages
Russell Belfer [Fri, 24 Aug 2012 19:19:22 +0000 (12:19 -0700)]
Fix valgrind warnings and spurious error messages

Just clean up valgrind warnings about uninitialized memory
and also clear out errno in some cases where it results in
a false error message being generated at a later point.

12 years agoexamples: add progress output to fetch
Carlos Martín Nieto [Mon, 14 May 2012 18:46:30 +0000 (20:46 +0200)]
examples: add progress output to fetch

12 years agonetwork: add sideband support
Carlos Martín Nieto [Mon, 14 May 2012 15:54:25 +0000 (17:54 +0200)]
network: add sideband support

This lets us notify the user of what the remote end is doing while we
wait for it to start sending us the packfile.

12 years agoWorking implementation of git_submodule_status
Russell Belfer [Fri, 10 Aug 2012 02:43:25 +0000 (19:43 -0700)]
Working implementation of git_submodule_status

This is a big redesign of the git_submodule_status API and the
implementation of the redesigned API.  It also fixes a number of
bugs that I found in other parts of the submodule API while
writing the tests for the status part.

This also fixes a couple of bugs in the iterators that had not
been noticed before - one with iterating when there is a gitlink
(i.e. separate-work-dir) and one where I was treating anything
even vaguely submodule-like as a submodule, more aggressively
than core git does.

12 years agoFix valgrind issues and leaks
Russell Belfer [Fri, 3 Aug 2012 21:28:07 +0000 (14:28 -0700)]
Fix valgrind issues and leaks

This fixes up a number of problems flagged by valgrind and also
cleans up the internal `git_submodule` allocation handling
overall with a simpler model.

12 years agoMajor submodule rewrite
Russell Belfer [Thu, 2 Aug 2012 20:00:58 +0000 (13:00 -0700)]
Major submodule rewrite

This replaces the old submodule API with a new extended API that
supports most of the things that can be done with `git submodule`.

12 years agoNew submodule test data
Russell Belfer [Wed, 18 Jul 2012 21:30:15 +0000 (14:30 -0700)]
New submodule test data

12 years agoFix errors on Win32 with new repo init
Russell Belfer [Fri, 24 Aug 2012 17:48:48 +0000 (10:48 -0700)]
Fix errors on Win32 with new repo init

12 years agoindexer: recognize and mark when all of the packfile has been downloaded
Carlos Martín Nieto [Fri, 13 Jul 2012 10:01:11 +0000 (12:01 +0200)]
indexer: recognize and mark when all of the packfile has been downloaded

We can't always rely on the network telling us when the download is
finished. Recognize it from the indexer itself.

12 years agoMerge pull request #844 from arrbee/init-extended
Vicent Martí [Thu, 23 Aug 2012 21:10:47 +0000 (14:10 -0700)]
Merge pull request #844 from arrbee/init-extended

Add git_repository_init_ext for power initters

12 years agoFix warnings and merge issues on Win64
Russell Belfer [Thu, 23 Aug 2012 16:20:17 +0000 (09:20 -0700)]
Fix warnings and merge issues on Win64

12 years agoSome cleanup suggested during review
Russell Belfer [Wed, 22 Aug 2012 23:03:35 +0000 (16:03 -0700)]
Some cleanup suggested during review

This cleans up a number of items suggested during code review
with @vmg, including:

* renaming "outside repo" config API to `git_config_open_default`
* killing the `git_config_open_global` API
* removing the `git_` prefix from the static functions in fileops
* removing some unnecessary functionality from the "cp" command

12 years agoDon't reference stack vars in cleanup callback
Russell Belfer [Wed, 1 Aug 2012 21:49:47 +0000 (14:49 -0700)]
Don't reference stack vars in cleanup callback

If you use the clar cleanup callback function, you can't pass a
reference pointer to a stack allocated variable because when the
cleanup function runs, the stack won't exist anymore.

12 years agofix missing validation and type cast warning
Russell Belfer [Wed, 1 Aug 2012 21:30:08 +0000 (14:30 -0700)]
fix missing validation and type cast warning

12 years agoAdd template dir and set gid to repo init
Russell Belfer [Wed, 1 Aug 2012 00:02:54 +0000 (17:02 -0700)]
Add template dir and set gid to repo init

This extends git_repository_init_ext further with support for
initializing the repository from an external template directory
and with support for the "create shared" type flags that make a
set GID repository directory.

This also adds tests for much of the new functionality to the
existing `repo/init.c` test suite.

Also, this adds a bunch of new utility functions including a
very general purpose `git_futils_mkdir` (with the ability to
make paths and to chmod the paths post-creation) and a file
tree copying function `git_futils_cp_r`.  Also, this includes
some new path functions that were useful to keep the code
simple.

12 years agoAdd git_repository_init_ext for power initters
Russell Belfer [Thu, 26 Jul 2012 23:07:01 +0000 (16:07 -0700)]
Add git_repository_init_ext for power initters

The extended version of repository init adds support for many
of the things that you can do with `git init` and sets up
structures that will make it easier to extend further in the
future.

12 years agoMinor bug fixes in diff code
Russell Belfer [Wed, 22 Aug 2012 20:57:57 +0000 (13:57 -0700)]
Minor bug fixes in diff code

In looking at PR #878, I found a few small bugs in the diff code,
mostly related to work that can be avoided when processing tree-
to-tree diffs that was always being carried out.  This commit has
some small fixes in it.

12 years agoMerge pull request #891 from arrbee/internal-ignore-api
Vicent Martí [Wed, 22 Aug 2012 20:15:14 +0000 (13:15 -0700)]
Merge pull request #891 from arrbee/internal-ignore-api

API for managing in-memory ignore rules

12 years agoWrap up ignore API and add tests
Russell Belfer [Wed, 22 Aug 2012 18:42:00 +0000 (11:42 -0700)]
Wrap up ignore API and add tests

This fills out the ignore API and adds tests.

12 years agoAdd public API for internal ignores
Russell Belfer [Wed, 22 Aug 2012 00:26:39 +0000 (17:26 -0700)]
Add public API for internal ignores

This creates a public API for adding to the internal ignores
list, which already existing but was not accessible.

This adds the new default value for core.excludesfile also.

12 years agoMerge pull request #889 from nulltoken/filemode-enum
Vicent Martí [Tue, 21 Aug 2012 21:32:09 +0000 (14:32 -0700)]
Merge pull request #889 from nulltoken/filemode-enum

Filemode enum

12 years agotree entry: rename git_tree_entry_attributes() into git_tree_entry_filemode()
nulltoken [Tue, 21 Aug 2012 09:45:16 +0000 (11:45 +0200)]
tree entry: rename git_tree_entry_attributes() into git_tree_entry_filemode()

12 years agofilemode: deploy enum usage
nulltoken [Fri, 17 Aug 2012 19:10:32 +0000 (21:10 +0200)]
filemode: deploy enum usage

12 years agofilemode: introduce enum to ease use of attributes
nulltoken [Fri, 17 Aug 2012 19:15:32 +0000 (21:15 +0200)]
filemode: introduce enum to ease use of attributes

12 years agoWin32: test core.autocrlf
Ben Straub [Tue, 21 Aug 2012 17:10:32 +0000 (10:10 -0700)]
Win32: test core.autocrlf

12 years agoTests: close file handles before asserting
Ben Straub [Tue, 21 Aug 2012 03:24:20 +0000 (20:24 -0700)]
Tests: close file handles before asserting

Avoids getting ERROR_SHARING_VIOLATION on win32
and killing the entire clar run.

12 years agoMerge pull request #884 from carlosmn/global-windows
Vicent Martí [Mon, 20 Aug 2012 19:10:23 +0000 (12:10 -0700)]
Merge pull request #884 from carlosmn/global-windows

Make the memory-window conrol structures global

12 years agoMake the memory-window conrol structures global
Carlos Martín Nieto [Sat, 18 Aug 2012 20:11:49 +0000 (22:11 +0200)]
Make the memory-window conrol structures global

Up to now, the idea was that the user would do all the operations for
one repository in the same thread. Thus we could have the
memory-mapped window information thread-local and avoid any locking.

This is not practical in a few environments, such as Apple's GCD which
allocates threads arbitrarily or the .NET CLR, where the OS-level
thread can change at any moment.

Make the control structure global and protect it with a mutex so we
don't depend on the thread currently executing the code.

12 years agoMerge pull request #879 from nulltoken/deprecated-mode
Vicent Martí [Sun, 19 Aug 2012 22:12:43 +0000 (15:12 -0700)]
Merge pull request #879 from nulltoken/deprecated-mode

Handling of 100664 deprecated mode in tree entries

12 years agotreebuilder: enhance attributes handling on insertion
nulltoken [Fri, 17 Aug 2012 09:21:49 +0000 (11:21 +0200)]
treebuilder: enhance attributes handling on insertion

12 years agoAdd deprecated-mode.git test repository
nulltoken [Thu, 16 Aug 2012 09:53:24 +0000 (11:53 +0200)]
Add deprecated-mode.git test repository

12 years agoMerge pull request #778 from ben/clone
Vicent Martí [Sun, 19 Aug 2012 08:26:06 +0000 (01:26 -0700)]
Merge pull request #778 from ben/clone

Clone

12 years agoMerge pull request #877 from nulltoken/minor-fixes
Vicent Martí [Wed, 15 Aug 2012 21:34:49 +0000 (14:34 -0700)]
Merge pull request #877 from nulltoken/minor-fixes

Minor fixes

12 years agorefs: fix missing parameter documentation
nulltoken [Wed, 15 Aug 2012 15:54:05 +0000 (17:54 +0200)]
refs: fix missing parameter documentation

12 years agonotes: slight documentation enhancements
nulltoken [Wed, 15 Aug 2012 15:50:02 +0000 (17:50 +0200)]
notes: slight documentation enhancements

12 years agoFix compilation warning
nulltoken [Tue, 14 Aug 2012 22:08:38 +0000 (00:08 +0200)]
Fix compilation warning

12 years agotests: fix tree walking test
Carlos Martín Nieto [Tue, 14 Aug 2012 18:54:13 +0000 (20:54 +0200)]
tests: fix tree walking test

Return -1 to stop the iteration instead of not-0

12 years agoMerge pull request #873 from carlosmn/tree-walk
Carlos Martín Nieto [Tue, 14 Aug 2012 18:43:20 +0000 (11:43 -0700)]
Merge pull request #873 from carlosmn/tree-walk

git_tree_walk callback return value semantic does not match documentation

12 years agoMerge pull request #875 from arrbee/fix-message-prettify-length-check
Russell Belfer [Tue, 14 Aug 2012 18:30:18 +0000 (11:30 -0700)]
Merge pull request #875 from arrbee/fix-message-prettify-length-check

Fix message prettify length check

12 years agoMake git_message_prettify return bytes written
Russell Belfer [Tue, 14 Aug 2012 17:50:58 +0000 (10:50 -0700)]
Make git_message_prettify return bytes written

If you want to be absolutely safe with git_message_prettify, you
can now pass a NULL pointer for the buffer and get back the number
of bytes that would be copied into the buffer.

This means that an error is a non-negative return code and a
success will be greater than zero from this function.

12 years agoMerge pull request #871 from joshtriplett/fix-note_foreach-docs
Vicent Martí [Tue, 14 Aug 2012 04:04:27 +0000 (21:04 -0700)]
Merge pull request #871 from joshtriplett/fix-note_foreach-docs

git_note_foreach: Fix documentation for notes_ref parameter