You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`commit_stats(repository_id, [from_commit_hash], to_commit_hash) json`|returns the stats between two commits for a repository. If `from_commit_hash` is empty, it will compare the given `to_commit_hash` with its parent commit. Vendored files stats are not included in the result of this function. This function is more thoroughly explained later in this document.|
10
10
|`commit_file_stats(repository_id, [from_commit_hash], to_commit_hash) json array`|returns an array with the stats of each file in `to_commit_hash` since the given `from_commit_hash`. If `from_commit_hash` is not given, the parent commit will be used. Vendored files stats are not included in the result of this function. This function is more thoroughly explained later in this document.|
11
-
|`is_remote(reference_name)bool`| checks if the given reference name is from a remote one. |
12
11
|`is_tag(reference_name)bool`| checks if the given reference name is a tag. |
13
12
|`is_vendor(file_path)bool`| checks if the given file name is a vendored file. |
14
13
|`language(path, [blob])text`| gets the language of a file given its path and the optional content of the file. |
@@ -19,16 +18,15 @@ To make some common tasks easier for the user, there are some functions to inter
19
18
|`uast_children(blob) blob`| returns a flattened array of the children UAST nodes from each one of the UAST nodes in the given array. |
20
19
|`loc(path, blob) json`| returns a JSON map, containing the lines of code of a file, separated in three categories: Code, Blank and Comment lines. |
21
20
|`version() text`| returns the gitbase version in the following format `8.0.11-{GITBASE_VERSION}` for compatibility with MySQL versioning. |
22
-
||||||| merged common ancestors
23
-
|`is_remote(reference_name)bool`| check if the given reference name is from a remote one |
24
-
|`is_tag(reference_name)bool`| check if the given reference name is a tag |
25
-
|`language(path, [blob])text`| gets the language of a file given its path and the optional content of the file |
26
-
|`uast(blob, [lang, [xpath]]) blob`| returns a node array of UAST nodes in semantic mode |
27
-
|`uast_mode(mode, blob, lang) blob`| returns a node array of UAST nodes specifying its language and mode (semantic, annotated or native) |
28
-
|`uast_xpath(blob, xpath) blob`| performs an XPath query over the given UAST nodes |
29
-
|`uast_extract(blob, key) text array`| extracts information identified by the given key from the uast nodes |
30
-
|`uast_children(blob) blob`| returns a flattened array of the children UAST nodes from each one of the UAST nodes in the given array |
31
-
|`loc(path, blob) json`| returns a JSON map, containing the lines of code of a file, separated in three categories: Code, Blank and Comment lines |
21
+
|`is_remote(reference_name)bool`| checks if the given reference name is from a remote one. |
22
+
|`is_tag(reference_name)bool`| check if the given reference name is a tag. |
23
+
|`language(path, [blob])text`| gets the language of a file given its path and the optional content of the file. |
24
+
|`uast(blob, [lang, [xpath]]) blob`| returns a node array of UAST nodes in semantic mode. |
25
+
|`uast_mode(mode, blob, lang) blob`| returns a node array of UAST nodes specifying its language and mode (semantic, annotated or native). |
26
+
|`uast_xpath(blob, xpath) blob`| performs an XPath query over the given UAST nodes. |
27
+
|`uast_extract(blob, key) text array`| extracts information identified by the given key from the uast nodes. |
28
+
|`uast_children(blob) blob`| returns a flattened array of the children UAST nodes from each one of the UAST nodes in the given array. |
29
+
|`loc(path, blob) json`| returns a JSON map, containing the lines of code of a file, separated in three categories: Code, Blank and Comment lines. |
32
30
33
31
## Standard functions
34
32
@@ -39,7 +37,7 @@ These are all functions that are available because they are implemented in `go-m
0 commit comments