Skip to content

Commit dbb6459

Browse files
author
Junio C Hamano
committed
Autogenerated HTML docs for v1.5.3-rc7-30-g947ad2
1 parent 21e7f9c commit dbb6459

15 files changed

+272
-88
lines changed

config.txt

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -301,12 +301,12 @@ alias.*::
301301
hide existing git commands are ignored. Arguments are split by
302302
spaces, the usual shell quoting and escaping is supported.
303303
quote pair and a backslash can be used to quote them.
304-
305-
If the alias expansion is prefixed with an exclamation point,
306-
it will be treated as a shell command. For example, defining
307-
"alias.new = !gitk --all --not ORIG_HEAD", the invocation
308-
"git new" is equivalent to running the shell command
309-
"gitk --all --not ORIG_HEAD".
304+
+
305+
If the alias expansion is prefixed with an exclamation point,
306+
it will be treated as a shell command. For example, defining
307+
"alias.new = !gitk --all --not ORIG_HEAD", the invocation
308+
"git new" is equivalent to running the shell command
309+
"gitk --all --not ORIG_HEAD".
310310

311311
apply.whitespace::
312312
Tells `git-apply` how to handle whitespaces, in the same way
@@ -396,6 +396,16 @@ color.status.<slot>::
396396
commit.template::
397397
Specify a file to use as the template for new commit messages.
398398

399+
diff.autorefreshindex::
400+
When using `git diff` to compare with work tree
401+
files, do not consider stat-only change as changed.
402+
Instead, silently run `git update-index --refresh` to
403+
update the cached stat information for paths whose
404+
contents in the work tree match the contents in the
405+
index. This option defaults to true. Note that this
406+
affects only `git diff` Porcelain, and not lower level
407+
`diff` commands, such as `git diff-files`.
408+
399409
diff.renameLimit::
400410
The number of files to consider when performing the copy/rename
401411
detection; equivalent to the git diff option '-l'.

git-clone.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,11 @@ <h2>GIT URLS<a id="URLS"></a></h2>
504504
</li>
505505
<li>
506506
<p>
507+
ssh://&#91;user@&#93;host.xz&#91;:port&#93;/path/to/repo.git/
508+
</p>
509+
</li>
510+
<li>
511+
<p>
507512
ssh://&#91;user@&#93;host.xz/path/to/repo.git/
508513
</p>
509514
</li>
@@ -522,7 +527,8 @@ <h2>GIT URLS<a id="URLS"></a></h2>
522527
<p>SSH is the default transport protocol over the network. You can
523528
optionally specify which user to log-in as, and an alternate,
524529
scp-like syntax is also supported. Both syntaxes support
525-
username expansion, as does the native git protocol. The following
530+
username expansion, as does the native git protocol, but
531+
only the former supports port specification. The following
526532
three are identical to the last three above, respectively:</p>
527533
<div class="exampleblock">
528534
<div class="exampleblock-content">
@@ -635,7 +641,7 @@ <h2>GIT</h2>
635641
</div>
636642
<div id="footer">
637643
<div id="footer-text">
638-
Last updated 11-Aug-2007 08:29:13 UTC
644+
Last updated 01-Sep-2007 11:16:23 UTC
639645
</div>
640646
</div>
641647
</body>

git-config.html

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,14 +1057,11 @@ <h3>Variables</h3>
10571057
spaces, the usual shell quoting and escaping is supported.
10581058
quote pair and a backslash can be used to quote them.
10591059
</p>
1060-
<div class="literalblock">
1061-
<div class="content">
1062-
<pre><tt>If the alias expansion is prefixed with an exclamation point,
1060+
<p>If the alias expansion is prefixed with an exclamation point,
10631061
it will be treated as a shell command. For example, defining
10641062
"alias.new = !gitk --all --not ORIG_HEAD", the invocation
10651063
"git new" is equivalent to running the shell command
1066-
"gitk --all --not ORIG_HEAD".</tt></pre>
1067-
</div></div>
1064+
"gitk --all --not ORIG_HEAD".</p>
10681065
</dd>
10691066
<dt>
10701067
apply.whitespace
@@ -1219,6 +1216,21 @@ <h3>Variables</h3>
12191216
</p>
12201217
</dd>
12211218
<dt>
1219+
diff.autorefreshindex
1220+
</dt>
1221+
<dd>
1222+
<p>
1223+
When using <tt>git diff</tt> to compare with work tree
1224+
files, do not consider stat-only change as changed.
1225+
Instead, silently run <tt>git update-index --refresh</tt> to
1226+
update the cached stat information for paths whose
1227+
contents in the work tree match the contents in the
1228+
index. This option defaults to true. Note that this
1229+
affects only <tt>git diff</tt> Porcelain, and not lower level
1230+
<tt>diff</tt> commands, such as <tt>git diff-files</tt>.
1231+
</p>
1232+
</dd>
1233+
<dt>
12221234
diff.renameLimit
12231235
</dt>
12241236
<dd>
@@ -1879,7 +1891,7 @@ <h2>GIT</h2>
18791891
</div>
18801892
<div id="footer">
18811893
<div id="footer-text">
1882-
Last updated 25-Aug-2007 03:53:06 UTC
1894+
Last updated 01-Sep-2007 11:16:23 UTC
18831895
</div>
18841896
</div>
18851897
</body>

git-daemon.html

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -642,18 +642,24 @@ <h2>EXAMPLES</h2>
642642
Repositories can still be accessed by hostname though, assuming
643643
they correspond to these IP addresses.</p>
644644
</dd>
645-
</dl>
646-
<p>To enable <tt>git-archive --remote</tt> and disable <tt>git-fetch</tt> against
647-
a repository, have the following in the configuration file in the
648-
repository (that is the file <em>config</em> next to <em>HEAD</em>, <em>refs</em> and
649-
<em>objects</em>).</p>
650-
<p>+</p>
645+
<dt>
646+
selectively enable/disable services per repository
647+
</dt>
648+
<dd>
649+
<p>
650+
To enable <tt>git-archive --remote</tt> and disable <tt>git-fetch</tt> against
651+
a repository, have the following in the configuration file in the
652+
repository (that is the file <em>config</em> next to <em>HEAD</em>, <em>refs</em> and
653+
<em>objects</em>).
654+
</p>
651655
<div class="listingblock">
652656
<div class="content">
653-
<pre><tt>[daemon]
654-
uploadpack = false
655-
uploadarchive = true</tt></pre>
657+
<pre><tt> [daemon]
658+
uploadpack = false
659+
uploadarchive = true</tt></pre>
656660
</div></div>
661+
</dd>
662+
</dl>
657663
</div>
658664
<h2>Author</h2>
659665
<div class="sectionbody">
@@ -670,7 +676,7 @@ <h2>GIT</h2>
670676
</div>
671677
<div id="footer">
672678
<div id="footer-text">
673-
Last updated 31-Aug-2007 07:55:56 UTC
679+
Last updated 01-Sep-2007 11:16:24 UTC
674680
</div>
675681
</div>
676682
</body>

git-daemon.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -248,16 +248,16 @@ a subdirectory for each virtual host IP address supported.
248248
Repositories can still be accessed by hostname though, assuming
249249
they correspond to these IP addresses.
250250

251-
252-
To enable `git-archive --remote` and disable `git-fetch` against
253-
a repository, have the following in the configuration file in the
254-
repository (that is the file 'config' next to 'HEAD', 'refs' and
255-
'objects').
251+
selectively enable/disable services per repository::
252+
To enable `git-archive --remote` and disable `git-fetch` against
253+
a repository, have the following in the configuration file in the
254+
repository (that is the file 'config' next to 'HEAD', 'refs' and
255+
'objects').
256256
+
257257
----------------------------------------------------------------
258-
[daemon]
259-
uploadpack = false
260-
uploadarchive = true
258+
[daemon]
259+
uploadpack = false
260+
uploadarchive = true
261261
----------------------------------------------------------------
262262

263263

git-fetch.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,11 @@ <h2>GIT URLS<a id="URLS"></a></h2>
531531
</li>
532532
<li>
533533
<p>
534+
ssh://&#91;user@&#93;host.xz&#91;:port&#93;/path/to/repo.git/
535+
</p>
536+
</li>
537+
<li>
538+
<p>
534539
ssh://&#91;user@&#93;host.xz/path/to/repo.git/
535540
</p>
536541
</li>
@@ -549,7 +554,8 @@ <h2>GIT URLS<a id="URLS"></a></h2>
549554
<p>SSH is the default transport protocol over the network. You can
550555
optionally specify which user to log-in as, and an alternate,
551556
scp-like syntax is also supported. Both syntaxes support
552-
username expansion, as does the native git protocol. The following
557+
username expansion, as does the native git protocol, but
558+
only the former supports port specification. The following
553559
three are identical to the last three above, respectively:</p>
554560
<div class="exampleblock">
555561
<div class="exampleblock-content">
@@ -658,7 +664,7 @@ <h2>GIT</h2>
658664
</div>
659665
<div id="footer">
660666
<div id="footer-text">
661-
Last updated 11-Aug-2007 08:29:13 UTC
667+
Last updated 01-Sep-2007 11:16:25 UTC
662668
</div>
663669
</div>
664670
</body>

git-filter-branch.html

Lines changed: 38 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -282,18 +282,18 @@ <h2>SYNOPSIS</h2>
282282
</div>
283283
<h2>DESCRIPTION</h2>
284284
<div class="sectionbody">
285-
<p>Lets you rewrite git revision history by creating a new branch from
286-
your current branch, applying custom filters on each revision.
285+
<p>Lets you rewrite git revision history by rewriting the branches mentioned
286+
in the &lt;rev-list options&gt;, applying custom filters on each revision.
287287
Those filters can modify each tree (e.g. removing a file or running
288288
a perl rewrite on all files) or information about each commit.
289289
Otherwise, all information (including original commit times or merge
290290
information) will be preserved.</p>
291-
<p>The command takes the new branch name as a mandatory argument and
292-
the filters as optional arguments. If you specify no filters, the
293-
commits will be recommitted without any changes, which would normally
294-
have no effect. Nevertheless, this may be useful in the future for
295-
compensating for some git bugs or such, therefore such a usage is
296-
permitted.</p>
291+
<p>The command will only rewrite the _positive_ refs mentioned in the
292+
command line (i.e. if you pass <em>a..b</em>, only <em>b</em> will be rewritten).
293+
If you specify no filters, the commits will be recommitted without any
294+
changes, which would normally have no effect. Nevertheless, this may be
295+
useful in the future for compensating for some git bugs or such,
296+
therefore such a usage is permitted.</p>
297297
<p><strong>WARNING</strong>! The rewritten history will have different object names for all
298298
the objects and will not converge with the original branch. You will not
299299
be able to easily push and distribute the rewritten branch on top of the
@@ -304,8 +304,8 @@ <h2>DESCRIPTION</h2>
304304
if different from the rewritten ones, will be stored in the namespace
305305
<em>refs/original/</em>.</p>
306306
<p>Note that since this operation is extensively I/O expensive, it might
307-
be a good idea to redirect the temporary directory off-disk, e.g. on
308-
tmpfs. Reportedly the speedup is very noticeable.</p>
307+
be a good idea to redirect the temporary directory off-disk with the
308+
<em>-d</em> option, e.g. on tmpfs. Reportedly the speedup is very noticeable.</p>
309309
<h3>Filters</h3>
310310
<p>The filters are applied in the order as listed below. The &lt;command&gt;
311311
argument is always evaluated in shell using the <em>eval</em> command (with the
@@ -396,6 +396,10 @@ <h2>OPTIONS</h2>
396396
<p>As a special extension, the commit filter may emit multiple
397397
commit ids; in that case, ancestors of the original commit will
398398
have all of them as parents.</p>
399+
<p>You can use the <em>map</em> convenience function in this filter, and other
400+
convenience functions, too. For example, calling <em>skip_commit "$@"</em>
401+
will leave out the current commit (but not its changes! If you want
402+
that, use <a href="git-rebase.html">git-rebase(1)</a> instead).</p>
399403
</dd>
400404
<dt>
401405
--tag-name-filter &lt;command&gt;
@@ -494,8 +498,8 @@ <h2>Examples</h2>
494498
<div class="content">
495499
<pre><tt>git filter-branch --parent-filter 'sed "s/^\$/-p &lt;graft-id&gt;/"' HEAD</tt></pre>
496500
</div></div>
497-
<p>(if the parent string is empty - therefore we are dealing with the
498-
initial commit - add graftcommit as a parent). Note that this assumes
501+
<p>(if the parent string is empty - which happens when we are dealing with
502+
the initial commit - add graftcommit as a parent). Note that this assumes
499503
history with a single root (that is, no merge without common ancestors
500504
happened). If this is not the case, use:</p>
501505
<div class="listingblock">
@@ -515,17 +519,29 @@ <h2>Examples</h2>
515519
<pre><tt>git filter-branch --commit-filter '
516520
if [ "$GIT_AUTHOR_NAME" = "Darl McBribe" ];
517521
then
518-
shift;
519-
while [ -n "$1" ];
520-
do
521-
shift;
522-
echo "$1";
523-
shift;
524-
done;
522+
skip_commit "$@";
525523
else
526524
git commit-tree "$@";
527525
fi' HEAD</tt></pre>
528526
</div></div>
527+
<p>Note that the changes introduced by the commits, and not reverted by
528+
subsequent commits, will still be in the rewritten branch. If you want
529+
to throw out _changes_ together with the commits, you should use the
530+
interactive mode of <a href="git-rebase.html">git-rebase(1)</a>.</p>
531+
<p>The function <em>skip_commits</em> is defined as follows:</p>
532+
<div class="listingblock">
533+
<div class="content">
534+
<pre><tt>skip_commit()
535+
{
536+
shift;
537+
while [ -n "$1" ];
538+
do
539+
shift;
540+
map "$1";
541+
shift;
542+
done;
543+
}</tt></pre>
544+
</div></div>
529545
<p>The shift magic first throws away the tree id and then the -p
530546
parameters. Note that this handles merges properly! In case Darl
531547
committed a merge between P1 and P2, it will be propagated properly
@@ -535,8 +551,8 @@ <h2>Examples</h2>
535551
range in addition to the new branch name. The new branch name will
536552
point to the top-most revision that a <em>git rev-list</em> of this range
537553
will print.</p>
538-
<p>Note that the changes introduced by the commits, and not reverted by
539-
subsequent commits, will still be in the rewritten branch. If you want
554+
<p><strong>NOTE</strong> the changes introduced by the commits, and which are not reverted
555+
by subsequent commits, will still be in the rewritten branch. If you want
540556
to throw out _changes_ together with the commits, you should use the
541557
interactive mode of <a href="git-rebase.html">git-rebase(1)</a>.</p>
542558
<p>Consider this history:</p>
@@ -582,7 +598,7 @@ <h2>GIT</h2>
582598
</div>
583599
<div id="footer">
584600
<div id="footer-text">
585-
Last updated 31-Aug-2007 07:55:56 UTC
601+
Last updated 01-Sep-2007 11:16:25 UTC
586602
</div>
587603
</div>
588604
</body>

0 commit comments

Comments
 (0)