Open Source Comes to Campus/Resources: Difference between revisions

Content added Content deleted
imported>Shauna
imported>Shauna
Line 30: Line 30:
=== Diff and Patch Demo ===
=== Diff and Patch Demo ===


Using the files in [this repository]:
This demo uses the files in [this repository].

* I have [a To Do List]! But maybe it needs editing. First, I'll make a copy to edit:
I have [a To Do List]! But maybe it needs editing. First, I'll make a copy to edit:
<pre>cp ToDoList new_ToDoList</pre>
<pre>cp ToDoList new_ToDoList</pre>

* Then I'll open it up and make changes to it.
Then I'll open it up and make changes to it. (Side note: make sure to explain which editor you're using and give options for those following along - emacs, vim, nano, or a GUI.)
* How do I view the differences between the two?

How do I view the differences between the two?

<pre>diff -u ToDoList new_ToDoList</pre>
<pre>diff -u ToDoList new_ToDoList</pre>

Usually I print to the command line, then again storing the results in a diff file:
Usually I print to the command line, then again storing the results in a diff file:
<pre>diff -u ToDoList new_ToDoList > changes.diff</pre>


<pre>diff -u ToDoList new_ToDoList > changes.diff</pre>


=== Issue Tracker Demo ===
=== Issue Tracker Demo ===