Template:Src: Difference between revisions

From GRASS-Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly><span class="plainlinks">[https://github.com/OSGeo/grass/blob/{{{branch|master}}}/{{{1}}} {{{1}}}]</span></includeonly><noinclude>GRASS GIS GitHub source code browser link.
<includeonly><span class="plainlinks">[https://github.com/OSGeo/grass/blob/{{{branch|master}}}/{{{1}}} {{{1}}}]</span></includeonly><noinclude>GRASS GIS GitHub source code browser link.


Usage:
== Usage ==


"master":
"master":
Line 15: Line 15:
* for GRASS 7.8.git use <tt>releasebranch_7_8</tt>
* for GRASS 7.8.git use <tt>releasebranch_7_8</tt>


Examples:
== Examples ==


"master":
To refer to "master", 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}}




"releasebranch_7_8":
To refer to "releasebranch_7_8", use:


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


creates
which creates


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


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 08:48, 28 August 2020

GRASS GIS GitHub source code browser link.

Usage

"master":

{{src|path/filename.c}}

"release branch":

{{src|path/filename.c|branch=releasebranch_7_8}}

The default is currently set to master (GRASS 7)

  • for GRASS 7.4.git use releasebranch_7_4
  • for GRASS 7.8.git use releasebranch_7_8

Examples

To refer to "master", use:

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

which creates

raster/r.info/main.c


To refer to "releasebranch_7_8", use:

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

which creates

raster/r.info/main.c