| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a4ead57 commit 7fe20ab
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1972,6 +1972,13 @@ | |||
| 1972 | 1972 | } | |
| 1973 | 1973 | } | |
| 1974 | 1974 | }, | |
| 1975 | + "remote_head": { | ||
| 1976 | + "dependencies": [ | ||
| 1977 | + "../include/functions/free.h" | ||
| 1978 | + ], | ||
| 1979 | + "freeFunctionName": "git_remote_head_free", | ||
| 1980 | + "selfFreeing": true | ||
| 1981 | + }, | ||
| 1975 | 1982 | "repository": { | |
| 1976 | 1983 | "dependencies": [ | |
| 1977 | 1984 | "git2/sys/repository.h" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,12 @@ | |||
| 1 | + #include <v8.h> | ||
| 2 | + | ||
| 3 | + #include <string.h> | ||
| 4 | + | ||
| 5 | + #include "git2.h" | ||
| 6 | + | ||
| 7 | + #ifndef NODEGIT_FREE_FUNCTIONS | ||
| 8 | + #define NODEGIT_FREE_FUNCTIONS | ||
| 9 | + | ||
| 10 | + void git_remote_head_free(git_remote_head *remote_head); | ||
| 11 | + | ||
| 12 | + #endif | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,9 @@ | |||
| 1 | + #include <cstring> | ||
| 2 | + | ||
| 3 | + #include "git2.h" | ||
| 4 | + | ||
| 5 | + void git_remote_head_free(git_remote_head *remote_head) { | ||
| 6 | + free(remote_head->name); | ||
| 7 | + free(remote_head->symref_target); | ||
| 8 | + free(remote_head); | ||
| 9 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,6 +18,7 @@ | |||
| 18 | 18 | "src/promise_completion.cc", | |
| 19 | 19 | "src/wrapper.cc", | |
| 20 | 20 | "src/functions/copy.cc", | |
| 21 | + "src/functions/free.cc", | ||
| 21 | 22 | "src/convenient_patch.cc", | |
| 22 | 23 | "src/convenient_hunk.cc", | |
| 23 | 24 | "src/str_array_converter.cc", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments