You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/B-embedding-git/sections/go-git.asc
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
=== go-git
2
2
3
3
(((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.
7
7
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.
9
9
10
-
Here is a basic example of using Go APIs:
10
+
Hier ist ein einfaches Beispiel für die Verwendung der Go-APIs:
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:
23
23
24
24
25
25
[source, go]
@@ -40,10 +40,10 @@ for _, c := range history {
40
40
-----
41
41
42
42
43
-
==== Advanced Functionality
43
+
==== Erweiterte Funktionalität
44
44
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.
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.
57
57
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.
60
60
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.
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