Difference between revisions of "Template:Src"

From GRASS-Wiki
Jump to: navigation, search
(Template: update versions)
(update to GitHub)
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/{{{releasebranch_7_8|master}}}/{{{1}}} {{{1}}}]</span></includeonly><noinclude>GRASS GIS GitHub source code browser link. Usage:
  
 
  <nowiki>{{src|path/filename.c}}</nowiki>
 
  <nowiki>{{src|path/filename.c}}</nowiki>
Line 5: Line 5:
 
or
 
or
  
  <nowiki>{{src|path/filename.c|branch=branches/releasebranch_7_6}}</nowiki>
+
  <nowiki>{{src|path/filename.c|branch=releasebranch_7_8}}</nowiki>
  
The default is currently set to ''trunk'' (GRASS 7)
+
The default is currently set to ''master'' (GRASS 7)
* for GRASS 7.4.svn use <tt>branches/releasebranch_7_4</tt>
+
* for GRASS 7.4.git use <tt>releasebranch_7_4</tt>
* for GRASS 7.6.svn use <tt>branches/releasebranch_7_6</tt>
+
* for GRASS 7.8.git use <tt>releasebranch_7_8</tt>
  
 
For example
 
For example

Revision as of 01:45, 28 August 2020

GRASS GIS GitHub source code browser link. Usage:

{{src|path/filename.c}}

or

{{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

For example

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

creates

raster/r.info/main.c