diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -347,7 +347,7 @@ The Repository object at ".Repo" has methods: * .Blob(ctx, ref, path) reads the file at <path> from commit <ref> and returns its contents. * .Tree(ctx, ref, path) retrieves the directory contents at <path> from commit <ref> and returns a list of ObjectDescriptions. -Ref objects: +### Ref objects * .Repo a pointer back to the Repository. * .Name is the full ref name, starting with "refs/heads/" or "refs/tags/". @@ -356,7 +356,7 @@ Ref objects: * .IsTag() returns whether the ref is a tag. * .ShortName() returns just the branch or tag name, with "/refs/heads/" or "refs/tags/" stripped off. -Commit objects: +### Commit objects * .Repo is a pointer back to the Repository. * .Hash is the full commit hash. @@ -372,13 +372,15 @@ Commit objects: * .ShortMessage() returns just the first line of the commit message. * .RestOfMessage() returns all but the first line of the commit message after trimming off an empty line at the start. -Readme objects: +### Readme objects * .Filename is the filename at which the README was found. * .RawContents is a string of the file contents. -* .GeminiEscapedContents() produces the file contents but with any ```-leading lines prefixed with a space. +* .GeminiEscapedContents() produces the file contents but with any triple-backtick-leading lines prefixed with a space. * .GopherEscapedContents(selector, host, port) produces the file contents formatted as gopher menu with each line an info-message line. +### ObjectDescription objects + ObjectDescription is a representation of a blob or tree: * .Mode is an integer of the file permission bits. |
