language agnostic - What exactly does the word Patch mean when referring to 'submitting a patch'? -
what word patch mean when referring 'submitting patch'?
i've seen used lot, in open source world. what mean , involved in submitting patch?
it's file list of differences between code files have changed. it's in format generated doing diff -u on 2 files. version control systems allow easy creation of patches it's in same format.
this allows code change applied else's copy of source code using patch command.
for example:
let's have following code:
<?php $foo = 0; ?>
and change this:
<?php $bar = 0; ?>
the patch file might this:
index: test.php =================================================================== --- test.php (revision 40) +++ test.php (working copy) @@ -3,7 +3,7 @@ <?php - $foo = 0; + $bar= 0; ?>
Comments
Post a Comment