aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/object/file.go
diff options
context:
space:
mode:
authorSantiago M. Mola <santi@mola.io>2017-02-07 17:26:13 +0100
committerSantiago M. Mola <santi@mola.io>2017-02-07 17:26:13 +0100
commit62666856d9f4b3150671eb1f215a7072c02c0bc6 (patch)
tree3cd937fbca4386bf3454ed217546b7c42d8bf93a /plumbing/object/file.go
parent1f39465975d56bbb02f5cdfb1e3e77f41c613f1d (diff)
downloadgo-git-62666856d9f4b3150671eb1f215a7072c02c0bc6.tar.gz
doc: add object fields godoc
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
}