Skip to content

Commit bb504b2

Browse files
committed
go-git.asc übersetzt
1 parent 15020e1 commit bb504b2

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

book/B-embedding-git/sections/go-git.asc

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
=== go-git
22

33
(((go-git)))(((Go)))
4-
In case you want to integrate Git into a service written in Golang, there also is a pure Go library implementation.
5-
This implementation does not have any native dependencies and thus is not prone to manual memory management errors.
6-
It is also transparent for the standard Golang performance analysis tooling like CPU, Memory profilers, race detector, etc.
4+
Für den Fall, dass Sie Git in einen in Golang geschriebenen Service integrieren wollen, gibt es auch eine direkte Umsetzung der Go-Bibliothek.
5+
Diese Implementierung hat keine eigenen Abhängigkeiten und ist daher nicht anfällig für manuelle Fehler in der Speicherverwaltung.
6+
Sie ist auch transparent für die standardmäßigen Golang-Tools zur Leistungsanalyse wie CPU, Memory-Profiler, Race-Detektor usw.
77

8-
go-git is focused on extensibility, compatibility and supports most of the plumbing APIs, which is documented at https://github.com/go-git/go-git/blob/master/COMPATIBILITY.md[].
8+
go-git konzentriert sich auf Erweiterbarkeit und Kompatibilität. Es unterstützt die meisten APIs für die Basisbefehle (engl. plumbing), die auf https://github.com/go-git/go-git/blob/master/COMPATIBILITY.md[] dokumentiert sind.
99

10-
Here is a basic example of using Go APIs:
10+
Hier ist ein einfaches Beispiel für die Verwendung der Go-APIs:
1111

1212
[source, go]
1313
-----
@@ -19,7 +19,7 @@ r, err := git.PlainClone("/tmp/foo", false, &git.CloneOptions{
1919
})
2020
-----
2121

22-
As soon as you have a `Repository` instance, you can access information and perform mutations on it:
22+
Sobald Sie eine `Repository` Instanz haben, können Sie auf Informationen zugreifen und Änderungen daran vornehmen:
2323

2424

2525
[source, go]
@@ -40,10 +40,10 @@ for _, c := range history {
4040
-----
4141

4242

43-
==== Advanced Functionality
43+
==== Erweiterte Funktionalität
4444

45-
go-git has few notable advanced features, one of which is a pluggable storage system, which is similar to Libgit2 backends.
46-
The default implementation is in-memory storage, which is very fast.
45+
go-git hat nur wenige nennenswerte fortgeschrittene Funktionen, von denen eine ein erweiterbares Speichersystem ist, das den Libgit2-Backends ähnlich ist.
46+
Die Standard-Implementierung ist der In-Memory Storage, welcher sehr effizient ist.
4747

4848
[source, go]
4949
-----
@@ -52,13 +52,13 @@ r, err := git.Clone(memory.NewStorage(), nil, &git.CloneOptions{
5252
})
5353
-----
5454

55-
Pluggable storage provides many interesting options.
56-
For instance, https://github.com/go-git/go-git/tree/master/_examples/storage[] allows you to store references, objects, and configuration in an Aerospike database.
55+
Die anpassbare Speicherlösung bietet viele interessante Optionen.
56+
So können Sie beispielsweise mit https://github.com/go-git/go-git/tree/master/_examples/storage[] Referenzen, Objekte und Konfiguration in einer Aerospike-Datenbank speichern.
5757

58-
Another feature is a flexible filesystem abstraction.
59-
Using https://pkg.go.dev/github.com/go-git/go-billy/v5?tab=doc#Filesystem[] it is easy to store all the files in different way i.e by packing all of them to a single archive on disk or by keeping them all in-memory.
58+
Ein anderes Feature ist eine flexible Abstraktion des Dateisystems.
59+
Mit https://pkg.go.dev/github.com/go-git/go-billy/v5?tab=doc#Filesystem[] ist es einfach, alle Dateien auf unterschiedliche Weise zu speichern, d.h. alle Dateien in ein einziges Archiv auf der Festplatte zu komprimieren oder sie alle im Arbeitsspeicher zu halten.
6060

61-
Another advanced use-case includes a fine-tunable HTTP client, such as the one found at https://github.com/go-git/go-git/blob/master/_examples/custom_http/main.go[].
61+
Ein weiterer fortgeschrittener Verwendungszweck enthält einen fein anpassbaren HTTP-Client, wie er bei https://github.com/go-git/go-git/blob/master/_examples/custom_http/main.go[] zu finden ist.
6262

6363
[source, go]
6464
-----
@@ -80,7 +80,7 @@ r, err := git.Clone(memory.NewStorage(), nil, &git.CloneOptions{URL: url})
8080
-----
8181

8282

83-
==== Further Reading
83+
==== Weiterführende Informationen
8484

85-
A full treatment of go-git's capabilities is outside the scope of this book.
86-
If you want more information on go-git, there's API documentation at https://pkg.go.dev/github.com/go-git/go-git/v5[], and a set of usage examples at https://github.com/go-git/go-git/tree/master/_examples[].
85+
Eine vollständige Behandlung der Fähigkeiten von go-git liegt außerhalb des eigentlichen Ziels dieses Buches.
86+
Wenn Sie weitere Informationen über go-git wünschen, finden Sie die API-Dokumentation auf https://pkg.go.dev/github.com/go-git/go-git/v5[] und eine Reihe von Anwendungsbeispielen unter https://github.com/go-git/go-git/tree/master/_examples[].

0 commit comments

Comments
 (0)