https://brlcad.org/w/api.php?action=feedcontributions&user=MarcTannous&feedformat=atomBRL-CAD - User contributions [en]2024-03-28T09:38:16ZUser contributionsMediaWiki 1.32.2https://brlcad.org/w/index.php?title=Patches&diff=7825Patches2014-12-04T13:05:01Z<p>MarcTannous: /* How to create a patch */</p>
<hr />
<div>= How to create, edit or apply a patch =<br />
<br />
== Prerequisites ==<br />
To handle and apply patches, BRL-CAD uses<br />
[http://en.wikipedia.org/wiki/Apache_Subversion Subversion].<br />
You will need to install Subversion (Often abbreviated as svn).<br />
<br />
If you're on a Debian/Ubuntu system you can get it by running:<br />
<pre><br />
sudo apt-get install subversion<br />
</pre><br />
<br />
You can obtain the latest version of BRL-CAD by running:<br />
<br />
<pre><br />
svn checkout https://svn.code.sf.net/p/brlcad/code/brlcad/trunk brlcad<br />
</pre><br />
<br />
If you are in the folder where the "brlcad" folder is and you run<br />
that command, svn will only download updated/modified files.<br />
<br />
== How to create a patch ==<br />
<br />
In order to submit a patch it is important to have the latest version of BRL-CAD. After you have done that, you get into the brlcad directory and run<br />
<pre><br />
svn diff > ~/first.patch<br />
</pre><br />
This will create the patch file in your user's home. The patch is in text format<br />
and you can read it to make sure it contains what was intended.<br />
<br />
If you added a new file and want to include it in the patch, run<br />
<pre><br />
svn add myfile.txt<br />
</pre><br />
<br />
However, if you removed a file and want that to be included in the patch, run<br />
<pre><br />
svn remove myfile.txt<br />
</pre><br />
<br />
== How to Submit a patch ==<br />
<br />
To submit a patch to the BRL-CAD tracker you must first create<br />
a [http://sourceforge.net/ sourceforge account].<br />
Of course, if you have one already, you don't need to create another.<br />
<br />
Now, you can submit your patch on the [http://sourceforge.net/tracker/?group_id=105292&atid=640804 BRL-CAD tracker] by clicking "Create Ticket". <br />
<br />
You should use the description field to explain what you did there<br />
and, if necessary, what isn't working.<br />
<br />
Be sure to check out the extensive [[Documentation]] and [[Main_Page]] for tutorials and [[Contributor Quickies]] for ways to get involved!</div>MarcTannoushttps://brlcad.org/w/index.php?title=Patches&diff=7824Patches2014-12-04T13:00:24Z<p>MarcTannous: /* How to create, edit or apply a patch */</p>
<hr />
<div>= How to create, edit or apply a patch =<br />
<br />
== Prerequisites ==<br />
To handle and apply patches, BRL-CAD uses<br />
[http://en.wikipedia.org/wiki/Apache_Subversion Subversion].<br />
You will need to install Subversion (Often abbreviated as svn).<br />
<br />
If you're on a Debian/Ubuntu system you can get it by running:<br />
<pre><br />
sudo apt-get install subversion<br />
</pre><br />
<br />
You can obtain the latest version of BRL-CAD by running:<br />
<br />
<pre><br />
svn checkout https://svn.code.sf.net/p/brlcad/code/brlcad/trunk brlcad<br />
</pre><br />
<br />
If you are in the folder where the "brlcad" folder is and you run<br />
that command, svn will only download updated/modified files.<br />
<br />
== How to create a patch ==<br />
<br />
In order to submit a patch it is important to have the latest version of BRL-CAD. After you have done that, you get into the brlcad directory and run<br />
<pre><br />
svn diff > ~/first.patch<br />
</pre><br />
This will create the patch file in your user's home. The patch is in text format<br />
and you can read it to make sure it contains what was intended.<br />
<br />
== How to Submit a patch ==<br />
<br />
To submit a patch to the BRL-CAD tracker you must first create<br />
a [http://sourceforge.net/ sourceforge account].<br />
Of course, if you have one already, you don't need to create another.<br />
<br />
Now, you can submit your patch on the [http://sourceforge.net/tracker/?group_id=105292&atid=640804 BRL-CAD tracker] by clicking "Create Ticket". <br />
<br />
You should use the description field to explain what you did there<br />
and, if necessary, what isn't working.<br />
<br />
Be sure to check out the extensive [[Documentation]] and [[Main_Page]] for tutorials and [[Contributor Quickies]] for ways to get involved!</div>MarcTannous