Template:Src: Difference between revisions
Jump to navigation
Jump to search
(point to G83) |
(Update src template) |
||
Line 3: | Line 3: | ||
== Usage == | == Usage == | ||
" | "main" branch: | ||
<nowiki>{{src|path/filename.c}}</nowiki> | <nowiki>{{src|path/filename.c}}</nowiki> | ||
Line 9: | Line 9: | ||
"release branch": | "release branch": | ||
<nowiki>{{src|path/filename.c|branch= | <nowiki>{{src|path/filename.c|branch=releasebranch_8_4}}</nowiki> | ||
The default is currently set to '' | The default is currently set to ''main'' (GRASS GIS 8 development branch) | ||
* for GRASS 8. | * for GRASS 8.4.git use <tt>releasebranch_8_4</tt> | ||
== Examples == | == Examples == | ||
To refer to " | To refer to "main" branch, use: | ||
<nowiki>{{src|raster/r.info/main.c}}</nowiki> | <nowiki>{{src|raster/r.info/main.c}}</nowiki> | ||
Line 26: | Line 25: | ||
To refer to " | To refer to "releasebranch_8_4", use: | ||
<nowiki>{{src|raster/r.info/main.c|branch= | <nowiki>{{src|raster/r.info/main.c|branch=releasebranch_8_4}}</nowiki> | ||
which creates | which creates | ||
: {{src|raster/r.info/main.c|branch= | : {{src|raster/r.info/main.c|branch=releasebranch_8_4}} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 12:15, 24 October 2024
GRASS GIS GitHub source code browser link.
Usage
"main" branch:
{{src|path/filename.c}}
"release branch":
{{src|path/filename.c|branch=releasebranch_8_4}}
The default is currently set to main (GRASS GIS 8 development branch)
- for GRASS 8.4.git use releasebranch_8_4
Examples
To refer to "main" branch, use:
{{src|raster/r.info/main.c}}
which creates
To refer to "releasebranch_8_4", use:
{{src|raster/r.info/main.c|branch=releasebranch_8_4}}
which creates