<div class="sectionbody">\r
<div class="verseblock">\r
<div class="content"><em>git-apply</em> [--stat] [--numstat] [--summary] [--check] [--index]\r
- [--apply] [--no-add] [--index-info] [-R | --reverse]\r
+ [--apply] [--no-add] [--build-fake-ancestor <file>] [-R | --reverse]\r
[--allow-binary-replacement | --binary] [--reject] [-z]\r
[-pNUM] [-CNUM] [--inaccurate-eof] [--cached]\r
[--whitespace=<nowarn|warn|error|error-all|strip>]\r
</p>\r
</dd>\r
<dt>\r
---index-info\r
+--build-fake-ancestor <file>\r
</dt>\r
<dd>\r
<p>\r
Newer git-diff output has embedded <em>index information</em>\r
for each blob to help identify the original version that\r
the patch applies to. When this flag is given, and if\r
- the original version of the blob is available locally,\r
- outputs information about them to the standard output.\r
+ the original versions of the blobs is available locally,\r
+ builds a temporary index containing those blobs.\r
</p>\r
+<p>When a pure mode change is encountered (which has no index information),\r
+the information is read from the current index instead.</p>\r
</dd>\r
<dt>\r
-R, --reverse\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 16-Aug-2007 04:58:55 UTC\r
+Last updated 24-Sep-2007 07:36:59 UTC\r
</div>\r
</div>\r
</body>\r
--------
[verse]
'git-apply' [--stat] [--numstat] [--summary] [--check] [--index]
- [--apply] [--no-add] [--index-info] [-R | --reverse]
+ [--apply] [--no-add] [--build-fake-ancestor <file>] [-R | --reverse]
[--allow-binary-replacement | --binary] [--reject] [-z]
[-pNUM] [-CNUM] [--inaccurate-eof] [--cached]
[--whitespace=<nowarn|warn|error|error-all|strip>]
cached data, apply the patch, and store the result in the index,
without using the working tree. This implies '--index'.
---index-info::
+--build-fake-ancestor <file>::
Newer git-diff output has embedded 'index information'
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.
+ the original versions of the blobs is available locally,
+ builds a temporary index containing those blobs.
++
+When a pure mode change is encountered (which has no index information),
+the information is read from the current index instead.
-R, --reverse::
Apply the patch in reverse.
<p>This hook is meant primarily for notification, and cannot affect\r
the outcome of <tt>git-commit</tt>.</p>\r
</div>\r
+<h2>post-merge</h2>\r
+<div class="sectionbody">\r
+<p>This hook is invoked by <tt>git-merge</tt>, which happens when a <tt>git pull</tt>\r
+is done on a local repository. The hook takes a single parameter, a status\r
+flag specifying whether or not the merge being done was a squash merge.\r
+This hook cannot affect the outcome of <tt>git-merge</tt>.</p>\r
+<p>This hook can be used in conjunction with a corresponding pre-commit hook to\r
+save and restore any form of metadata associated with the working tree\r
+(eg: permissions/ownership, ACLS, etc). See contrib/hooks/setgitperms.perl\r
+for an example of how to do this.</p>\r
+</div>\r
<h2><a id="pre-receive"></a>pre-receive</h2>\r
<div class="sectionbody">\r
<p>This hook is invoked by <tt>git-receive-pack</tt> on the remote repository,\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 25-Aug-2007 03:53:16 UTC\r
+Last updated 24-Sep-2007 07:36:59 UTC\r
</div>\r
</div>\r
</body>\r
This hook is meant primarily for notification, and cannot affect
the outcome of `git-commit`.
+post-merge
+-----------
+
+This hook is invoked by `git-merge`, which happens when a `git pull`
+is done on a local repository. The hook takes a single parameter, a status
+flag specifying whether or not the merge being done was a squash merge.
+This hook cannot affect the outcome of `git-merge`.
+
+This hook can be used in conjunction with a corresponding pre-commit hook to
+save and restore any form of metadata associated with the working tree
+(eg: permissions/ownership, ACLS, etc). See contrib/hooks/setgitperms.perl
+for an example of how to do this.
+
[[pre-receive]]
pre-receive
-----------