Template:Src: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(point to G83) |
||
Line 1: | Line 1: | ||
<includeonly><span class="plainlinks">[https://github.com/OSGeo/grass/blob/{{{branch| | <includeonly><span class="plainlinks">[https://github.com/OSGeo/grass/blob/{{{branch|main}}}/{{{1}}} {{{1}}}]</span></includeonly><noinclude>GRASS GIS GitHub source code browser link. | ||
== Usage == | == Usage == | ||
Line 9: | Line 9: | ||
"release branch": | "release branch": | ||
<nowiki>{{src|path/filename.c|branch= | <nowiki>{{src|path/filename.c|branch=releasebranch_8_3}}</nowiki> | ||
The default is currently set to ''master'' (GRASS | The default is currently set to ''master'' (GRASS GIS 8) | ||
* for GRASS | * for GRASS 8.3.git use <tt>releasebranch_8_3</tt> | ||
* for GRASS 7.8.git use <tt>releasebranch_7_8</tt> | * for GRASS 7.8.git use <tt>releasebranch_7_8</tt> | ||
Line 26: | Line 26: | ||
To refer to " | To refer to "releasebranch_8_3", use: | ||
<nowiki>{{src|raster/r.info/main.c|branch= | <nowiki>{{src|raster/r.info/main.c|branch=releasebranch_8_3}}</nowiki> | ||
which creates | which creates | ||
: {{src|raster/r.info/main.c|branch= | : {{src|raster/r.info/main.c|branch=releasebranch_8_3}} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 09:53, 7 March 2024
GRASS GIS GitHub source code browser link.
Usage
"master":
{{src|path/filename.c}}
"release branch":
{{src|path/filename.c|branch=releasebranch_8_3}}
The default is currently set to master (GRASS GIS 8)
- for GRASS 8.3.git use releasebranch_8_3
- for GRASS 7.8.git use releasebranch_7_8
Examples
To refer to "master", use:
{{src|raster/r.info/main.c}}
which creates
To refer to "releasebranch_8_3", use:
{{src|raster/r.info/main.c|branch=releasebranch_8_3}}
which creates