Skip to content

Commit ac19383

Browse files
authored
Pull requests bis zum 16.03.2023 (#330)
* pull request #1710 * alle pull requests vom original repo bis 16032023 * corrected urls and references * corrected http url * switched back to http
1 parent 7aa131b commit ac19383

54 files changed

Lines changed: 201 additions & 151 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ updates:
44
- package-ecosystem: "bundler"
55
directory: "/"
66
schedule:
7-
interval: "daily" # Checks on Monday trough Friday.
7+
interval: "daily" # Checks on Monday through Friday.
88

99
# Maintain GitHub Action runners
1010
- package-ecosystem: "github-actions"
1111
directory: "/"
1212
schedule:
13-
interval: "daily" # Checks on Monday trough Friday.
13+
interval: "daily" # Checks on Monday through Friday.
1414
# Set default reviewer and labels
1515
reviewers:
1616
- "ben"

.github/workflows/release-on-merge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ jobs:
2727
echo Computing next tag number
2828
LASTPATCH=$(git describe --tags | cut -d- -f1 | cut -d. -f3)
2929
PATCH=$(($LASTPATCH+1))
30-
echo "::set-output name=tagname::2.1.${PATCH}"
30+
echo "tagname=2.1.${PATCH}" >> $GITHUB_OUTPUT
3131
3232
- name: Create release
3333
uses: ncipollo/release-action@v1
3434
with:
3535
token: ${{ secrets.GITHUB_TOKEN }}
3636
tag: ${{ steps.compute-tag.outputs.tagname }}
3737
commit: main
38-
artifacts: './progit.epub,./progit.mobi,./progit.pdf,./progit.html'
38+
artifacts: './progit.epub,./progit.fb2.zip,./progit.mobi,./progit.pdf,./progit.html'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ progit.html
77
progit.pdf
88
progit.pdfmarks
99
progit.epub
10+
progit.fb2.zip
1011
progit-kf8.epub
1112
progit.mobi
1213
contributors.txt

CITATION.cff

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This CITATION.cff file was generated with cffinit.
2+
# Visit https://bit.ly/cffinit to generate yours today!
3+
4+
cff-version: 1.2.0
5+
title: Pro Git
6+
message: >-
7+
If you use this software, please cite it using the
8+
metadata from this file.
9+
type: software
10+
authors:
11+
- given-names: Scott
12+
family-names: Chacon
13+
email: schacon@gmail.com
14+
- given-names: Ben
15+
family-names: Straub
16+
email: ben@straub.cc
17+
identifiers:
18+
- type: url
19+
value: 'https://git-scm.com/book/en/v2'
20+
description: Pro Git website
21+
repository-code: 'https://github.com/progit/progit2'
22+
url: 'https://git-scm.com/book/en/v2'
23+
keywords:
24+
- git
25+
- book
26+
- asciidoc
27+
- pro-git
28+
license: CC-BY-NC-SA-3.0
29+
version: '2'

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The issue may have already been corrected in the source files, but not yet deplo
1818
Errata and basic clarifications will be accepted if we agree that they improve the content.
1919
You can also open an issue so that we can discuss how or if the issue needs to be addressed.
2020

21-
If you've never done this before, the [flow guide](https://guides.github.com/introduction/flow/) might be useful.
21+
If you've never done this before, the [flow guide](https://docs.github.com/en/get-started/quickstart/github-flow) might be useful.
2222

2323
## Large Rewrites
2424

@@ -29,7 +29,7 @@ It's unlikely that your prose is going to be *so* much better that it's worth ch
2929

3030
## Figures
3131

32-
The images in this book are generated using [Sketch 3](https://www.sketchapp.com/), with the [included sketchbook file](diagram-source/progit.sketch).
32+
The images in this book are generated using [Sketch 3](https://www.sketch.com/), with the [included sketchbook file](diagram-source/progit.sketch).
3333

3434
To create a figure:
3535

Rakefile

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace :book do
3131
end
3232

3333
desc 'build basic book formats'
34-
task :build => [:build_html, :build_epub, :build_mobi, :build_pdf] do
34+
task :build => [:build_html, :build_epub, :build_fb2, :build_mobi, :build_pdf] do
3535
begin
3636
# Run check
3737
Rake::Task['book:check'].invoke
@@ -44,7 +44,7 @@ namespace :book do
4444
end
4545

4646
desc 'build basic book formats (for ci)'
47-
task :ci => [:build_html, :build_epub, :build_mobi, :build_pdf] do
47+
task :ci => [:build_html, :build_epub, :build_fb2, :build_mobi, :build_pdf] do
4848
# Run check, but don't ignore any errors
4949
Rake::Task['book:check'].invoke
5050
end
@@ -53,7 +53,7 @@ namespace :book do
5353
file 'book/contributors.txt' do
5454
puts 'Generating contributors list'
5555
sh "echo 'Contributors as of #{header_hash}:\n' > book/contributors.txt"
56-
sh "git shortlog -s | grep -v -E '(Straub|Chacon|dependabot)' | cut -f 2- | column -c 120 >> book/contributors.txt"
56+
sh "git shortlog -s HEAD | grep -v -E '(Straub|Chacon|dependabot)' | cut -f 2- | column -c 120 >> book/contributors.txt"
5757
end
5858

5959
desc 'build HTML format'
@@ -76,6 +76,16 @@ namespace :book do
7676

7777
end
7878

79+
desc 'build FB2 format'
80+
task :build_fb2 => 'book/contributors.txt' do
81+
check_contrib()
82+
83+
puts 'Converting to FB2...'
84+
sh "bundle exec asciidoctor-fb2 #{params} progit.asc"
85+
puts ' -- FB2 output at progit.fb2.zip'
86+
87+
end
88+
7989
desc 'build Mobi format'
8090
task :build_mobi => 'book/contributors.txt' do
8191
check_contrib()
@@ -98,7 +108,7 @@ namespace :book do
98108
task :check => [:build_html, :build_epub] do
99109
puts 'Checking generated books'
100110

101-
sh "htmlproofer --check-html progit.html"
111+
sh "htmlproofer progit.html"
102112
sh "epubcheck progit.epub"
103113
end
104114

@@ -107,7 +117,7 @@ namespace :book do
107117
begin
108118
puts 'Removing generated files'
109119

110-
FileList['book/contributors.txt', 'progit.html', 'progit.epub', 'progit.mobi', 'progit.pdf'].each do |file|
120+
FileList['book/contributors.txt', 'progit.html', 'progit.epub', 'progit.fb2', 'progit.mobi', 'progit.pdf'].each do |file|
111121
rm file
112122

113123
# Rescue if file not found

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## Reporting a security issue
22

3-
If you find any security issue or vulnerability, please email ben@straub.cc with your report.
3+
If you find any security issue or vulnerability, please email [ben@straub.cc](mailto:ben@straub.cc) with your report.
44

55
Do not open a issue on the `progit/progit2` repository or discuss the vulnerability in public.

TRANSLATING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Die folgenden Richtlinien sollen Ihnen auf Ihrem Weg helfen:
1010
* Bevor Sie beginnen, lesen Sie das gesamte Git Pro Buch auf Englisch, damit Sie den Inhalt kennen und mit dem verwendeten Stil vertraut werden.
1111
* Stellen Sie sicher, dass Sie über gute Grundkenntnisse in git verfügen, so dass die Erklärung der Fachbegriffe möglich ist.
1212
* Halten Sie sich an einen gemeinsamen Stil und ein gemeinsames Format für die Übersetzung.
13-
* Lesen und verstehen Sie unbedingt die Grundlagen der [Asciidoc-Formatierung](https://asciidoctor.org/docs/asciidoc-syntax-quick-reference/). Die Nichteinhaltung der asciidoc-Syntax kann zu Problemen beim Erstellen/Kompilieren der für das Buch benötigten pdf-, epub- und html-Dateien führen.
13+
* Lesen und verstehen Sie unbedingt die Grundlagen der [Asciidoc-Formatierung](https://docs.asciidoctor.org/asciidoc/latest/syntax-quick-reference/). Die Nichteinhaltung der asciidoc-Syntax kann zu Problemen beim Erstellen/Kompilieren der für das Buch benötigten pdf-, epub- und html-Dateien führen.
1414

1515
## Das Buch in eine andere Sprache übersetzen
1616

@@ -58,7 +58,7 @@ Wenn es noch kein Projekt für Ihre Sprache gibt, können Sie eine eigene Übers
5858

5959
Grundlage Ihrer Arbeit ist die zweite Ausgabe des Buches, die [hier](https://github.com/progit/progit2) verfügbar ist. So sollten Sie vorgehen:
6060
1. Wählen Sie den richtigen [ISO 639-Code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) für Ihre Sprache.
61-
1. Erstellen Sie eine [GitHub-Organisation](https://docs.github.com/de/organizations/collaborating-with-groups-in-organizations/creating-a-new-organization-from-scratch), z.B. `progit2-[Ihr_Code]` auf GitHub.
61+
1. Erstellen Sie eine [GitHub-Organisation](https://docs.github.com/en/organizations/collaborating-with-groups-in-organizations/creating-a-new-organization-from-scratch), z.B. `progit2-[Ihr_Code]` auf GitHub.
6262
1. Erstellen Sie ein Projekt ``progit2``.
6363
1. Kopieren Sie die Struktur von progit/progit2 (dieses Projekt) in Ihr Projekt und beginnen Sie mit der Übersetzung.
6464

@@ -88,7 +88,7 @@ Das ist eine technische Sache, bitte kontaktieren Sie @jnavila, um mit der Verö
8888

8989
Die Übersetzung des Buches ist der erste Schritt. Sobald das fertig ist, können Sie die Benutzeroberfläche von Git selbst übersetzen.
9090

91-
Diese Aufgabe erfordert ein besseres technisches Wissen über das Tool als das Buch. Hoffentlich können Sie nach der Übersetzung des gesamten Buchinhalts die in der Anwendung verwendeten Begriffe verstehen. Wenn Sie sich der Aufgabe technisch gewachsen fühlen, ist das Repo [hier](https://github.com/git-l10n/git-po) und Sie müssen nur dieser [Anleitung](https://github.com/git-l10n/git-po/blob/master/po/README) folgen.
91+
Diese Aufgabe erfordert ein besseres technisches Wissen über das Tool als das Buch. Hoffentlich können Sie nach der Übersetzung des gesamten Buchinhalts die in der Anwendung verwendeten Begriffe verstehen. Wenn Sie sich der Aufgabe technisch gewachsen fühlen, ist das Repo [hier](https://github.com/git-l10n/git-po) und Sie müssen nur dieser [Anleitung](https://github.com/git-l10n/git-po/blob/master/po/README.md) folgen.
9292

9393
Beachten Sie jedoch, dass
9494

book/01-introduction/sections/about-version-control.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Aus diesem Grund, haben Programmierer bereits vor langer Zeit, lokale Versionsve
2323
image::images/local.png[Local version control diagram]
2424

2525
Eines der populäreren Versionsverwaltungssysteme war RCS, welches auch heute noch mit vielen Computern ausgeliefert wird.
26-
https://www.gnu.org/software/rcs/[RCS] arbeitet nach dem Prinzip, dass für jede Änderung ein Patch (ein Patch umfasst alle Änderungen an einer oder mehreren Dateien) in einem speziellen Format auf der Festplatte gespeichert wird. Um eine bestimmte Version einer Datei wiederherzustellen, wendet es alle Patches bis zur gewünschten Version an und rekonstruiert damit die Datei in der gewünschten Version.
26+
https://www.gnu.org/software/rcs/[RCS^] arbeitet nach dem Prinzip, dass für jede Änderung ein Patch (ein Patch umfasst alle Änderungen an einer oder mehreren Dateien) in einem speziellen Format auf der Festplatte gespeichert wird. Um eine bestimmte Version einer Datei wiederherzustellen, wendet es alle Patches bis zur gewünschten Version an und rekonstruiert damit die Datei in der gewünschten Version.
2727

2828
==== Zentrale Versionsverwaltung
2929

book/01-introduction/sections/first-time-setup.asc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ Wenn Sie Git nicht so konfigurieren, dass es Ihren Texteditor verwendet und Sie
8484
Ein Beispiel: auf einem Windows-System kann es eine vorzeitig beendete Git-Operation während einer von Git angestoßenen Verarbeitung sein.
8585
====
8686

87+
[[_new_default_branch]]
8788
==== Der standardmäßige Branch-Name
8889

8990
In der Voreinstellung wird Git einen Branch mit dem Namen _master_ erzeugen, wenn Sie ein neues Repository mit `git init` erstellen.

0 commit comments

Comments
 (0)