rugged 0.24.0b12 → 0.24.0b13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/rugged/rugged.c +1 -0
- data/ext/rugged/rugged.h +3 -0
- data/ext/rugged/rugged_commit.c +72 -12
- data/ext/rugged/rugged_rebase.c +355 -0
- data/ext/rugged/rugged_reference.c +12 -0
- data/ext/rugged/rugged_repo.c +57 -1
- data/ext/rugged/rugged_revwalk.c +24 -0
- data/lib/rugged/commit.rb +4 -0
- data/lib/rugged/tag.rb +19 -0
- data/lib/rugged/version.rb +1 -1
- data/vendor/libgit2/CMakeLists.txt +3 -2
- data/vendor/libgit2/include/git2/commit.h +12 -0
- data/vendor/libgit2/include/git2/diff.h +1 -1
- data/vendor/libgit2/include/git2/merge.h +0 -8
- data/vendor/libgit2/include/git2/rebase.h +32 -2
- data/vendor/libgit2/include/git2/stash.h +1 -1
- data/vendor/libgit2/src/attr_file.c +3 -2
- data/vendor/libgit2/src/checkout.c +6 -3
- data/vendor/libgit2/src/commit.c +103 -12
- data/vendor/libgit2/src/curl_stream.c +5 -1
- data/vendor/libgit2/src/diff.c +4 -4
- data/vendor/libgit2/src/index.c +2 -2
- data/vendor/libgit2/src/iterator.c +3 -2
- data/vendor/libgit2/src/iterator.h +1 -0
- data/vendor/libgit2/src/merge.c +9 -10
- data/vendor/libgit2/src/pack-objects.c +8 -4
- data/vendor/libgit2/src/pack.c +2 -3
- data/vendor/libgit2/src/pack.h +0 -7
- data/vendor/libgit2/src/pathspec.c +1 -2
- data/vendor/libgit2/src/rebase.c +262 -118
- data/vendor/libgit2/src/stash.c +4 -4
- data/vendor/libgit2/src/submodule.c +3 -3
- data/vendor/libgit2/src/transports/winhttp.c +7 -2
- metadata +3 -2
data/vendor/libgit2/src/stash.c
CHANGED
@@ -685,8 +685,8 @@ static int merge_indexes(
|
|
685
685
|
iter_opts.flags = GIT_ITERATOR_DONT_IGNORE_CASE;
|
686
686
|
|
687
687
|
if ((error = git_iterator_for_tree(&ancestor, ancestor_tree, &iter_opts)) < 0 ||
|
688
|
-
(error = git_iterator_for_index(&ours, ours_index, &iter_opts)) < 0 ||
|
689
|
-
(error = git_iterator_for_index(&theirs, theirs_index, &iter_opts)) < 0)
|
688
|
+
(error = git_iterator_for_index(&ours, repo, ours_index, &iter_opts)) < 0 ||
|
689
|
+
(error = git_iterator_for_index(&theirs, repo, theirs_index, &iter_opts)) < 0)
|
690
690
|
goto done;
|
691
691
|
|
692
692
|
error = git_merge__iterators(out, repo, ancestor, ours, theirs, NULL);
|
@@ -712,7 +712,7 @@ static int merge_index_and_tree(
|
|
712
712
|
iter_opts.flags = GIT_ITERATOR_DONT_IGNORE_CASE;
|
713
713
|
|
714
714
|
if ((error = git_iterator_for_tree(&ancestor, ancestor_tree, &iter_opts)) < 0 ||
|
715
|
-
(error = git_iterator_for_index(&ours, ours_index, &iter_opts)) < 0 ||
|
715
|
+
(error = git_iterator_for_index(&ours, repo, ours_index, &iter_opts)) < 0 ||
|
716
716
|
(error = git_iterator_for_tree(&theirs, theirs_tree, &iter_opts)) < 0)
|
717
717
|
goto done;
|
718
718
|
|
@@ -728,7 +728,7 @@ done:
|
|
728
728
|
static void normalize_apply_options(
|
729
729
|
git_stash_apply_options *opts,
|
730
730
|
const git_stash_apply_options *given_apply_opts)
|
731
|
-
{
|
731
|
+
{
|
732
732
|
if (given_apply_opts != NULL) {
|
733
733
|
memcpy(opts, given_apply_opts, sizeof(git_stash_apply_options));
|
734
734
|
} else {
|
@@ -327,7 +327,7 @@ static int submodules_from_index(git_strmap *map, git_index *idx, git_config *cf
|
|
327
327
|
const git_index_entry *entry;
|
328
328
|
git_buf name = GIT_BUF_INIT;
|
329
329
|
|
330
|
-
if ((error = git_iterator_for_index(&i, idx, NULL)) < 0)
|
330
|
+
if ((error = git_iterator_for_index(&i, git_index_owner(idx), idx, NULL)) < 0)
|
331
331
|
return error;
|
332
332
|
|
333
333
|
while (!(error = git_iterator_advance(&entry, i))) {
|
@@ -1037,7 +1037,7 @@ static int submodule_repo_create(
|
|
1037
1037
|
|
1038
1038
|
/**
|
1039
1039
|
* Repodir: path to the sub-repo. sub-repo goes in:
|
1040
|
-
* <repo-dir>/modules/<name>/ with a gitlink in the
|
1040
|
+
* <repo-dir>/modules/<name>/ with a gitlink in the
|
1041
1041
|
* sub-repo workdir directory to that repository.
|
1042
1042
|
*/
|
1043
1043
|
error = git_buf_join3(
|
@@ -1154,7 +1154,7 @@ int git_submodule_update(git_submodule *sm, int init, git_submodule_update_optio
|
|
1154
1154
|
clone_options.repository_cb_payload = sm;
|
1155
1155
|
|
1156
1156
|
/*
|
1157
|
-
* Do not perform checkout as part of clone, instead we
|
1157
|
+
* Do not perform checkout as part of clone, instead we
|
1158
1158
|
* will checkout the specific commit manually.
|
1159
1159
|
*/
|
1160
1160
|
clone_options.checkout_opts.checkout_strategy = GIT_CHECKOUT_NONE;
|
@@ -53,10 +53,15 @@ static const int no_check_cert_flags = SECURITY_FLAG_IGNORE_CERT_CN_INVALID |
|
|
53
53
|
SECURITY_FLAG_IGNORE_UNKNOWN_CA;
|
54
54
|
|
55
55
|
#if defined(__MINGW32__)
|
56
|
-
const CLSID
|
56
|
+
static const CLSID CLSID_InternetSecurityManager_mingw =
|
57
|
+
{ 0x7B8A2D94, 0x0AC9, 0x11D1,
|
57
58
|
{ 0x89, 0x6C, 0x00, 0xC0, 0x4F, 0xB6, 0xBF, 0xC4 } };
|
58
|
-
const IID
|
59
|
+
static const IID IID_IInternetSecurityManager_mingw =
|
60
|
+
{ 0x79EAC9EE, 0xBAF9, 0x11CE,
|
59
61
|
{ 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B } };
|
62
|
+
|
63
|
+
# define CLSID_InternetSecurityManager CLSID_InternetSecurityManager_mingw
|
64
|
+
# define IID_IInternetSecurityManager IID_IInternetSecurityManager_mingw
|
60
65
|
#endif
|
61
66
|
|
62
67
|
#define OWNING_SUBTRANSPORT(s) ((winhttp_subtransport *)(s)->parent.subtransport)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rugged
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.24.
|
4
|
+
version: 0.24.0b13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Chacon
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-02-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake-compiler
|
@@ -83,6 +83,7 @@ files:
|
|
83
83
|
- ext/rugged/rugged_note.c
|
84
84
|
- ext/rugged/rugged_object.c
|
85
85
|
- ext/rugged/rugged_patch.c
|
86
|
+
- ext/rugged/rugged_rebase.c
|
86
87
|
- ext/rugged/rugged_reference.c
|
87
88
|
- ext/rugged/rugged_reference_collection.c
|
88
89
|
- ext/rugged/rugged_remote.c
|