Difference between revisions of "Template:Src"

From GRASS-Wiki
Jump to: navigation, search
(update to GitHub)
m
Line 1: Line 1:
<includeonly><span class="plainlinks">[https://github.com/OSGeo/grass/blob/{{{releasebranch_7_8|master}}}/{{{1}}} {{{1}}}]</span></includeonly><noinclude>GRASS GIS GitHub source code browser link. Usage:
+
<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:
 +
 
 +
"master":
  
 
  <nowiki>{{src|path/filename.c}}</nowiki>
 
  <nowiki>{{src|path/filename.c}}</nowiki>
  
or
+
"release branch":
  
 
  <nowiki>{{src|path/filename.c|branch=releasebranch_7_8}}</nowiki>
 
  <nowiki>{{src|path/filename.c|branch=releasebranch_7_8}}</nowiki>
Line 11: Line 15:
 
* for GRASS 7.8.git use <tt>releasebranch_7_8</tt>
 
* for GRASS 7.8.git use <tt>releasebranch_7_8</tt>
  
For example
+
Examples:
 +
 
 +
"master":
  
 
  <nowiki>{{src|raster/r.info/main.c}}</nowiki>
 
  <nowiki>{{src|raster/r.info/main.c}}</nowiki>
Line 18: Line 24:
  
 
: {{src|raster/r.info/main.c}}
 
: {{src|raster/r.info/main.c}}
 +
 +
 +
"releasebranch_7_8":
 +
 +
<nowiki>{{src|raster/r.info/main.c|branch=releasebranch_7_8}}</nowiki>
 +
 +
creates
 +
 +
: {{src|raster/r.info/main.c|branch=releasebranch_7_8}}
  
  
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 01:47, 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:

"master":

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

creates

raster/r.info/main.c


"releasebranch_7_8":

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

creates

raster/r.info/main.c