]> git.proxmox.com Git - libgit2.git/log
libgit2.git
11 years agoremote: fix git_remote_download() documentation
Carlos Martín Nieto [Tue, 23 Jul 2013 08:51:14 +0000 (10:51 +0200)]
remote: fix git_remote_download() documentation

The description of what the function does hasn't been true for quite a
while. Change it to reflect the way it currently works.

While here, remove an even older comment about missing features that
have been implemented.

11 years agoClean up some documentation
Carlos Martín Nieto [Tue, 23 Jul 2013 07:40:19 +0000 (09:40 +0200)]
Clean up some documentation

clang's docparser highlighted these.

11 years agoMerge pull request #1732 from libgit2/revwalk-glob-should-ignore-invalid
Vicent Martí [Tue, 23 Jul 2013 06:59:08 +0000 (23:59 -0700)]
Merge pull request #1732 from libgit2/revwalk-glob-should-ignore-invalid

Invalid refs on disk cause revwalk globbing to fail

11 years agoUpdate init and clean for revwalk::basic tests
Russell Belfer [Mon, 22 Jul 2013 18:41:23 +0000 (11:41 -0700)]
Update init and clean for revwalk::basic tests

The new tests don't always want to use the same fixture data as
the old ones so this makes it configurable on a per-test basis.

11 years agoFix warning message about mismatched types
Russell Belfer [Mon, 22 Jul 2013 18:22:55 +0000 (11:22 -0700)]
Fix warning message about mismatched types

11 years agoUse pool for loose refdb string allocations
Russell Belfer [Mon, 22 Jul 2013 18:20:34 +0000 (11:20 -0700)]
Use pool for loose refdb string allocations

Instead of using lots of strdup calls, this adds a memory pool to
the loose refs iteration code and uses it for keeping track of the
loose refs array.  Memory usage could probably be reduced even
further by eliminating the vector and just scanning by adding the
strlen of each ref, but that would be a more intrusive changes.

This also updates the error handling to be more thorough about
checking for failed allocations, etc.

11 years agogit_reference_next_name must match git_reference_next
Russell Belfer [Mon, 22 Jul 2013 18:01:19 +0000 (11:01 -0700)]
git_reference_next_name must match git_reference_next

The git_reference_next API silently skips invalid references when
scanning the loose refs.  The git_reference_next_name API should
skip the same ones even though it isn't creating the reference
object.

This adds a test with a an invalid loose reference and makes sure
that both APIs skip the same entries and generate the same results.

11 years agoMerge pull request #1743 from ethomson/readme
Martin Woodward [Fri, 19 Jul 2013 18:14:22 +0000 (11:14 -0700)]
Merge pull request #1743 from ethomson/readme

Clarify when to use github issues

11 years agoUpdate README.md
Edward Thomson [Fri, 19 Jul 2013 17:56:47 +0000 (12:56 -0500)]
Update README.md

11 years agoMerge pull request #1726 from crazymaster/development
Ben Straub [Fri, 19 Jul 2013 17:43:53 +0000 (10:43 -0700)]
Merge pull request #1726 from crazymaster/development

git_buf_text_gather_stats doesn't work for multi-byte characters

11 years agoClarify when to use github issues
Edward Thomson [Fri, 19 Jul 2013 17:43:08 +0000 (12:43 -0500)]
Clarify when to use github issues

Suggest that github issues are to be used for bug reports, while questions about usage should be directed to StackOverflow.

11 years agoMerge pull request #1742 from martinwoodward/Refresh-Readme
Ben Straub [Fri, 19 Jul 2013 17:29:47 +0000 (10:29 -0700)]
Merge pull request #1742 from martinwoodward/Refresh-Readme

Refresh readme and contributing guidance

11 years agoUpdate contributing guidance to explain PR flow
Martin Woodward [Fri, 19 Jul 2013 17:20:58 +0000 (18:20 +0100)]
Update contributing guidance to explain PR flow

Updating the contributing guidance to explain a bit more about how we use
PR's

11 years agoTidy up the methods of contacting the project
Martin Woodward [Fri, 19 Jul 2013 17:04:11 +0000 (18:04 +0100)]
Tidy up the methods of contacting the project

Updated the methods of getting involved with the project and asking
questions.

11 years agoTypo
Ben Straub [Thu, 18 Jul 2013 16:37:59 +0000 (09:37 -0700)]
Typo

11 years agoMerge pull request #1736 from ben/default-to-cdecl
Vicent Martí [Thu, 18 Jul 2013 13:26:25 +0000 (06:26 -0700)]
Merge pull request #1736 from ben/default-to-cdecl

Switch default calling convention to cdecl

11 years agoMerge pull request #1722 from libgit2/ntk/fix/issue_1722
Ben Straub [Thu, 18 Jul 2013 03:08:15 +0000 (20:08 -0700)]
Merge pull request #1722 from libgit2/ntk/fix/issue_1722

git_revparse_ext: should return a NULL reference  when the revparse expression doesn't lead to a reference

11 years agoMerge pull request #1735 from ethomson/ignored_are_not_rename_candidates
Vicent Martí [Wed, 17 Jul 2013 23:12:15 +0000 (16:12 -0700)]
Merge pull request #1735 from ethomson/ignored_are_not_rename_candidates

don't include ignored as rename candidates

11 years agodon't include ignored as rename candidates
Edward Thomson [Wed, 17 Jul 2013 21:55:00 +0000 (16:55 -0500)]
don't include ignored as rename candidates

11 years agoSwitch default calling convention to cdecl.
Ben Straub [Wed, 17 Jul 2013 21:06:31 +0000 (14:06 -0700)]
Switch default calling convention to cdecl.

11 years agoMerge pull request #1731 from alindeman/patch-1
Ben Straub [Tue, 16 Jul 2013 03:45:18 +0000 (20:45 -0700)]
Merge pull request #1731 from alindeman/patch-1

Small grammar fix in docs

11 years agoSmall grammar fix in docs
Andy Lindeman [Tue, 16 Jul 2013 03:40:57 +0000 (23:40 -0400)]
Small grammar fix in docs

11 years agoMerge pull request #1728 from ivoire/small_fixes
Vicent Martí [Mon, 15 Jul 2013 16:45:04 +0000 (09:45 -0700)]
Merge pull request #1728 from ivoire/small_fixes

Small fixes

11 years agoMerge pull request #1729 from tiennou/remote-owner
Vicent Martí [Mon, 15 Jul 2013 16:44:02 +0000 (09:44 -0700)]
Merge pull request #1729 from tiennou/remote-owner

Add `git_remote_owner`.

11 years agoAdd `git_remote_owner`
Etienne Samson [Mon, 15 Jul 2013 14:31:25 +0000 (16:31 +0200)]
Add `git_remote_owner`

11 years agoFix some more memory leaks in error path
Rémi Duraffort [Mon, 15 Jul 2013 14:00:07 +0000 (16:00 +0200)]
Fix some more memory leaks in error path

11 years agopack: fix memory leak in error path
Rémi Duraffort [Mon, 15 Jul 2013 14:00:00 +0000 (16:00 +0200)]
pack: fix memory leak in error path

11 years agoindex: fix potential memory leaks
Rémi Duraffort [Mon, 15 Jul 2013 13:59:35 +0000 (15:59 +0200)]
index: fix potential memory leaks

11 years agorepository: clarify assignment and test order
Rémi Duraffort [Mon, 15 Jul 2013 13:59:18 +0000 (15:59 +0200)]
repository: clarify assignment and test order

11 years agoFix
crazymaster [Sun, 14 Jul 2013 23:14:00 +0000 (08:14 +0900)]
Fix

11 years agoFix typo
crazymaster [Sun, 14 Jul 2013 22:59:04 +0000 (07:59 +0900)]
Fix typo

11 years agoFix the initial line
crazymaster [Sun, 14 Jul 2013 22:41:39 +0000 (07:41 +0900)]
Fix the initial line

11 years agoRevert "Replace Japanese characters with the encoded hexadecimal values"
crazymaster [Sun, 14 Jul 2013 22:39:16 +0000 (07:39 +0900)]
Revert "Replace Japanese characters with the encoded hexadecimal values"

This reverts commit a91e4d6b21e141c2abc76b65b2d4c91d5d3e03cc.

11 years agoReplace Japanese characters with the encoded hexadecimal values
crazymaster [Sun, 14 Jul 2013 22:19:42 +0000 (07:19 +0900)]
Replace Japanese characters with the encoded hexadecimal values

11 years agoMerge pull request #1727 from alindeman/lookup-object-doc-fix
Russell Belfer [Sun, 14 Jul 2013 22:16:08 +0000 (15:16 -0700)]
Merge pull request #1727 from alindeman/lookup-object-doc-fix

Fixes return type documentation

11 years agoFixes return type documentation
Andy Lindeman [Sun, 14 Jul 2013 21:26:24 +0000 (17:26 -0400)]
Fixes return type documentation

11 years agoFix gather_stats
crazymaster [Fri, 12 Jul 2013 18:02:00 +0000 (03:02 +0900)]
Fix gather_stats

11 years agoAdd test for multi-byte characters
crazymaster [Fri, 12 Jul 2013 17:10:16 +0000 (02:10 +0900)]
Add test for multi-byte characters

11 years agorevparse: Don't return a reference when asked for a git object
nulltoken [Sat, 13 Jul 2013 11:30:23 +0000 (13:30 +0200)]
revparse: Don't return a reference when asked for a git object

Fix #1722

11 years agoMerge pull request #1725 from libgit2/ntk/fix/leaks
Vicent Martí [Sat, 13 Jul 2013 13:18:24 +0000 (06:18 -0700)]
Merge pull request #1725 from libgit2/ntk/fix/leaks

Plug some memory leaks

11 years agotests: Fix memory leak
nulltoken [Sat, 13 Jul 2013 12:00:05 +0000 (14:00 +0200)]
tests: Fix memory leak

11 years agosubmodule: Fix memory leaks
nulltoken [Sat, 13 Jul 2013 11:55:03 +0000 (13:55 +0200)]
submodule: Fix memory leaks

11 years agoMerge pull request #1724 from ethomson/cmake_vs
Vicent Martí [Sat, 13 Jul 2013 00:03:57 +0000 (17:03 -0700)]
Merge pull request #1724 from ethomson/cmake_vs

header files show up in vs and xcode

11 years agoheader files show up in vs
Edward Thomson [Fri, 12 Jul 2013 21:53:00 +0000 (16:53 -0500)]
header files show up in vs

11 years agoMerge pull request #1721 from ethomson/config_paths
Vicent Martí [Thu, 11 Jul 2013 22:36:03 +0000 (15:36 -0700)]
Merge pull request #1721 from ethomson/config_paths

preload configuration paths

11 years agopreload configuration paths
Edward Thomson [Thu, 11 Jul 2013 22:09:15 +0000 (17:09 -0500)]
preload configuration paths

11 years agoMerge pull request #1719 from libgit2/arrbee/threading-primitives
Vicent Martí [Thu, 11 Jul 2013 18:27:57 +0000 (11:27 -0700)]
Merge pull request #1719 from libgit2/arrbee/threading-primitives

Update git__swap threading primitive

11 years agoFix warnings on Win64
Russell Belfer [Thu, 11 Jul 2013 18:04:42 +0000 (11:04 -0700)]
Fix warnings on Win64

11 years agoUpdate git__swap thread helper
Russell Belfer [Thu, 11 Jul 2013 18:00:41 +0000 (11:00 -0700)]
Update git__swap thread helper

This makes git__swap use the __sync_lock_test_and_set primitive
with GCC and the InterlockedExchangePointer primitive with MSVC.
Previously is used compare_and_swap in a way that was probably
unintuitive for most thinking (i.e. it could fail to swap in the
value if another thread raced in).  Now it will always succeed
and the last thread to run in a race will win instead of the
first thread.

This also fixes up a little confusion between volatile void **
and void * volatile * that came up with the Win32 compiler.

11 years agoClarify docs for git_status_file
Russell Belfer [Wed, 10 Jul 2013 22:38:57 +0000 (15:38 -0700)]
Clarify docs for git_status_file

11 years agoMerge pull request #1685 from arrbee/submodule-status-fixes
Vicent Martí [Wed, 10 Jul 2013 20:15:28 +0000 (13:15 -0700)]
Merge pull request #1685 from arrbee/submodule-status-fixes

Improve submodules status data caching and compatibility

11 years agoUntracked directories with .git should be ignored
Russell Belfer [Tue, 2 Jul 2013 23:49:57 +0000 (16:49 -0700)]
Untracked directories with .git should be ignored

This restores a behavior that was accidentally lost during some
diff refactoring where an untracked directory that contains a .git
item should be treated as IGNORED, not as UNTRACKED.  The submodule
code already detects this, but the diff code was not handling the
scenario right.

This also updates a number of existing tests that were actually
exercising the behavior but did not have the right expectations in
place.  It actually makes the new
`test_diff_submodules__diff_ignore_options` test feel much better
because the "not-a-submodule" entries are now ignored instead of
showing up as untracked items.

Fixes #1697

11 years agoAdd tests for diff.ignoreSubmdules config
Russell Belfer [Sun, 30 Jun 2013 15:43:07 +0000 (08:43 -0700)]
Add tests for diff.ignoreSubmdules config

11 years agoClean up left over alloc change
Russell Belfer [Sun, 30 Jun 2013 15:38:10 +0000 (08:38 -0700)]
Clean up left over alloc change

11 years agoAdd ignore_submodules to diff options
Russell Belfer [Sun, 30 Jun 2013 06:22:31 +0000 (23:22 -0700)]
Add ignore_submodules to diff options

This adds correct support for an equivalent to --ignore-submodules
in diff, where an actual ignore value can be passed to diff to
override the per submodule settings in the configuration.

This required tweaking the constants for ignore values so that
zero would not be used and could represent an unset option to the
diff.  This was an opportunity to move the submodule values into
include/git2/types.h and to rename the poorly named DEFAULT values
for ignore and update constants to RESET instead.

Now the GIT_DIFF_IGNORE_SUBMODULES flag is exactly the same as
setting the ignore_submodules option to GIT_SUBMODULE_IGNORE_ALL
(which is actually a minor change from the old behavior in that
submodules will now be treated as UNMODIFIED deltas instead of
being left out totally - if you set GIT_DIFF_INCLUDE_UNMODIFIED).

This includes tests for the various new settings.

11 years agoUpdate diff to new internal submodule status API
Russell Belfer [Sat, 29 Jun 2013 20:20:45 +0000 (13:20 -0700)]
Update diff to new internal submodule status API

Submodules now expose an internal status API that allows diff to
get back the OID values from the submodule very easily and also
to avoiding caching issues and to override the ignore setting for
the submodule.

11 years agoSubmodule status improvements
Russell Belfer [Sat, 29 Jun 2013 20:16:33 +0000 (13:16 -0700)]
Submodule status improvements

This fixes the way that submodule status is checked to bypass just
about all of the caching in the submodule object.  Based on the
ignore value, it will try to do the minimum work necessary to find
the current status of the submodule - but it will actually go to
disk to get all of the current values.

This also removes the custom refcounting stuff in favor of the
common git_refcount style.  Right now, it is still for internal
purposes only, but it should make it easier to add true submodule
refcounting in the future with a public git_submodule_free call
that will allow bindings not to worry about the submodule object
getting freed from underneath them.

11 years agoAdd BARE option to git_repository_open_ext
Russell Belfer [Sat, 29 Jun 2013 20:13:38 +0000 (13:13 -0700)]
Add BARE option to git_repository_open_ext

This adds a BARE option to git_repository_open_ext which allows
a fast open path that still knows how to read gitlinks and to
search for the actual .git directory from a subdirectory.

`git_repository_open_bare` is still simpler and faster, but having
a gitlink aware fast open is very useful for submodules where we
want to quickly be able to peek at the HEAD and index data without
doing any other meaningful repo operations.

11 years agoAdd accessors for refcount value
Russell Belfer [Sat, 29 Jun 2013 19:41:39 +0000 (12:41 -0700)]
Add accessors for refcount value

11 years agoAdd timestamp check to submodule status
Russell Belfer [Thu, 27 Jun 2013 23:52:38 +0000 (16:52 -0700)]
Add timestamp check to submodule status

This is probably not the final form of this change, but this is
a preliminary version of checking a timestamp to see if the cached
working directory HEAD OID matches the current.  Right now, this
uses the timestamp on the index and is, like most of our timestamp
checking, subject to having only second accuracy.

11 years agoAdd API to get path to index file
Russell Belfer [Thu, 27 Jun 2013 23:52:00 +0000 (16:52 -0700)]
Add API to get path to index file

11 years agoMore diff submodule tests for cache issues
Russell Belfer [Thu, 27 Jun 2013 23:12:44 +0000 (16:12 -0700)]
More diff submodule tests for cache issues

The submodules code caches data about submodules in a way that
can cause problems.  This adds some tests that try making various
modifications to the state of a submodule to see where we can
catch out problems in the submodule caching.

Right now, I've put in an extra git_submodule_reload_all so that
the test will pass, but with that commented out, the test fails.
I'm working on fixing the broken version of the test at which
point I'll commit the fix and delete the extra reload that makes
the test pass.

11 years agoFix diff test helper to show parent file/line
Russell Belfer [Thu, 27 Jun 2013 23:12:00 +0000 (16:12 -0700)]
Fix diff test helper to show parent file/line

11 years agoFix memory leak in test
Russell Belfer [Thu, 27 Jun 2013 22:46:46 +0000 (15:46 -0700)]
Fix memory leak in test

11 years agoMore improvements to submodule diff tests
Russell Belfer [Thu, 27 Jun 2013 22:43:12 +0000 (15:43 -0700)]
More improvements to submodule diff tests

This controls for the diff.mnemonicprefix setting so that can't
break the tests.  Also, this expands one test to emulate an
ObjectiveGit test more closely.

11 years agoAdd another submodule test of dirty wd
Russell Belfer [Thu, 27 Jun 2013 22:26:31 +0000 (15:26 -0700)]
Add another submodule test of dirty wd

11 years agoMerge branch 'arrbee/examples-log' into development
Vicent Marti [Wed, 10 Jul 2013 19:06:53 +0000 (21:06 +0200)]
Merge branch 'arrbee/examples-log' into development

11 years agobitvec: Simplify the bit vector code
Vicent Marti [Wed, 10 Jul 2013 19:05:47 +0000 (21:05 +0200)]
bitvec: Simplify the bit vector code

11 years agoAdd git_pathspec_match_diff API
Russell Belfer [Tue, 9 Jul 2013 05:46:36 +0000 (22:46 -0700)]
Add git_pathspec_match_diff API

This adds an additional pathspec API that will match a pathspec
against a diff object.  This is convenient if you want to handle
renames (so you need the whole diff and can't use the pathspec
constraint built into the diff API) but still want to tell if the
diff had any files that matched the pathspec.

When the pathspec is matched against a diff, instead of keeping
a list of filenames that matched, instead the API keeps the list
of git_diff_deltas that matched and they can be retrieved via a
new API git_pathspec_match_list_diff_entry.

There are a couple of other minor API extensions here that were
mostly for the sake of convenience and to reduce dependencies
on knowing the internal data structure between files inside the
library.

11 years agoBasic bit vector
Russell Belfer [Tue, 9 Jul 2013 05:42:02 +0000 (22:42 -0700)]
Basic bit vector

This is a simple bit vector object that is not resizable after
the initial allocation but can be of arbitrary size.  It will
keep the bti vector entirely on the stack for vectors 64 bits
or less, and will allocate the vector on the heap for larger
sizes.  The API is uniform regardless of storage location.

This is very basic right now and all the APIs are inline functions,
but it is useful for storing an array of boolean values.

11 years agoImprove include/git2/pathspec.h docs
Russell Belfer [Mon, 8 Jul 2013 16:53:24 +0000 (09:53 -0700)]
Improve include/git2/pathspec.h docs

11 years agoConvert commit->parent_ids to git_array_t
Russell Belfer [Mon, 8 Jul 2013 04:56:11 +0000 (21:56 -0700)]
Convert commit->parent_ids to git_array_t

This converts the array of parent SHAs from a git_vector where
each SHA has to be separately allocated to a git_array_t where
all the SHAs can be kept in one block.  Since the two collections
have almost identical APIs, there isn't much involved in making
the change.  I did add an API to git_array_t so that it could be
allocated at a precise initial size.

11 years agoAdd a bunch more features to log example
Russell Belfer [Fri, 5 Jul 2013 22:22:21 +0000 (15:22 -0700)]
Add a bunch more features to log example

11 years agoFix example/log.c pathspec handling of merges
Russell Belfer [Thu, 4 Jul 2013 00:00:50 +0000 (17:00 -0700)]
Fix example/log.c pathspec handling of merges

This fixes the way the example log program decides if a merge
commit should be shown when a pathspec is given.  Also makes it
easier to use the pathspec API to just check "does a tree match
anything in the pathspec" without allocating a match list.

11 years agomore examples/log.c bug fixing
Russell Belfer [Wed, 3 Jul 2013 22:12:14 +0000 (15:12 -0700)]
more examples/log.c bug fixing

11 years agofix bug with order args and no revision
Russell Belfer [Wed, 3 Jul 2013 22:08:54 +0000 (15:08 -0700)]
fix bug with order args and no revision

11 years agoFix example/log.c minor diffs with git log
Russell Belfer [Wed, 3 Jul 2013 21:53:39 +0000 (14:53 -0700)]
Fix example/log.c minor diffs with git log

11 years agoAdd basic commit formatting to log output
Russell Belfer [Mon, 1 Jul 2013 22:41:32 +0000 (15:41 -0700)]
Add basic commit formatting to log output

11 years agoAdd raw header access to commit API
Russell Belfer [Mon, 1 Jul 2013 22:41:01 +0000 (15:41 -0700)]
Add raw header access to commit API

11 years agorev-parse example
Russell Belfer [Tue, 25 Jun 2013 22:39:44 +0000 (15:39 -0700)]
rev-parse example

11 years agoMore progress on log example
Russell Belfer [Tue, 25 Jun 2013 22:39:13 +0000 (15:39 -0700)]
More progress on log example

11 years agoExtending log example code
Russell Belfer [Tue, 25 Jun 2013 06:21:23 +0000 (23:21 -0700)]
Extending log example code

This adds more command line processing to the example version of
log.  In particular, this adds the funky command line processing
that allows an arbitrary series of revisions followed by an
arbitrary number of paths and/or glob patterns.

The actual logging part still isn't implemented.

11 years agoAdd public API for pathspec matching
Russell Belfer [Tue, 25 Jun 2013 06:16:06 +0000 (23:16 -0700)]
Add public API for pathspec matching

This adds a new public API for compiling pathspecs and matching
them against the working directory, the index, or a tree from the
repository.  This also reworks the pathspec internals to allow the
sharing of code between the existing internal usage of pathspec
matching and the new external API.

While this is working and the new API is ready for discussion, I
think there is still an incorrect behavior in which patterns are
always matched against the full path of an entry without taking
the subdirectories into account (so "s*" will match "subdir/file"
even though it wouldn't with core Git).  Further enhancements are
coming, but this was a good place to take a functional snapshot.

11 years agoBasic framework for log command
Russell Belfer [Mon, 24 Jun 2013 03:33:57 +0000 (20:33 -0700)]
Basic framework for log command

11 years agoMerge pull request #1705 from arrbee/avoid-index-double-free
Vicent Martí [Wed, 10 Jul 2013 17:58:58 +0000 (10:58 -0700)]
Merge pull request #1705 from arrbee/avoid-index-double-free

Try harder not to double free index entries

11 years agoMerge pull request #1717 from libgit2/arrbee/pr-1706-merged-and-cleaned
Vicent Martí [Wed, 10 Jul 2013 17:58:26 +0000 (10:58 -0700)]
Merge pull request #1717 from libgit2/arrbee/pr-1706-merged-and-cleaned

PR 1706 plus error reporting cleanups

11 years agotrivial whitespace fixup
Russell Belfer [Wed, 10 Jul 2013 17:48:32 +0000 (10:48 -0700)]
trivial whitespace fixup

11 years agoBring SSH error reporting up to base standards
Russell Belfer [Wed, 10 Jul 2013 17:21:24 +0000 (10:21 -0700)]
Bring SSH error reporting up to base standards

The SSH error checking and reporting could still be further
improved by using the libssh2 native methods to get error info,
but at least this ensures that all error codes are checked and
translated into libgit2 error messages.

11 years agoMerge branch 'ssh-cred-fix' of tiennou/libgit2
Russell Belfer [Wed, 10 Jul 2013 16:20:46 +0000 (09:20 -0700)]
Merge branch 'ssh-cred-fix' of tiennou/libgit2

Conflicts:
src/transports/ssh.c

11 years agoTab indent.
Etienne Samson [Wed, 10 Jul 2013 08:29:32 +0000 (10:29 +0200)]
Tab indent.

11 years agoAdd some missing error messages.
Etienne Samson [Wed, 10 Jul 2013 08:29:09 +0000 (10:29 +0200)]
Add some missing error messages.

11 years agoMerge pull request #1704 from arrbee/kill-status-index-then-workdir
Vicent Martí [Wed, 10 Jul 2013 00:20:55 +0000 (17:20 -0700)]
Merge pull request #1704 from arrbee/kill-status-index-then-workdir

Remove GIT_STATUS_SHOW_INDEX_THEN_WORKDIR option

11 years agoMerge pull request #1695 from arrbee/fix-1695
Vicent Martí [Wed, 10 Jul 2013 00:20:36 +0000 (17:20 -0700)]
Merge pull request #1695 from arrbee/fix-1695

API should not be ifdeffed

11 years agoMerge pull request #1716 from arrbee/fix-config-get-multivar
Vicent Martí [Tue, 9 Jul 2013 23:54:34 +0000 (16:54 -0700)]
Merge pull request #1716 from arrbee/fix-config-get-multivar

Fix git_config_get_multivar with interleaved missing entries

11 years agoA little git_config_get_multivar code cleanup
Russell Belfer [Tue, 9 Jul 2013 23:46:18 +0000 (16:46 -0700)]
A little git_config_get_multivar code cleanup

11 years agoAdd more tests for git_config_get_multivar
Russell Belfer [Tue, 9 Jul 2013 23:45:23 +0000 (16:45 -0700)]
Add more tests for git_config_get_multivar

The old tests didn't try failing lookups or lookups across
multiple config files with some having the pattern and some
not having it.

11 years agoFix return value in git_config_get_multivar
J. David Ibáñez [Sat, 6 Jul 2013 21:51:40 +0000 (23:51 +0200)]
Fix return value in git_config_get_multivar

If there is not an error, the return value was always the return value
of the last call to file->get_multivar

With this commit GIT_ENOTFOUND is only returned if all the calls to
filge-get_multivar return GIT_ENOTFOUND.

11 years agoAdd GIT_CAP_SSH if library was built with SSH
Russell Belfer [Tue, 9 Jul 2013 23:17:41 +0000 (16:17 -0700)]
Add GIT_CAP_SSH if library was built with SSH

This also adds a test that actually calls git_libgit2_capabilities
and git_libgit2_version.

11 years agoMake credential clearing consistent
Russell Belfer [Tue, 9 Jul 2013 23:16:24 +0000 (16:16 -0700)]
Make credential clearing consistent

This makes all of the credential objects use the same pattern to
clear the contents and call git__memzero when done.  Much of this
information is probably not sensitive, but it also seems better
to just clear consistently.

11 years agoIndent with tabs
Russell Belfer [Tue, 9 Jul 2013 21:45:58 +0000 (14:45 -0700)]
Indent with tabs