Template:Src: Difference between revisions

From GRASS-Wiki
Jump to navigation Jump to search
(Template: update versions)
(Update src template)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><span class="plainlinks">[http://trac.osgeo.org/grass/browser/grass/{{{branch|trunk}}}/{{{1}}} {{{1}}}]</span></includeonly><noinclude>GRASS Trac SVN source code browser semi-external link. Usage:
<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 ==
 
"main" branch:


  <nowiki>{{src|path/filename.c}}</nowiki>
  <nowiki>{{src|path/filename.c}}</nowiki>


or
"release branch":
 
<nowiki>{{src|path/filename.c|branch=releasebranch_8_4}}</nowiki>


<nowiki>{{src|path/filename.c|branch=branches/releasebranch_7_6}}</nowiki>
The default is currently set to ''main'' (GRASS GIS 8 development branch)
* for GRASS 8.4.git use <tt>releasebranch_8_4</tt>


The default is currently set to ''trunk'' (GRASS 7)
== Examples ==
* for GRASS 7.4.svn use <tt>branches/releasebranch_7_4</tt>
* for GRASS 7.6.svn use <tt>branches/releasebranch_7_6</tt>


For example
To refer to "main" branch, use:


  <nowiki>{{src|raster/r.info/main.c}}</nowiki>
  <nowiki>{{src|raster/r.info/main.c}}</nowiki>


creates
which creates


: {{src|raster/r.info/main.c}}
: {{src|raster/r.info/main.c}}


To refer to "releasebranch_8_4", use:
<nowiki>{{src|raster/r.info/main.c|branch=releasebranch_8_4}}</nowiki>
which creates
: {{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

raster/r.info/main.c


To refer to "releasebranch_8_4", use:

{{src|raster/r.info/main.c|branch=releasebranch_8_4}}

which creates

raster/r.info/main.c