-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
96 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
(define (test-libgit2-version) | ||
(when (!= (libgit2-version) "1.7.1") | ||
(display* "Result: " (libgit2-version)) | ||
(error "libgit2-version does not match")) | ||
1) | ||
|
||
(tm-define (test_44_5) | ||
(let ((n (+ (test-libgit2-version)))) | ||
(display* "Total: " (object->string n) " tests.\n") | ||
(display "Test suite of 44_5: ok\n"))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
/****************************************************************************** | ||
* MODULE : git.cpp | ||
* DESCRIPTION: Interface with Git | ||
* COPYRIGHT : (C) 2024 Darcy Shen | ||
******************************************************************************* | ||
* This software falls under the GNU general public license version 3 or later. | ||
* It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE | ||
* in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>. | ||
******************************************************************************/ | ||
|
||
#include "git.hpp" | ||
|
||
string | ||
libgit2_version() { | ||
return string (LIBGIT2_VERSION); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
/****************************************************************************** | ||
* MODULE : git.hpp | ||
* DESCRIPTION: Interface with Git | ||
* COPYRIGHT : (C) 2024 Darcy Shen | ||
******************************************************************************* | ||
* This software falls under the GNU general public license version 3 or later. | ||
* It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE | ||
* in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>. | ||
******************************************************************************/ | ||
|
||
#ifndef PLUGIN_GIT_HPP | ||
#define PLUGIN_GIT_HPP | ||
|
||
#include "string.hpp" | ||
|
||
string libgit2_version (); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
------------------------------------------------------------------------------- | ||
-- | ||
-- MODULE : glue_git.lua | ||
-- DESCRIPTION : Generating glue on src/Plugins/Git | ||
-- COPYRIGHT : (C) 2024 Darcy Shen | ||
-- | ||
-- This software falls under the GNU general public license version 3 or later. | ||
-- It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE | ||
-- in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>. | ||
|
||
function main() | ||
return { | ||
binding_object = "", | ||
initializer_name = "initialize_glue_git", | ||
glues = { | ||
{ | ||
scm_name = "libgit2-version", | ||
cpp_name = "libgit2_version", | ||
ret_type = "string" | ||
}, | ||
} | ||
} | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters