Skip to content

Commit c6a2dab

Browse files
Add a config backend base class.
1 parent fcafd08 commit c6a2dab

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

ext/rugged/rugged.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ void Init_rugged(void)
467467
Init_rugged_branch();
468468
Init_rugged_branch_collection();
469469
Init_rugged_config();
470+
Init_rugged_config_backend();
470471
Init_rugged_remote();
471472
Init_rugged_remote_collection();
472473
Init_rugged_notes();

ext/rugged/rugged.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ void Init_rugged_revwalk(void);
6565
void Init_rugged_reference(void);
6666
void Init_rugged_reference_collection(void);
6767
void Init_rugged_config(void);
68+
void Init_rugged_config_backend(void);
6869
void Init_rugged_remote(void);
6970
void Init_rugged_remote_collection(void);
7071
void Init_rugged_notes(void);

ext/rugged/rugged_config_backend.c

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* The MIT License
3+
*
4+
* Copyright (c) 2015 GitHub, Inc
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in
14+
* all copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
* THE SOFTWARE.
23+
*/
24+
25+
#include "rugged.h"
26+
27+
extern VALUE rb_cRuggedConfig;
28+
VALUE rb_cRuggedConfigBackend;
29+
30+
void Init_rugged_config_backend(void)
31+
{
32+
rb_cRuggedConfigBackend = rb_define_class_under(rb_cRuggedConfig, "Backend", rb_cObject);
33+
}

0 commit comments

Comments
 (0)