]> git.proxmox.com Git - libgit2.git/log
libgit2.git
12 years agorevparse: readonly tests don't need a sandboxed repo
nulltoken [Tue, 3 Jul 2012 12:59:14 +0000 (14:59 +0200)]
revparse: readonly tests don't need a sandboxed repo

12 years agorefs: deep unfound ref returns ENOTFOUND
nulltoken [Sat, 7 Jul 2012 08:36:35 +0000 (10:36 +0200)]
refs: deep unfound ref returns ENOTFOUND

12 years agorefs: remove seemingly useless giterr_clear() call
nulltoken [Wed, 4 Jul 2012 10:23:03 +0000 (12:23 +0200)]
refs: remove seemingly useless giterr_clear() call

12 years agorefs: deploy git_reference_has_log()
nulltoken [Wed, 4 Jul 2012 10:20:43 +0000 (12:20 +0200)]
refs: deploy git_reference_has_log()

12 years agorefs: add git_reference_has_log()
nulltoken [Wed, 4 Jul 2012 09:58:04 +0000 (11:58 +0200)]
refs: add git_reference_has_log()

12 years agorefs: fix moving of the reflog when renaming a ref
nulltoken [Tue, 3 Jul 2012 10:07:33 +0000 (12:07 +0200)]
refs: fix moving of the reflog when renaming a ref

12 years agoMerge pull request #798 from nulltoken/fix/revparse-date
Vicent Martí [Tue, 3 Jul 2012 19:38:09 +0000 (12:38 -0700)]
Merge pull request #798 from nulltoken/fix/revparse-date

revparse: fix parsing of date specifiers

12 years agoMerge pull request #800 from kevinsawicki/patch-1
Vicent Martí [Tue, 3 Jul 2012 19:37:08 +0000 (12:37 -0700)]
Merge pull request #800 from kevinsawicki/patch-1

Replace incorrect 'it' with 'if' in documentation

12 years agoReplace incorrect 'it' with 'if' in documentation
Kevin Sawicki [Tue, 3 Jul 2012 19:35:33 +0000 (12:35 -0700)]
Replace incorrect 'it' with 'if' in documentation

12 years agorepo tests: do cleanup reinit tests
Carlos Martín Nieto [Tue, 3 Jul 2012 10:11:19 +0000 (12:11 +0200)]
repo tests: do cleanup reinit tests

12 years agorevparse: fix parsing of date specifiers
nulltoken [Mon, 2 Jul 2012 15:51:02 +0000 (17:51 +0200)]
revparse: fix parsing of date specifiers

12 years agoMerge pull request #795 from nulltoken/topic/revparse-notfound
Vicent Martí [Fri, 29 Jun 2012 19:16:52 +0000 (12:16 -0700)]
Merge pull request #795 from nulltoken/topic/revparse-notfound

More git_revparse_single ENOTFOUND use cases

12 years agorevparse: unfound reflog entry returns ENOTFOUND
nulltoken [Fri, 29 Jun 2012 15:06:38 +0000 (17:06 +0200)]
revparse: unfound reflog entry returns ENOTFOUND

12 years agorevparse: unfound reflog ref returns ENOTFOUND
nulltoken [Fri, 29 Jun 2012 15:02:29 +0000 (17:02 +0200)]
revparse: unfound reflog ref returns ENOTFOUND

12 years agorevparse: unfound partially-named ref returns ENOTFOUND
nulltoken [Fri, 29 Jun 2012 14:51:46 +0000 (16:51 +0200)]
revparse: unfound partially-named ref returns ENOTFOUND

12 years agoMerge pull request #788 from nulltoken/topix/revparse
Ben Straub [Thu, 28 Jun 2012 18:47:34 +0000 (11:47 -0700)]
Merge pull request #788 from nulltoken/topix/revparse

Small revparse colon syntax improvements

12 years agorevparse: unfound nth parent returns ENOTFOUND
nulltoken [Thu, 28 Jun 2012 16:04:01 +0000 (18:04 +0200)]
revparse: unfound nth parent returns ENOTFOUND

12 years agorevparse: handle specs with caret and colon
nulltoken [Thu, 28 Jun 2012 09:09:16 +0000 (11:09 +0200)]
revparse: handle specs with caret and colon

12 years agorevparse: unfound treepath returns ENOTFOUND
nulltoken [Wed, 27 Jun 2012 15:27:38 +0000 (17:27 +0200)]
revparse: unfound treepath returns ENOTFOUND

12 years agorevparse: return trees through the "colon" syntax
nulltoken [Wed, 27 Jun 2012 14:51:19 +0000 (16:51 +0200)]
revparse: return trees through the "colon" syntax

12 years agorevparse: replace spaces with tabs
nulltoken [Thu, 28 Jun 2012 05:50:16 +0000 (07:50 +0200)]
revparse: replace spaces with tabs

12 years agomwindow: allow memory-window files to deregister
Carlos Martin Nieto [Thu, 28 Jun 2012 10:05:49 +0000 (12:05 +0200)]
mwindow: allow memory-window files to deregister

Once a file is registered, there is no way to deregister it, even
after the structure that contains it is no longer needed and has been
freed. This may be the source of #624.

Allow and use the deregister function to remove our file from the
global list.

12 years agoMerge pull request #791 from carlosmn/index-path
Vicent Martí [Thu, 28 Jun 2012 10:03:43 +0000 (03:03 -0700)]
Merge pull request #791 from carlosmn/index-path

indexer: don't use '/objects/pack/' unconditionally

12 years agoindexer: don't use '/objects/pack/' unconditionally
Carlos Martín Nieto [Thu, 28 Jun 2012 07:33:08 +0000 (09:33 +0200)]
indexer: don't use '/objects/pack/' unconditionally

Not everyone who indexes a packfile wants to put it in the standard
git repository location.

12 years agoMerge pull request #783 from nulltoken/topic/reinit-coverage
Vicent Martí [Tue, 26 Jun 2012 06:28:17 +0000 (23:28 -0700)]
Merge pull request #783 from nulltoken/topic/reinit-coverage

Repo reinit fix + enhanced test coverage

12 years agoMerge pull request #785 from nulltoken/topic/refs-fromglob
Vicent Martí [Tue, 26 Jun 2012 06:27:35 +0000 (23:27 -0700)]
Merge pull request #785 from nulltoken/topic/refs-fromglob

Topic/refs fromglob

12 years agoMerge pull request #786 from schu/indexer
Vicent Martí [Mon, 25 Jun 2012 17:32:05 +0000 (10:32 -0700)]
Merge pull request #786 from schu/indexer

indexer: start parsing input data immediately

12 years agoindexer: start parsing input data immediately
Michael Schubert [Mon, 25 Jun 2012 13:26:38 +0000 (15:26 +0200)]
indexer: start parsing input data immediately

Currently, the first call of git_indexer_stream_add adds the data to the
underlying pack file and opens it for later use, but doesn't start
parsing the already available data.
This means, git_indexer_stream_finalize only works if
git_indexer_stream_add was called at least twice. Kill this limitation
by parsing available data immediately.

12 years agoamigaos: Add missing include
Vicent Marti [Sun, 24 Jun 2012 14:56:32 +0000 (16:56 +0200)]
amigaos: Add missing include

12 years agorevwalk: make git_revwalk_(push|hide)_glob() leverage git_reference_foreach_glob()
nulltoken [Fri, 22 Jun 2012 15:04:16 +0000 (17:04 +0200)]
revwalk: make git_revwalk_(push|hide)_glob() leverage git_reference_foreach_glob()

12 years agoreferences: introduce git_reference_foreach_glob()
nulltoken [Fri, 22 Jun 2012 13:51:44 +0000 (15:51 +0200)]
references: introduce git_reference_foreach_glob()

12 years agoamigaos: Cleanup
Vicent Marti [Fri, 22 Jun 2012 19:25:17 +0000 (21:25 +0200)]
amigaos: Cleanup

12 years agoMerge branch 'pull-req' of https://github.com/chris-y/libgit2 into amigaos
Vicent Marti [Fri, 22 Jun 2012 18:48:50 +0000 (20:48 +0200)]
Merge branch 'pull-req' of https://github.com/chris-y/libgit2 into amigaos

12 years agoMerge pull request #784 from nulltoken/patch-1
Scott J. Goldman [Fri, 22 Jun 2012 17:42:43 +0000 (10:42 -0700)]
Merge pull request #784 from nulltoken/patch-1

Fix MSVC compilation errors

12 years agoFix MSVC compilation errors
nulltoken [Fri, 22 Jun 2012 13:42:37 +0000 (16:42 +0300)]
Fix MSVC compilation errors

12 years agotests-clar: fix isolation of repo initialization tests
nulltoken [Fri, 22 Jun 2012 11:41:26 +0000 (13:41 +0200)]
tests-clar: fix isolation of repo initialization tests

12 years agorepository: enhance reinitialization test coverage
nulltoken [Fri, 22 Jun 2012 09:30:43 +0000 (11:30 +0200)]
repository: enhance reinitialization test coverage

12 years agorepository: fix configuration updating issue while reinitialization
nulltoken [Thu, 21 Jun 2012 22:02:23 +0000 (00:02 +0200)]
repository: fix configuration updating issue while reinitialization

When the repository was reinitialized, every configuration change in repo_init_config() was directly performed against the file on the filesystem. However, a previous version of the configuration had previously been loaded in memory and attached to the repository, in repo_init_reinit().

The repository was unaware of the change and the stale cached version of the configuration never refreshed.

12 years agotests-clar: mark unused variables
Michael Schubert [Fri, 22 Jun 2012 08:13:50 +0000 (10:13 +0200)]
tests-clar: mark unused variables

12 years agoMerge pull request #782 from nulltoken/topic/branch-foreach
Vicent Martí [Fri, 22 Jun 2012 03:12:50 +0000 (20:12 -0700)]
Merge pull request #782 from nulltoken/topic/branch-foreach

Branch foreach

12 years agoMerge pull request #780 from schu/cleanup
Vicent Martí [Thu, 21 Jun 2012 18:22:45 +0000 (11:22 -0700)]
Merge pull request #780 from schu/cleanup

Cleanup

12 years agoMerge pull request #781 from liyuray/development
Scott J. Goldman [Thu, 21 Jun 2012 18:15:30 +0000 (11:15 -0700)]
Merge pull request #781 from liyuray/development

fix crash issue on mingw caused by variable argument list type promotion.

12 years agobranch: drop git_branch_list()
nulltoken [Thu, 21 Jun 2012 16:48:36 +0000 (18:48 +0200)]
branch: drop git_branch_list()

12 years agobranch: add git_branch_foreach()
nulltoken [Thu, 21 Jun 2012 16:29:38 +0000 (18:29 +0200)]
branch: add git_branch_foreach()

12 years agofix below issues on mingw:
liyuray [Thu, 21 Jun 2012 12:17:54 +0000 (20:17 +0800)]
fix below issues on mingw:

1. compile warning:

D:\libgit2.git\src\win32\posix_w32.c: In function 'p_open':
D:\libgit2.git\src\win32\posix_w32.c:235:10: warning: 'mode_t' is promoted to 'int' when passed through '...' [enabled by default]
D:\libgit2.git\src\win32\posix_w32.c:235:10: note: (so you should pass 'int' not 'mode_t' to 'va_arg')
D:\libgit2.git\src\win32\posix_w32.c:235:10: note: if this code is reached, the program will abort

2. test crash.

3. the above two issues are same root cause. please see http://www.eskimo.com/~scs/cclass/int/sx11c.html

12 years agoobject: add missing git_odb_object_free
Michael Schubert [Wed, 20 Jun 2012 16:07:27 +0000 (18:07 +0200)]
object: add missing git_odb_object_free

12 years agonotes: fix memory leaks
Michael Schubert [Wed, 20 Jun 2012 16:06:37 +0000 (18:06 +0200)]
notes: fix memory leaks

12 years agotests: plug a leak in the repo tests
Carlos Martín Nieto [Thu, 21 Jun 2012 00:30:30 +0000 (02:30 +0200)]
tests: plug a leak in the repo tests

The second call to assert_config_entry_on_init_bytype is cleaned up by
the main cleanup function, but that overwrites the first _repo. Make
sure that one doesn't leak.

12 years agorepository: avoid opening the repository twice on reinit
Carlos Martín Nieto [Thu, 21 Jun 2012 00:15:25 +0000 (02:15 +0200)]
repository: avoid opening the repository twice on reinit

The call to repo_init_reinit already takes care of opening the
repository and giving us a git_repository object to give to the
caller. There is no need to call git_repository_open again.

12 years agoMerge pull request #776 from scottjg/mingw-makefile-fix
Vicent Martí [Wed, 20 Jun 2012 19:50:41 +0000 (12:50 -0700)]
Merge pull request #776 from scottjg/mingw-makefile-fix

Fix Makefile.emebed for mingw32

12 years agoMerge branch 'development' into pull-req
Chris Young [Wed, 20 Jun 2012 19:35:59 +0000 (20:35 +0100)]
Merge branch 'development' into pull-req

12 years agomore getaddrinfo compatibility
Chris Young [Wed, 20 Jun 2012 19:35:13 +0000 (20:35 +0100)]
more getaddrinfo compatibility

12 years agogetaddrinfo() replacement functions
Chris Young [Wed, 20 Jun 2012 19:12:30 +0000 (20:12 +0100)]
getaddrinfo() replacement functions

12 years agorevert defaults
Chris Young [Wed, 20 Jun 2012 18:27:17 +0000 (19:27 +0100)]
revert defaults

12 years agoMore Makefile.embed cleanups
Scott J. Goldman [Wed, 20 Jun 2012 18:09:35 +0000 (11:09 -0700)]
More Makefile.embed cleanups

Don't need unix/*.c for windows, don't need wildcard for regex.c

12 years agoMerge pull request #777 from benstraub/revparse-fixup
Vicent Martí [Wed, 20 Jun 2012 10:51:25 +0000 (03:51 -0700)]
Merge pull request #777 from benstraub/revparse-fixup

Revparse fixup

12 years agoFix indentation.
Ben Straub [Wed, 20 Jun 2012 04:12:04 +0000 (21:12 -0700)]
Fix indentation.

12 years agoAvoid uninitialized variable error.
Ben Straub [Wed, 20 Jun 2012 04:11:48 +0000 (21:11 -0700)]
Avoid uninitialized variable error.

12 years agoFix Makefile.emebed for mingw32
Scott J. Goldman [Wed, 20 Jun 2012 01:08:15 +0000 (18:08 -0700)]
Fix Makefile.emebed for mingw32

otherwise we can't compile the native parts of the rugged gem on Windows

12 years agodiff: make sure we free all allocated resources
Carlos Martín Nieto [Wed, 20 Jun 2012 00:15:42 +0000 (02:15 +0200)]
diff: make sure we free all allocated resources

When the creation of one iterator fails, we need to free the prefix
and possibly one of the iterators. Make sure we do so.

12 years agoodb: don't leak when detecting id ambiguity
Carlos Martín Nieto [Tue, 19 Jun 2012 23:41:30 +0000 (01:41 +0200)]
odb: don't leak when detecting id ambiguity

If we find several objects with the same prefix, we need to free the
memory where we stored the earlier object. Keep track of the raw.data
pointer across read_prefix calls and free it if we find another
object.

12 years agoPlug a few leaks
Carlos Martín Nieto [Tue, 19 Jun 2012 22:46:26 +0000 (00:46 +0200)]
Plug a few leaks

12 years agoMerge pull request #775 from arrbee/fix-index-filemodes
Vicent Martí [Tue, 19 Jun 2012 22:17:35 +0000 (15:17 -0700)]
Merge pull request #775 from arrbee/fix-index-filemodes

Make index add/append support core.filemode flag

12 years agoNicer constant
Russell Belfer [Tue, 19 Jun 2012 22:16:38 +0000 (15:16 -0700)]
Nicer constant

12 years agoMerge pull request #768 from nulltoken/topic/expose-message-prettify
Vicent Martí [Tue, 19 Jun 2012 22:04:45 +0000 (15:04 -0700)]
Merge pull request #768 from nulltoken/topic/expose-message-prettify

message: Expose git_message_prettify()

12 years agorevparse: handle a non-existent path in the colon syntax
Carlos Martín Nieto [Tue, 19 Jun 2012 21:36:36 +0000 (23:36 +0200)]
revparse: handle a non-existent path in the colon syntax

oid_for_tree_path may not always find the path in the tree, in which
case we need to return an error. The current code doesn't do this and
results in undefined behavior.

12 years agoMake index add/append support core.filemode flag
Russell Belfer [Tue, 19 Jun 2012 21:27:02 +0000 (14:27 -0700)]
Make index add/append support core.filemode flag

This fixes git_index_add and git_index_append to behave more like
core git, preserving old filemode data in the index when adding
and/or appending with core.filemode = false.

This also has placeholder support for core.symlinks and
core.ignorecase, but those flags are not implemented (well,
symlinks has partial support for preserving mode information in
the same way that git does, but it isn't tested).

12 years agoMerge pull request #774 from benstraub/revparse-colon-segfault
Vicent Martí [Tue, 19 Jun 2012 16:27:40 +0000 (09:27 -0700)]
Merge pull request #774 from benstraub/revparse-colon-segfault

Fix potential segfault in revparse.

12 years agoFix potential segfault in revparse.
Ben Straub [Tue, 19 Jun 2012 16:24:44 +0000 (09:24 -0700)]
Fix potential segfault in revparse.

12 years agomessage: Expose git_message_prettify()
nulltoken [Fri, 15 Jun 2012 20:24:59 +0000 (22:24 +0200)]
message: Expose git_message_prettify()

git_commit() and git_tag() no longer prettify the
message by default. This has to be taken care of
by the caller.

This has the nice side effect of putting the
caller in position to actually choose to strip
the comments or not.

12 years agoMerge pull request #758 from libgit2/config-values-containing-quotes
Vicent Martí [Tue, 19 Jun 2012 00:50:12 +0000 (17:50 -0700)]
Merge pull request #758 from libgit2/config-values-containing-quotes

Quotes inside config values don't survive serialization/deserialization

12 years agoclar: Fix warnings
Vicent Marti [Tue, 19 Jun 2012 00:43:36 +0000 (02:43 +0200)]
clar: Fix warnings

12 years agoMerge pull request #753 from nulltoken/topic/merge-base-many
Vicent Martí [Tue, 19 Jun 2012 00:36:14 +0000 (17:36 -0700)]
Merge pull request #753 from nulltoken/topic/merge-base-many

Expose git_merge_base_many()

12 years agoMerge remote-tracking branch 'yorah/fix/notes-creation' into development
Vicent Marti [Tue, 19 Jun 2012 00:33:03 +0000 (02:33 +0200)]
Merge remote-tracking branch 'yorah/fix/notes-creation' into development

Conflicts:
src/notes.c

12 years agotree: Proper path comparison logic
Vicent Marti [Mon, 18 Jun 2012 22:59:04 +0000 (00:59 +0200)]
tree: Proper path comparison logic

12 years agoFix compile errors when building on windows
Tim Clem [Fri, 15 Jun 2012 18:25:52 +0000 (11:25 -0700)]
Fix compile errors when building on windows

Errors were due to not including winsock2 early enough.

12 years agoFix broken tests caused by no longer prettifying by default
Tim Clem [Fri, 15 Jun 2012 17:15:57 +0000 (10:15 -0700)]
Fix broken tests caused by no longer prettifying by default

12 years agoKill message_prettify - we will export instead
Tim Clem [Fri, 15 Jun 2012 16:26:56 +0000 (09:26 -0700)]
Kill message_prettify - we will export instead

12 years agoDon't strip comments (#) from commit messages by default
Tim Clem [Fri, 15 Jun 2012 16:13:59 +0000 (09:13 -0700)]
Don't strip comments (#) from commit messages by default

12 years agoMerge branch 'development' into pull-req
Chris Young [Thu, 14 Jun 2012 18:16:27 +0000 (19:16 +0100)]
Merge branch 'development' into pull-req

12 years agoFix incorrect revert
Chris Young [Thu, 14 Jun 2012 18:15:46 +0000 (19:15 +0100)]
Fix incorrect revert

12 years agoMerge branch 'development' into pull-req
Chris Young [Thu, 14 Jun 2012 18:11:13 +0000 (19:11 +0100)]
Merge branch 'development' into pull-req

12 years agoMore changes resulting from pull request
Chris Young [Thu, 14 Jun 2012 18:09:42 +0000 (19:09 +0100)]
More changes resulting from pull request

12 years agoUpdates from comments on OS4 compatibility pull request http://github.com/libgit2...
Chris Young [Thu, 14 Jun 2012 17:57:24 +0000 (18:57 +0100)]
Updates from comments on OS4 compatibility pull request http://github.com/libgit2/libgit2/pull/766

12 years agoRemoved hardcoded CMAKE_SYSTEM_NAME
Chris Young [Wed, 13 Jun 2012 22:43:25 +0000 (23:43 +0100)]
Removed hardcoded CMAKE_SYSTEM_NAME

12 years agoMerge remote-tracking branch 'source/development' into development
Chris Young [Wed, 13 Jun 2012 22:28:51 +0000 (23:28 +0100)]
Merge remote-tracking branch 'source/development' into development

12 years agoMake this more generic and mergeable.
Chris Young [Wed, 13 Jun 2012 22:16:14 +0000 (23:16 +0100)]
Make this more generic and mergeable.
Needs AmigaOS.cmake now from CMake package at OS4Depot, or contents below:
--8<--
SET(AMIGA 1)
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC")
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared")
--8<--

12 years agoMerge pull request #765 from benstraub/msvc-pch
Vicent Martí [Wed, 13 Jun 2012 21:35:11 +0000 (14:35 -0700)]
Merge pull request #765 from benstraub/msvc-pch

Precompile headers for MSVC.

12 years agoPrecompile headers for MSVC.
Ben Straub [Wed, 13 Jun 2012 21:22:33 +0000 (14:22 -0700)]
Precompile headers for MSVC.

12 years agoconfig: add more tests for writing escaped chars
Carlos Martín Nieto [Mon, 11 Jun 2012 14:57:02 +0000 (16:57 +0200)]
config: add more tests for writing escaped chars

12 years agoconfig: correctly escape quotes in the value
Carlos Martín Nieto [Mon, 11 Jun 2012 14:28:51 +0000 (16:28 +0200)]
config: correctly escape quotes in the value

When a configuration option is set, we didn't check to see whether
there was any escaping needed. Escape the available characters so we
can unescape them correctly when we read them.

12 years agoAdd a test that shows we don't preserve quotes in config values
Adam Roben [Sat, 9 Jun 2012 16:45:21 +0000 (12:45 -0400)]
Add a test that shows we don't preserve quotes in config values

12 years agoMerge pull request #764 from sleeper/issue_763
Vicent Martí [Wed, 13 Jun 2012 15:59:32 +0000 (08:59 -0700)]
Merge pull request #764 from sleeper/issue_763

Fix issue #763

12 years agoFix issue #763
Frederick Ros [Wed, 13 Jun 2012 12:03:48 +0000 (14:03 +0200)]
Fix issue #763

12 years agoActually do the mmap... unsurprisingly, this makes the indexer work on SFS
Chris Young [Tue, 12 Jun 2012 18:25:09 +0000 (19:25 +0100)]
Actually do the mmap... unsurprisingly, this makes the indexer work on SFS
On RAM: the .idx and .pack files become links to a .lock and the original download respectively.
Assume some feature (such as record locking) supported by SFS but not JXFS or RAM: is required.

12 years agoMerge pull request #760 from nulltoken/topic/logAllRefUpdates
Russell Belfer [Tue, 12 Jun 2012 16:29:56 +0000 (09:29 -0700)]
Merge pull request #760 from nulltoken/topic/logAllRefUpdates

make git_repository_init() value the core.logallrefupdates config entry

12 years agoExpose git_refspec_parse()
Carlos Martín Nieto [Tue, 12 Jun 2012 13:23:00 +0000 (15:23 +0200)]
Expose git_refspec_parse()

This function has been available for some time, but never in a
header. Expose it so we can use it from outside the library.

12 years agonotes: simplify tests
yorah [Wed, 6 Jun 2012 14:41:42 +0000 (16:41 +0200)]
notes: simplify tests

12 years agorevparse: remove unnecessary GIT_BEGIN_DECL
Michael Schubert [Tue, 12 Jun 2012 09:33:46 +0000 (11:33 +0200)]
revparse: remove unnecessary GIT_BEGIN_DECL

12 years agorepository: make git_repository_init() value the core.logallrefupdates config entry
nulltoken [Mon, 11 Jun 2012 09:33:13 +0000 (11:33 +0200)]
repository: make git_repository_init() value the core.logallrefupdates config entry