]>
git.proxmox.com Git - libgit2.git/log
Patrick Pokatilo [Thu, 7 Feb 2013 00:41:20 +0000 (01:41 +0100)]
Call p_readlink to determine symlink size
Vicent Martí [Tue, 5 Feb 2013 14:18:23 +0000 (06:18 -0800)]
Merge pull request #1315 from nulltoken/development
cMakeList: Prevent MSVCR1x0.dll dependency
nulltoken [Tue, 5 Feb 2013 13:32:09 +0000 (14:32 +0100)]
cMakeList: Prevent MSVCR1x0.dll dependency
Deploys the libgit2/libgit2@
9041250 fix to RELWITHDEBINFO
and MINSIZEREL build flavors
Fix #255
Russell Belfer [Mon, 4 Feb 2013 22:49:28 +0000 (14:49 -0800)]
Merge pull request #1298 from ben/user-at
Handle "user@" prefix for credentials partially included in URLs
Ben Straub [Mon, 4 Feb 2013 21:52:18 +0000 (13:52 -0800)]
Address feedback
Vicent Martí [Sun, 3 Feb 2013 16:41:47 +0000 (08:41 -0800)]
Merge pull request #1307 from nulltoken/fix/revparse_describe
revparse: Lookup branch before described tag
nulltoken [Sun, 3 Feb 2013 10:44:26 +0000 (11:44 +0100)]
revparse: Lookup sha before branch
nulltoken [Sat, 2 Feb 2013 16:36:20 +0000 (17:36 +0100)]
revparse: Lookup branch before described tag
Fix #1306
Ben Straub [Sat, 2 Feb 2013 03:21:55 +0000 (19:21 -0800)]
Use malloc rather than calloc
Vicent Martí [Fri, 1 Feb 2013 23:57:31 +0000 (15:57 -0800)]
Merge pull request #1303 from csware/win32_consistent_error_encoding
Win32: Make sure error messages are consistently UTF-8 encoded
Sven Strickroth [Fri, 1 Feb 2013 21:53:51 +0000 (22:53 +0100)]
Deduplicate FormatMessage UTF-16 to UTF-8 conversion code
Signed-off-by: Sven Strickroth <email@cs-ware.de>
Sven Strickroth [Fri, 1 Feb 2013 21:22:26 +0000 (22:22 +0100)]
Improved error handling
Signed-off-by: Sven Strickroth <email@cs-ware.de>
Vicent Martí [Fri, 1 Feb 2013 23:37:45 +0000 (15:37 -0800)]
Merge pull request #1299 from csware/support_local_msysgit_install
Support local msysgit installations
Vicent Martí [Fri, 1 Feb 2013 23:31:01 +0000 (15:31 -0800)]
Merge pull request #1302 from jamill/global_config_lookup
Try harder to find global config file
Sven Strickroth [Fri, 1 Feb 2013 21:14:52 +0000 (22:14 +0100)]
Get utf8_size from WideCharToMultiByte instead of guessing it
Signed-off-by: Sven Strickroth <email@cs-ware.de>
Sven Strickroth [Fri, 1 Feb 2013 15:17:34 +0000 (16:17 +0100)]
Win32: Make sure error messages are consistently UTF-8 encoded
W/o this a libgit2 error message could have a mixed encoding:
e.g. a filename in UTF-8 combined with a native Windows error message
encoded with the local code page.
Signed-off-by: Sven Strickroth <email@cs-ware.de>
Jameson Miller [Fri, 1 Feb 2013 19:23:26 +0000 (14:23 -0500)]
Try harder to find global config file
Ben Straub [Fri, 1 Feb 2013 18:00:55 +0000 (10:00 -0800)]
Introduce git__substrdup
Ben Straub [Fri, 1 Feb 2013 17:41:50 +0000 (09:41 -0800)]
Merge pull request #1286 from lznuaa/master
Fix clone fail if repo head detached
Frank Li [Tue, 29 Jan 2013 09:26:42 +0000 (17:26 +0800)]
Add test case for clone head detached repo
Signed-off-by: Frank Li <lznuaa@gmail.com>
Signed-off-by: nulltoken <emeric.fermas@gmail.com>
Sven Strickroth [Fri, 1 Feb 2013 09:32:05 +0000 (10:32 +0100)]
Stick to coding style: Move up braces
Signed-off-by: Sven Strickroth <email@cs-ware.de>
Ben Straub [Thu, 31 Jan 2013 23:24:59 +0000 (15:24 -0800)]
Remove double-free segfaults
Ben Straub [Thu, 31 Jan 2013 22:54:58 +0000 (14:54 -0800)]
WinHttp: use cred in url if provided
Ben Straub [Thu, 31 Jan 2013 22:41:01 +0000 (14:41 -0800)]
HTTP: use creds in url if available
Ben Straub [Thu, 31 Jan 2013 22:38:22 +0000 (14:38 -0800)]
Plug test leaks
Ben Straub [Thu, 31 Jan 2013 22:04:21 +0000 (14:04 -0800)]
Enhance url parsing to include passwords
Russell Belfer [Thu, 31 Jan 2013 21:20:20 +0000 (13:20 -0800)]
Merge pull request #1300 from carlosmn/ref-leading-slash
Crash when resolving a ref starting with "/"
Carlos Martín Nieto [Thu, 31 Jan 2013 19:23:30 +0000 (20:23 +0100)]
refs: handle ALLOW_ONELEVEL normalization with leading slash
A leading slash confuses the name normalization code when the flags
include ALLOW_ONELEVEL. Catch this case in particular to avoid
triggering an assertion in the uppercase check which expects us not to
pass it an empty string.
The existing tests don't catch this as they simply use the NORMAL
flag.
This fixes #1300.
Sven Strickroth [Thu, 31 Jan 2013 16:44:40 +0000 (17:44 +0100)]
Added Sven Strickroth to AUTHORS
Signed-off-by: Sven Strickroth <email@cs-ware.de>
Sven Strickroth [Thu, 31 Jan 2013 16:43:59 +0000 (17:43 +0100)]
Detect msysgit installation of users without admin rights
Signed-off-by: Sven Strickroth <email@cs-ware.de>
Sven Strickroth [Thu, 31 Jan 2013 16:37:20 +0000 (17:37 +0100)]
Refactored: Move msysgit registry detection to it's own function
Signed-off-by: Sven Strickroth <email@cs-ware.de>
Ben Straub [Thu, 31 Jan 2013 18:44:57 +0000 (10:44 -0800)]
Add user-from-url param to auth callback
Ben Straub [Thu, 31 Jan 2013 03:03:58 +0000 (19:03 -0800)]
Stash username from url (but don't use it yet)
Ben Straub [Thu, 31 Jan 2013 02:50:31 +0000 (18:50 -0800)]
Skip "user@" when finding hostname in url
Vicent Martí [Wed, 30 Jan 2013 22:45:12 +0000 (14:45 -0800)]
Merge pull request #1297 from arrbee/diff-patch-line-totals
Add helper API for diff line stats from patch
Vicent Martí [Wed, 30 Jan 2013 20:24:38 +0000 (12:24 -0800)]
Let people know that the ML is deprecated
Russell Belfer [Wed, 30 Jan 2013 19:25:20 +0000 (11:25 -0800)]
Free buffer at end of test
Russell Belfer [Wed, 30 Jan 2013 19:10:39 +0000 (11:10 -0800)]
Add helper for diff line stats
This adds a `git_diff_patch_line_stats()` API that gets the total
number of adds, deletes, and context lines in a patch. This will
make it a little easier to emulate `git diff --stat` and the like.
Right now, this relies on generating the `git_diff_patch` object,
which is a pretty heavyweight way to get stat information. At
some future point, it would probably be nice to be able to get
this information without allocating the entire `git_diff_patch`,
but that's a much larger project.
Vicent Martí [Tue, 29 Jan 2013 21:57:53 +0000 (13:57 -0800)]
Merge pull request #1296 from arrbee/stricter-config-name-checks
Stricter config entry name validation
Vicent Martí [Tue, 29 Jan 2013 21:54:30 +0000 (13:54 -0800)]
Merge pull request #1295 from carlosmn/obsd
Fix p_realpath on OpenBSD
Russell Belfer [Tue, 29 Jan 2013 21:54:08 +0000 (13:54 -0800)]
Merge pull request #1285 from phkelley/vector
Vector improvements and their fallout
Philip Kelley [Tue, 29 Jan 2013 21:49:12 +0000 (16:49 -0500)]
Now with no multiply
Russell Belfer [Tue, 29 Jan 2013 20:16:59 +0000 (12:16 -0800)]
Test config name validation
This is @nulltoken's work to test various invalid config section
and key names and make sure we are validating properly.
Russell Belfer [Tue, 29 Jan 2013 20:15:18 +0000 (12:15 -0800)]
Implement config key validation rules
This is a new implementation of core git's config key checking
rules that prevents non-alphanumeric characters (and '-') for
the top-level section and key names inside of config files.
This also validates the target section name when renaming
sections.
Russell Belfer [Tue, 29 Jan 2013 20:13:24 +0000 (12:13 -0800)]
Test buf join with NULL behavior explicitly
Carlos Martín Nieto [Tue, 29 Jan 2013 17:00:32 +0000 (18:00 +0100)]
Fix p_realpath on OpenBSD
OpenBSD's realpath(3) doesn't require the last part of the path to
exist. Override p_realpath in this OS to bring it in line with the
library's assumptions.
Vicent Martí [Mon, 28 Jan 2013 22:54:19 +0000 (14:54 -0800)]
Merge pull request #1289 from jwiegley/development
Added git_treebuilder_entrycount
John Wiegley [Mon, 28 Jan 2013 21:56:04 +0000 (15:56 -0600)]
Added git_treebuilder_entrycount
Conflicts:
src/tree.c
Congyi Wu [Mon, 28 Jan 2013 21:13:19 +0000 (16:13 -0500)]
Fix 2 bugs in online::push tests.
- Fix stack corruption introduced in
9bccf33c due to passing pointer to
local variable _cred_acquire_called.
- Fix strcmp in do_verify_push_status when expected or actual push_status
is NULL
Vicent Martí [Sun, 27 Jan 2013 21:15:48 +0000 (13:15 -0800)]
Merge pull request #1283 from lznuaa/master
Fix local repository clone failure
Philip Kelley [Sun, 27 Jan 2013 19:17:07 +0000 (14:17 -0500)]
Vector improvements and their fallout
Frank Li [Sun, 27 Jan 2013 07:02:06 +0000 (15:02 +0800)]
Fix fail clone local repo which head detatched
Set head detach if can't found branch after download
Signed-off-by: Frank Li <lznuaa@gmail.com>
Frank Li [Sun, 27 Jan 2013 05:36:37 +0000 (13:36 +0800)]
Fix fail clone local repository because can't found object
avoid use object which is already free
Signed-off-by: Frank Li <lznuaa@gmail.com>
Philip Kelley [Sat, 26 Jan 2013 20:12:53 +0000 (15:12 -0500)]
Fix a mutex leak in pack.c
Philip Kelley [Sat, 26 Jan 2013 04:35:04 +0000 (23:35 -0500)]
Expand valgrind suppressions even more for libssl, libcrypto
Vicent Martí [Sat, 26 Jan 2013 04:37:39 +0000 (20:37 -0800)]
Merge pull request #1278 from sba1/cl-assert-equal-s
Use cl_assert_equal_s() instead of strcmp().
Vicent Martí [Sat, 26 Jan 2013 04:35:03 +0000 (20:35 -0800)]
Merge pull request #1281 from phkelley/valgrind
Improve valgrind suppressions
Philip Kelley [Sat, 26 Jan 2013 04:24:13 +0000 (23:24 -0500)]
Improve valgrind suppressions
Philip Kelley [Sat, 26 Jan 2013 03:43:52 +0000 (22:43 -0500)]
Fix 3 memory leaks
Vicent Martí [Fri, 25 Jan 2013 20:02:21 +0000 (12:02 -0800)]
Merge pull request #1279 from carlosmn/config-trailing-backslash
config: support trailing backslashes
Vicent Martí [Fri, 25 Jan 2013 20:01:36 +0000 (12:01 -0800)]
Merge pull request #1280 from nulltoken/fix/clone-segfault
clone: Prevent segfault upon faulted remote creation
Carlos Martín Nieto [Fri, 25 Jan 2013 12:29:28 +0000 (13:29 +0100)]
config: support trailing backslashes
Check whether the backslash at the end of the line is being escaped or
not so as not to consider it a continuation marker when it's e.g. a
Windows-style path.
Michael Schubert [Thu, 24 Jan 2013 19:38:01 +0000 (20:38 +0100)]
tests-clar: ifdef GIT_WIN32 win helper functions
nulltoken [Fri, 25 Jan 2013 11:00:27 +0000 (12:00 +0100)]
clone: Prevent segfault upon faulted remote creation
Sebastian Bauer [Fri, 25 Jan 2013 05:48:55 +0000 (06:48 +0100)]
Use cl_assert_equal_s() instead of strcmp().
Replaced all cl_assert(!strcmp()) or semantically equivalent forms
by cl_assert_equal_s().
Vicent Martí [Fri, 25 Jan 2013 04:45:00 +0000 (20:45 -0800)]
Merge pull request #1277 from sba1/branch-name
Add git_branch_name()
Sebastian Bauer [Thu, 24 Jan 2013 19:44:17 +0000 (20:44 +0100)]
Added git_branch_name().
This is a convenience function to get the branch name of a given
ref. The returned branch name is compatible with the name that can
be supplied e.g. to git_branch_lookup(). That is, the prefixes
"refs/heads" or "refs/remotes" are omitted.
Also added a new test for testing the new function.
Scott J. Goldman [Fri, 25 Jan 2013 02:53:08 +0000 (18:53 -0800)]
index: Speed up loading a tree into the index
The index is empty; repeated tree entries cannot collide.
cc github/gitrpc#83
Philip Kelley [Thu, 24 Jan 2013 19:04:35 +0000 (14:04 -0500)]
Leak cleanup in push tests
Philip Kelley [Thu, 24 Jan 2013 19:03:11 +0000 (11:03 -0800)]
Merge pull request #1250 from jamill/push_update_tips
Update remote tips on push
Vicent Martí [Wed, 23 Jan 2013 23:55:29 +0000 (15:55 -0800)]
Merge pull request #1275 from ethomson/examples_windows
update examples to work on windows
Edward Thomson [Wed, 23 Jan 2013 23:38:00 +0000 (17:38 -0600)]
update examples to work on windows
Vicent Marti [Wed, 23 Jan 2013 23:09:55 +0000 (00:09 +0100)]
opts: Some basic tests
Vicent Marti [Wed, 23 Jan 2013 22:44:34 +0000 (23:44 +0100)]
opts: Add getters too
Vicent Martí [Wed, 23 Jan 2013 07:03:53 +0000 (23:03 -0800)]
Merge pull request #1273 from sba1/example-diff-fix
Don't clear the opt instance in the diff example.
Sebastian Bauer [Wed, 23 Jan 2013 06:47:40 +0000 (07:47 +0100)]
Don't clear the opt instance in the diff example.
The version field is overwritten otherwise. The opt instance is
already initialized properly.
Vicent Martí [Wed, 23 Jan 2013 02:55:56 +0000 (18:55 -0800)]
Merge pull request #1271 from libgit2/global-settings
Global options setter
Vicent Marti [Wed, 23 Jan 2013 01:58:58 +0000 (02:58 +0100)]
Global options setter
Russell Belfer [Wed, 23 Jan 2013 00:02:43 +0000 (16:02 -0800)]
Merge pull request #1270 from libgit2/packed-peeled-objects-fix
Allow peeled references without trailing newline at end of file
Scott J. Goldman [Wed, 23 Jan 2013 00:01:03 +0000 (16:01 -0800)]
Seperate out a new test that verifies packed-refs with no trailing newline
as per @vmg's request
Scott J. Goldman [Tue, 22 Jan 2013 23:49:51 +0000 (15:49 -0800)]
Allow peeled references without trailing newline at end of file
Also ammends one of the tag tests to make sure it's working.
Vicent Martí [Tue, 22 Jan 2013 23:31:44 +0000 (15:31 -0800)]
Merge pull request #1269 from arrbee/tree-iterator-case-sensitivity-bug
Fix case sensitivity bug with tree iterators
Russell Belfer [Tue, 22 Jan 2013 23:28:25 +0000 (15:28 -0800)]
Fix case sensitivity bug with tree iterators
With the new code to make tree iterators support ignore_case,
there is a bug in setting the start entry for range bounded
iterators where memcmp was being used instead of strncasecmp.
This fixes that and expands the tree iterator test to cover
the cases that were broken.
Scott J. Goldman [Tue, 22 Jan 2013 22:08:50 +0000 (14:08 -0800)]
Revert "Handle packed peeled objects without trailing newlines"
This reverts commit
28b1cdf3a1bdcd37cf9d550c92b8c19b1782ea6b .
//cc #1262 #1267
Vicent Martí [Tue, 22 Jan 2013 17:20:09 +0000 (09:20 -0800)]
Merge pull request #1268 from phkelley/development
A simple perf optimization in pack-objects.c
Jameson Miller [Thu, 17 Jan 2013 15:20:33 +0000 (10:20 -0500)]
Update remote tips on push
Philip Kelley [Tue, 22 Jan 2013 14:25:15 +0000 (09:25 -0500)]
Fix gen_pktline format specifier for Win32
Philip Kelley [Tue, 22 Jan 2013 13:21:08 +0000 (08:21 -0500)]
A simple perf optimization in pack-objects.c
Vicent Martí [Mon, 21 Jan 2013 23:09:38 +0000 (15:09 -0800)]
Merge pull request #1267 from libgit2/no-newline
Handle packed peeled objects without trailing newlines
Scott J. Goldman [Mon, 21 Jan 2013 22:45:43 +0000 (14:45 -0800)]
Handle packed peeled objects without trailing newlines
Fixes #1262
Vicent Martí [Mon, 21 Jan 2013 21:41:35 +0000 (13:41 -0800)]
Merge pull request #1266 from arrbee/update-clar
Update clar to
a80e7f30
Russell Belfer [Mon, 21 Jan 2013 21:39:53 +0000 (13:39 -0800)]
Vicent Martí [Mon, 21 Jan 2013 21:23:13 +0000 (13:23 -0800)]
Merge pull request #1265 from arrbee/parse-commit-time-as-uint64
Parse commit time as uint64_t to avoid overflow
Russell Belfer [Mon, 21 Jan 2013 21:19:41 +0000 (13:19 -0800)]
Parse commit time as uint64_t to avoid overflow
The commit time is already stored as a git_time_t, but we were
parsing is as a uint32_t. This just switches the parser to use
uint64_t which will handle dates further in the future (and adds
some tests of those future dates).
Carlos Martín Nieto [Sun, 20 Jan 2013 03:20:09 +0000 (04:20 +0100)]
commit: don't include the LF in the header field value
When the encoding header changed to be treated as an additional
header, the EOL pointer started to point to the byte after the LF,
making the git__strndup call copy the LF into the value.
Increase the EOL pointer value after copying the data to keep the rest
of the semantics but avoid copying LF.
Carlos Martín Nieto [Sun, 20 Jan 2013 00:57:32 +0000 (01:57 +0100)]
Fix compilation on OpenBSD
Philip Kelley [Fri, 18 Jan 2013 20:05:10 +0000 (12:05 -0800)]
Merge pull request #1260 from phkelley/development
Fix really bad error handling in git_smart__negotiate_fetch
Philip Kelley [Fri, 18 Jan 2013 19:51:46 +0000 (14:51 -0500)]
Fix really bad error handling in git_smart__negotiate_fetch
Vicent Martí [Fri, 18 Jan 2013 06:09:57 +0000 (22:09 -0800)]
Merge pull request #1258 from zcbenz/fix_index_remove_test
Fix linking error caused by
ddcb28a41f3774e26fc6ae0a7174a5565e4749ce .
Zhao Cheng [Fri, 18 Jan 2013 05:22:55 +0000 (13:22 +0800)]