I'd like to contribute code to a project. I just have to send in patches. How do I check to make sure that my patches are okay? I know that it is something to do with using diff, but I also know that you have to compare my copy of the source to the original. What directory to I have to be in? What arguments do I have to pass?