Great post!
For all curious Linux users, the great than sign ('>') means output will be stored to the file. You can use it for almost any CLI (command-line interface) program. If you want to take a good look at the diff before making it a patch file, I'd suggest you use:
Code:
diff -c originalfile updatedfile | less
You can use the slash key ('/') to search for things within the diff.
Luke, I have a question. I understand that on most VCS's the diff command output is not the same as that of the diff you've just explained here. And if I'm not using a DVCS, it isn't very simple to branch (will have to spend bandwidth downloading). Is there any simple way to generate a patch when I'm already using a VCS like hg, bzr or svn? Thanks!