aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/object/file.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/object/file.go')
-rw-r--r--plumbing/object/file.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/plumbing/object/file.go b/plumbing/object/file.go
index 4caed6b..35e7f24 100644
--- a/plumbing/object/file.go
+++ b/plumbing/object/file.go
@@ -12,8 +12,12 @@ import (
// File represents git file objects.
type File struct {
+ // Name is the path of the file. It might be relative to a tree,
+ // depending of the function that generates it.
Name string
+ // Mode is the file mode.
Mode os.FileMode
+ // Blob with the contents of the file.
Blob
}