Skip to content

Commit 2f6b50d

Browse files
committed
Add the prefaces to the generation of the ebooks
* mechanize the generation of contributors
1 parent ec4c404 commit 2f6b50d

File tree

9 files changed

+41
-120
lines changed

9 files changed

+41
-120
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ progit.pdfmarks
99
progit.epub
1010
progit-kf8.epub
1111
progit.mobi
12+
contributors.txt

.mailmap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Jean-Noël Avila <[email protected]>
2+
Scott Chacon <[email protected]>

Rakefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
namespace :book do
22
desc 'build basic book formats'
33
task :build do
4+
5+
puts "Generating contributors list"
6+
`git shortlog -s --all| grep -v -E "(Straub|Chacon)" | cut -f 2- > book/contributors.txt`
7+
48
puts "Converting to HTML..."
59
`bundle exec asciidoctor progit.asc`
610
puts " -- HTML output at progit.html"

book/contributors.asc

Lines changed: 1 addition & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -5,98 +5,6 @@ Since this is an Open Source book, we have gotten several errata and content cha
55

66
[source]
77
----
8-
2 Aaron Schumacher
9-
4 Aggelos Orfanakos
10-
4 Alec Clews
11-
1 Alex Moundalexis
12-
2 Alexander Harkness
13-
1 Alexander Kahn
14-
1 Andrew McCarthy
15-
1 AntonioK
16-
1 Benjamin Bergman
17-
1 Brennon Bortz
18-
2 Brian P O'Rourke
19-
1 Bryan Goines
20-
1 Cameron Wright
21-
1 Chris Down
22-
1 Christian Kluge
23-
1 Christoph Korn
24-
2 Ciro Santilli
25-
2 Cor
26-
1 Dan Croak
27-
1 Dan Johnson
28-
1 Daniel Kay
29-
2 Daniel Rosen
30-
1 DanielWeber
31-
1 Dave Dash
32-
10 Davide Fiorentino lo Regio
33-
2 Dilip M
34-
1 Dimitar Bonev
35-
1 Emmanuel Trillaud
36-
1 Eric-Paul Lecluse
37-
1 Eugene Serkin
38-
1 Fernando Dobladez
39-
2 Gordon McCreight
40-
1 Helmut K. C. Tessarek
41-
31 Igor Murzov
42-
1 Ilya Kuznetsov
43-
1 Jason St. John
44-
1 Jay Taggart
45-
1 Jean Jordaan
46-
51 Jean-Noël Avila
47-
1 Jean-Noël Rouvignac
48-
1 Jed Hartman
49-
1 Jeffrey Forman
50-
1 John DeStefano
51-
1 Junior
52-
1 Kieran Spear
53-
1 Larry Shatzer, Jr
54-
1 Linquize
55-
1 Markus
56-
7 Matt Deacalion Stevens
57-
1 Matthew McCullough
58-
1 Matthieu Moy
59-
1 Max F. Albrecht
60-
1 Michael Schneider
61-
8 Mike D. Smith
62-
1 Mike Limansky
63-
1 Olivier Trichet
64-
1 Ondrej Novy
65-
6 Ori Avtalion
66-
1 Paul Baumgart
67-
1 Peter Vojtek
68-
1 Philipp Kempgen
69-
2 Philippe Lhoste
70-
1 PowerKiKi
71-
1 Radek Simko
72-
1 Rasmus Abrahamsen
73-
1 Reinhard Holler
74-
1 Ross Light
75-
1 Ryuichi Okumura
76-
1 Sebastian Wiesinger
77-
1 Severyn Kozak
78-
1 Shane
79-
2 Shannen
80-
8 Sitaram Chamarty
81-
5 Soon Van
82-
4 Sven Axelsson
83-
2 Tim Court
84-
1 Tuomas Suutari
85-
1 Vlad Gorodetsky
86-
3 W. Trevor King
87-
1 Wyatt Carss
88-
1 Włodzimierz Gajda
89-
1 Xue Fuqiao
90-
1 Yue Lin Ho
91-
2 adelcambre
92-
1 anaran
93-
1 bdukes
94-
1 burningTyger
95-
1 cor
96-
1 iosias
97-
7 nicesw123
98-
1 onovy
99-
2 pcasaretto
100-
1 sampablokuper
8+
include::contributors.txt[]
1019
----
10210

book/dedication.asc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[dedication]
2+
== Dedications
3+
4+
_To my wife, Becky, without whom this adventure never would have begun. — Ben_
5+
6+
_This edition is dedicated to my girls.
7+
To my wife Jessica who has supported me for all of these years and to my daughter Josephine,
8+
who will support me when I'm too old to know what's going on. — Scott_

book/license.asc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[preface]
2+
== Licence
3+
4+
include::../LICENSE.asc[]

book/preface_ben.asc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[preface]
2+
== Preface by Ben Straub
3+
4+
The first edition of this book is what got me hooked on Git. This was my introduction to a style of making software that felt more natural than anything I had seen before. I had been a developer for several years by then, but this was the right turn that sent me down a much more interesting path than the one I was on.
5+
6+
Now, years later, I'm a contributor to a major Git implementation, I've worked for the largest Git hosting company, and I've traveled the world teaching people about Git. When Scott asked if I'd be interested in working on the second edition, I didn't even have to think.
7+
8+
It's been a great pleasure and privilege to work on this book. I hope it helps you as much as it did me.

book/preface.asc renamed to book/preface_schacon.asc

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
Pro Git
2-
=======
3-
:doctype: book
4-
:docinfo:
5-
:toc:
6-
:toclevels: 2
7-
81
[preface]
92
== Preface by Scott Chacon
103

@@ -39,21 +32,3 @@ It's been amazing to watch Git grow over the past few years from a relatively ob
3932

4033
I hope you enjoy this updated edition of Pro Git.
4134

42-
[preface]
43-
== Preface by Ben Straub
44-
45-
The first edition of this book is what got me hooked on Git. This was my introduction to a style of making software that felt more natural than anything I had seen before. I had been a developer for several years by then, but this was the right turn that sent me down a much more interesting path than the one I was on.
46-
47-
Now, years later, I'm a contributor to a major Git implementation, I've worked for the largest Git hosting company, and I've traveled the world teaching people about Git. When Scott asked if I'd be interested in working on the second edition, I didn't even have to think.
48-
49-
It's been a great pleasure and privilege to work on this book. I hope it helps you as much as it did me.
50-
51-
52-
[preface]
53-
== Dedications
54-
55-
_To my wife, Becky, without whom this adventure never would have begun. — Ben_
56-
57-
_This edition is dedicated to my girls.
58-
To my wife Jessica who has supported me for all of these years and to my daughter Josephine,
59-
who will support me when I'm too old to know what's going on. — Scott_

progit.asc

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
11
Pro Git
22
=======
3-
:doctype: book
3+
:doctype: book
44
:docinfo:
55
:toc:
66
:toclevels: 2
77
:pagenums:
88
:front-cover-image: image:book/cover.png[width=1050,height=1600]
99

10-
include::book/preface.asc[]
1110
ifdef::ebook-format[:leveloffset: -1]
1211

12+
include::book/license.asc[]
13+
14+
include::book/preface_schacon.asc[]
15+
16+
include::book/preface_ben.asc[]
17+
18+
include::book/dedication.asc[]
19+
20+
include::book/contributors.asc[]
21+
22+
include::book/introduction.asc[]
23+
1324
include::ch01-getting-started.asc[]
1425

1526
include::ch02-git-basics-chapter.asc[]

0 commit comments

Comments
 (0)