From: Junio C Hamano Date: Sat, 26 Aug 2006 08:43:44 +0000 (+0000) Subject: Autogenerated man pages for v1.4.2-ga7f0 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=369cd132fe5655f552b05f54487eda536fbf43a5;p=git.git Autogenerated man pages for v1.4.2-ga7f0 --- diff --git a/man1/git-apply.1 b/man1/git-apply.1 index fbe9a19bf..b8e9b55e3 100755 --- a/man1/git-apply.1 +++ b/man1/git-apply.1 @@ -24,9 +24,10 @@ git-apply \- Apply patch on a git index file and a work tree .nf \fIgit\-apply\fR [\-\-stat] [\-\-numstat] [\-\-summary] [\-\-check] [\-\-index] [\-\-apply] - [\-\-no\-add] [\-\-index\-info] [\-\-allow\-binary\-replacement] [\-z] [\-pNUM] - [\-CNUM] [\-\-whitespace=] - [...] + [\-\-no\-add] [\-\-index\-info] [\-\-allow\-binary\-replacement | \-\-binary] + [\-R | \-\-reverse] [\-\-reject] [\-z] [\-pNUM] [\-CNUM] [\-\-inaccurate\-eof] + [\-\-whitespace=] [\-\-exclude=PATH] + [\-\-cached] [\-\-verbose] [...] .fi .SH "DESCRIPTION" @@ -60,10 +61,22 @@ Instead of applying the patch, see if the patch is applicable to the current wor \-\-index When \-\-check is in effect, or when applying the patch (which is the default when none of the options that disables it is in effect), make sure the patch is applicable to what the current index file records\&. If the file to be patched in the work tree is not up\-to\-date, it is flagged as an error\&. This flag also causes the index file to be updated\&. +.TP +\-\-cached +Apply a patch without touching the working tree\&. Instead, take the cached data, apply the patch, and store the result in the index, without using the working tree\&. This implies \fI\-\-index\fR\&. + .TP \-\-index\-info Newer git\-diff output has embedded \fIindex information\fR for each blob to help identify the original version that the patch applies to\&. When this flag is given, and if the original version of the blob is available locally, outputs information about them to the standard output\&. +.TP +\-R, \-\-reverse +Apply the patch in reverse\&. + +.TP +\-\-reject +For atomicity, \fBgit\-apply\fR(1) by default fails the whole patch and does not touch the working tree when some of the hunks do not apply\&. This option makes it apply the parts of the patch that are applicable, and send the rejected hunks to the standard output of the command\&. + .TP \-z When showing the index information, do not munge paths, but use NUL terminated machine readable format\&. Without this flag, the pathnames output will have TAB, LF, and backslash characters replaced with \\t, \\n, and \\\\, respectively\&. @@ -78,19 +91,23 @@ Ensure at least lines of surrounding context match before and after each cha .TP \-\-apply -If you use any of the options marked “Turns off "apply"” above, git\-apply reads and outputs the information you asked without actually applying the patch\&. Give this flag after those flags to also apply the patch\&. +If you use any of the options marked "Turns off \fIapply\fR" above, \fBgit\-apply\fR(1) reads and outputs the information you asked without actually applying the patch\&. Give this flag after those flags to also apply the patch\&. .TP \-\-no\-add When applying a patch, ignore additions made by the patch\&. This can be used to extract common part between two files by first running diff on them and applying the result with this option, which would apply the deletion part but not addition part\&. .TP -\-\-allow\-binary\-replacement +\-\-allow\-binary\-replacement, \-\-binary When applying a patch, which is a git\-enhanced patch that was prepared to record the pre\- and post\-image object name in full, and the path being patched exactly matches the object the patch applies to (i\&.e\&. "index" line's pre\-image object name is what is in the working tree), and the post\-image object is available in the object database, use the post\-image object as the patch result\&. This allows binary files to be patched in a very limited way\&. +.TP +\-\-exclude= +Don't apply changes to files matching the given path pattern\&. This can be useful when importing patchsets, where you want to exclude certain files or directories\&. + .TP \-\-whitespace=