Help: Patches

Summary
Help: Patches
Before you submit patchesConsiderations.
Creating a patchPlease submit your contributions in the <patch at url target=”http://en.wikipedia” name=”http://en.wikipedia”.org/wiki/Patch_%28Unix%29> format.
Where to submitPlease use our <Trac at url target=”http://sourceforge” name=”http://sourceforge”.net/apps/trac/quvi> to submit your patches.

Before you submit patches

Considerations.

  • You agree to put your changes and new code under the same license quvi and libquvi are using already unless stated and agreed otherwise
  • If you are submitting a new website script, please include a test JSON file with it
% quvi -q TEST_URL > foo.json

Please set the “url” field to empty (“”) in the JSON.  The URL is typically unique and the test suite ignores the value.

Creating a patch

Please submit your contributions in the <patch at url target=”http://en.wikipedia” name=”http://en.wikipedia”.org/wiki/Patch_%28Unix%29> format.

Create your patches with <git at url target=”http://git-scm” name=”http://git-scm”.com/>

  • Check for unnecessary whitespace with “git diff --check” and fix them
  • Use “git format-patch -M” to create the patch

We prefer the git format as this allows us to preserve the contribution details in the git log.

Otherwise

  • If you do not know or use git, then please use “diff -u” if possible
  • If you are submitting a new webscript, you can submit it as it is

Where to submit

Please use our <Trac at url target=”http://sourceforge” name=”http://sourceforge”.net/apps/trac/quvi> to submit your patches.

quvi project uses astyle at url target=”http://astyle.sourceforge” name=”http://astyle.sourceforge”.net/ to reformat the C source code.
Close