Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit be7fb89

Browse files
Nikolai Vladimirovarthurschreiber
authored andcommitted
submodule: add submodule support
Closes #408.
1 parent 84d5f52 commit be7fb89

File tree

11 files changed

+1672
-2
lines changed

11 files changed

+1672
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11

2+
* Add submodule support.
3+
4+
Expose git submodules functionality through `Rugged::Submodule` and
5+
`Rugged::SubmoduleCollection`.
6+
7+
*Nikolai Vladimirov*
8+
29
* Add `Rugged::Walker#push_range`.
310

411
*Evgeniy Sokovikov*

ext/rugged/rugged.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,8 @@ void Init_rugged(void)
446446
Init_rugged_remote_collection();
447447
Init_rugged_notes();
448448
Init_rugged_settings();
449+
Init_rugged_submodule();
450+
Init_rugged_submodule_collection();
449451
Init_rugged_diff();
450452
Init_rugged_patch();
451453
Init_rugged_diff_delta();

ext/rugged/rugged.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ void Init_rugged_remote(void);
6565
void Init_rugged_remote_collection(void);
6666
void Init_rugged_notes(void);
6767
void Init_rugged_settings(void);
68+
void Init_rugged_submodule(void);
69+
void Init_rugged_submodule_collection(void);
6870
void Init_rugged_diff(void);
6971
void Init_rugged_patch(void);
7072
void Init_rugged_diff_delta(void);
@@ -79,6 +81,7 @@ VALUE rugged_raw_read(git_repository *repo, const git_oid *oid);
7981

8082
VALUE rugged_signature_new(const git_signature *sig, const char *encoding_name);
8183

84+
VALUE rugged_repo_new(VALUE klass, git_repository *repo);
8285
VALUE rugged_index_new(VALUE klass, VALUE owner, git_index *index);
8386
VALUE rugged_config_new(VALUE klass, VALUE owner, git_config *cfg);
8487
VALUE rugged_object_new(VALUE owner, git_object *object);

ext/rugged/rugged_repo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ void rb_git_repo__free(git_repository *repo)
138138
git_repository_free(repo);
139139
}
140140

141-
static VALUE rugged_repo_new(VALUE klass, git_repository *repo)
141+
VALUE rugged_repo_new(VALUE klass, git_repository *repo)
142142
{
143143
VALUE rb_repo = Data_Wrap_Struct(klass, NULL, &rb_git_repo__free, repo);
144144

0 commit comments

Comments
 (0)