aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc.go9
-rw-r--r--object/signature/parse.go2
2 files changed, 11 insertions, 0 deletions
diff --git a/doc.go b/doc.go
index 12032483..2f52b056 100644
--- a/doc.go
+++ b/doc.go
@@ -40,6 +40,15 @@
// - Deps-Mixed: some are mixed while others are borrowed.
// The documentation should specify further.
//
+// Lifetime labels:
+//
+// - Life-Independent: returned values remain valid
+// independently of the parent or provider.
+// - Life-Parent: returned values are only valid
+// while the parent or provider remains valid.
+// - Life-Call: returned values are only valid
+// for the duration of the current call, callback, or hook invocation.
+//
// Close labels:
//
// - Close-Caller: the caller must close the returned value.
diff --git a/object/signature/parse.go b/object/signature/parse.go
index 1de72ab5..e633f017 100644
--- a/object/signature/parse.go
+++ b/object/signature/parse.go
@@ -9,6 +9,8 @@ import (
)
// Parse parses a canonical Git signature line.
+//
+// Labels: Life-Independent.
func Parse(line []byte) (*Signature, error) {
lt := bytes.IndexByte(line, '<')
if lt < 0 {