Skip to content

Commit 66afe50

Browse files
committed
Merge branch 'ta/doc-cleanup' into maint
* ta/doc-cleanup: Documentation: build html for all files in technical and howto Documentation/howto: convert plain text files to asciidoc Documentation/technical: convert plain text files to asciidoc Change headline of technical/send-pack-pipeline.txt to not confuse its content with content from git-send-pack.txt Shorten two over-long lines in git-bisect-lk2009.txt by abbreviating some sha1 Split over-long synopsis in git-fetch-pack.txt into several lines
2 parents 854dfda + 5e00439 commit 66afe50

20 files changed

+134
-68
lines changed

Documentation/Makefile

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,30 @@ SP_ARTICLES = user-manual
2424
SP_ARTICLES += howto/revert-branch-rebase
2525
SP_ARTICLES += howto/using-merge-subtree
2626
SP_ARTICLES += howto/using-signed-tag-in-pull-request
27+
SP_ARTICLES += howto/use-git-daemon
28+
SP_ARTICLES += howto/update-hook-example
29+
SP_ARTICLES += howto/setup-git-server-over-http
30+
SP_ARTICLES += howto/separating-topic-branches
31+
SP_ARTICLES += howto/revert-a-faulty-merge
32+
SP_ARTICLES += howto/recover-corrupted-blob-object
33+
SP_ARTICLES += howto/rebuild-from-update-hook
34+
SP_ARTICLES += howto/rebuild-from-update-hook
35+
SP_ARTICLES += howto/rebase-from-internal-branch
36+
SP_ARTICLES += howto/maintain-git
2737
API_DOCS = $(patsubst %.txt,%,$(filter-out technical/api-index-skel.txt technical/api-index.txt, $(wildcard technical/api-*.txt)))
2838
SP_ARTICLES += $(API_DOCS)
39+
40+
TECH_DOCS = technical/index-format
41+
TECH_DOCS += technical/pack-format
42+
TECH_DOCS += technical/pack-heuristics
43+
TECH_DOCS += technical/pack-protocol
44+
TECH_DOCS += technical/protocol-capabilities
45+
TECH_DOCS += technical/protocol-common
46+
TECH_DOCS += technical/racy-git
47+
TECH_DOCS += technical/send-pack-pipeline
48+
TECH_DOCS += technical/shallow
49+
TECH_DOCS += technical/trivial-merge
50+
SP_ARTICLES += $(TECH_DOCS)
2951
SP_ARTICLES += technical/api-index
3052

3153
DOC_HTML += $(patsubst %,%.html,$(ARTICLES) $(SP_ARTICLES))
@@ -231,7 +253,7 @@ clean:
231253
$(RM) *.texi *.texi+ *.texi++ git.info gitman.info
232254
$(RM) *.pdf
233255
$(RM) howto-index.txt howto/*.html doc.dep
234-
$(RM) technical/api-*.html technical/api-index.txt
256+
$(RM) technical/*.html technical/api-index.txt
235257
$(RM) $(cmds_txt) *.made
236258
$(RM) manpage-base-url.xsl
237259

@@ -264,7 +286,7 @@ technical/api-index.txt: technical/api-index-skel.txt \
264286
$(QUIET_GEN)cd technical && '$(SHELL_PATH_SQ)' ./api-index.sh
265287

266288
technical/%.html: ASCIIDOC_EXTRA += -a git-relative-html-prefix=../
267-
$(patsubst %,%.html,$(API_DOCS) technical/api-index): %.html : %.txt
289+
$(patsubst %,%.html,$(API_DOCS) technical/api-index $(TECH_DOCS)): %.html : %.txt
268290
$(QUIET_ASCIIDOC)$(ASCIIDOC) -b xhtml11 -f asciidoc.conf \
269291
$(ASCIIDOC_EXTRA) -agit_version=$(GIT_VERSION) $*.txt
270292

Documentation/git-bisect-lk2009.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ Date: Sat May 3 11:59:44 2008 -0700
257257

258258
Linux 2.6.26-rc1
259259

260-
:100644 100644 5cf8258195331a4dbdddff08b8d68642638eea57 4492984efc09ab72ff6219a7bc21fb6a957c4cd5 M Makefile
260+
:100644 100644 5cf82581... 4492984e... M Makefile
261261
-------------
262262

263263
At this point we can see what the commit does, check it out (if it's
@@ -331,7 +331,7 @@ Date: Sat May 3 11:59:44 2008 -0700
331331

332332
Linux 2.6.26-rc1
333333

334-
:100644 100644 5cf8258195331a4dbdddff08b8d68642638eea57 4492984efc09ab72ff6219a7bc21fb6a957c4cd5 M Makefile
334+
:100644 100644 5cf82581... 4492984e... M Makefile
335335
bisect run success
336336
-------------
337337

Documentation/git-fetch-pack.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ git-fetch-pack - Receive missing objects from another repository
99
SYNOPSIS
1010
--------
1111
[verse]
12-
'git fetch-pack' [--all] [--quiet|-q] [--keep|-k] [--thin] [--include-tag] [--upload-pack=<git-upload-pack>] [--depth=<n>] [--no-progress] [-v] [<host>:]<directory> [<refs>...]
12+
'git fetch-pack' [--all] [--quiet|-q] [--keep|-k] [--thin] [--include-tag]
13+
[--upload-pack=<git-upload-pack>]
14+
[--depth=<n>] [--no-progress]
15+
[-v] [<host>:]<directory> [<refs>...]
1316

1417
DESCRIPTION
1518
-----------

Documentation/howto/maintain-git.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ Abstract: Imagine that git development is racing along as usual, when our friend
55
neighborhood maintainer is struck down by a wayward bus. Out of the
66
hordes of suckers (loyal developers), you have been tricked (chosen) to
77
step up as the new maintainer. This howto will show you "how to" do it.
8+
Content-type: text/asciidoc
9+
10+
How to maintain Git
11+
===================
812

913
The maintainer's git time is spent on three activities.
1014

Documentation/howto/rebase-from-internal-branch.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ Abstract: In this article, JC talks about how he rebases the
88
the "master" branch, and how "rebase" works. Also discussed
99
is how this applies to individual developers who sends patches
1010
upstream.
11+
Content-type: text/asciidoc
1112

13+
How to rebase from an internal branch
14+
=====================================
15+
16+
--------------------------------------
1217
Petr Baudis <[email protected]> writes:
1318

1419
> Dear diary, on Sun, Aug 14, 2005 at 09:57:13AM CEST, I got a letter
@@ -19,6 +24,7 @@ Petr Baudis <[email protected]> writes:
1924
>> > branch to the real branches.
2025
>>
2126
> Actually, wouldn't this be also precisely for what StGIT is intended to?
27+
--------------------------------------
2228

2329
Exactly my feeling. I was sort of waiting for Catalin to speak
2430
up. With its basing philosophical ancestry on quilt, this is
@@ -156,8 +162,3 @@ you continue on starting from the new "master" head, which is
156162
the #1' commit.
157163

158164
-jc
159-
160-
-
161-
To unsubscribe from this list: send the line "unsubscribe git" in
162-
the body of a message to [email protected]
163-
More majordomo info at http://vger.kernel.org/majordomo-info.html

Documentation/howto/rebuild-from-update-hook.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ Date: Fri, 26 Aug 2005 18:19:10 -0700
55
Abstract: In this how-to article, JC talks about how he
66
uses the post-update hook to automate git documentation page
77
shown at http://www.kernel.org/pub/software/scm/git/docs/.
8+
Content-type: text/asciidoc
9+
10+
How to rebuild from update hook
11+
===============================
812

913
The pages under http://www.kernel.org/pub/software/scm/git/docs/
1014
are built from Documentation/ directory of the git.git project

Documentation/howto/recover-corrupted-blob-object.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,17 @@ From: Linus Torvalds <[email protected]>
33
Subject: corrupt object on git-gc
44
Abstract: Some tricks to reconstruct blob objects in order to fix
55
a corrupted repository.
6+
Content-type: text/asciidoc
67

8+
How to recover a corrupted blob object
9+
======================================
10+
11+
-----------------------------------------------------------
712
On Fri, 9 Nov 2007, Yossi Leybovich wrote:
813
>
914
> Did not help still the repository look for this object?
1015
> Any one know how can I track this object and understand which file is it
16+
-----------------------------------------------------------
1117

1218
So exactly *because* the SHA1 hash is cryptographically secure, the hash
1319
itself doesn't actually tell you anything, in order to fix a corrupt
@@ -31,19 +37,23 @@ original object, so right now the corrupt object is useless, but it's very
3137
interesting for the future, in the hope that you can re-create a
3238
non-corrupt version.
3339

40+
-----------------------------------------------------------
3441
So:
3542

3643
> ib]$ mv .git/objects/4b/9458b3786228369c63936db65827de3cc06200 ../
44+
-----------------------------------------------------------
3745

3846
This is the right thing to do, although it's usually best to save it under
3947
it's full SHA1 name (you just dropped the "4b" from the result ;).
4048

4149
Let's see what that tells us:
4250

51+
-----------------------------------------------------------
4352
> ib]$ git-fsck --full
4453
> broken link from tree 2d9263c6d23595e7cb2a21e5ebbb53655278dff8
4554
> to blob 4b9458b3786228369c63936db65827de3cc06200
4655
> missing blob 4b9458b3786228369c63936db65827de3cc06200
56+
-----------------------------------------------------------
4757

4858
Ok, I removed the "dangling commit" messages, because they are just
4959
messages about the fact that you probably have rebased etc, so they're not

Documentation/howto/revert-a-faulty-merge.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ Abstract: Sometimes a branch that was already merged to the mainline
77
after the offending branch is fixed.
88
Message-ID: <[email protected]>
99
References: <[email protected]>
10+
Content-type: text/asciidoc
11+
12+
How to revert a faulty merge
13+
============================
1014

1115
Alan <[email protected]> said:
1216

Documentation/howto/revert-branch-rebase.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Date: Mon, 29 Aug 2005 21:39:02 -0700
88
Content-type: text/asciidoc
99
Message-ID: <[email protected]>
1010

11-
Reverting an existing commit
12-
============================
11+
How to revert an existing commit
12+
================================
1313

1414
One of the changes I pulled into the 'master' branch turns out to
1515
break building GIT with GCC 2.95. While they were well intentioned

Documentation/howto/separating-topic-branches.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
From: Junio C Hamano <[email protected]>
22
Subject: Separating topic branches
33
Abstract: In this article, JC describes how to separate topic branches.
4+
Content-type: text/asciidoc
5+
6+
How to separate topic branches
7+
==============================
48

59
This text was originally a footnote to a discussion about the
610
behaviour of the git diff commands.

0 commit comments

Comments
 (0)