aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
Diffstat (limited to 'options.go')
-rw-r--r--options.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/options.go b/options.go
index 61c0388..f46bb6d 100644
--- a/options.go
+++ b/options.go
@@ -229,3 +229,11 @@ func (o *ResetOptions) Validate(r *Repository) error {
return nil
}
+
+// LogOptions describes how a log action should be performed.
+type LogOptions struct {
+ // When the From option is set the log will only contain commits
+ // reachable from it. If this option is not set, HEAD will be used as
+ // the default From.
+ From plumbing.Hash
+}