diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-12-25 20:02:10 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-12-25 20:02:10 -0500 |
commit | de796fbcedd4edb3ea97b39d4fd05cbdcc168baa (patch) | |
tree | e007af30944f144973438c1ae89d8b74b7b7a1ed /cmd_comment.go | |
parent | 2bcfdda7c623f16b71e92d5a6458c669e6ca8ce3 (diff) | |
parent | 92cdee8f4cda65c0495dd39df51f2d199da17253 (diff) |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'cmd_comment.go')
-rw-r--r-- | cmd_comment.go | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/cmd_comment.go b/cmd_comment.go index b554487..c0325b4 100644 --- a/cmd_comment.go +++ b/cmd_comment.go @@ -1,3 +1,18 @@ +// Copyright (C) 2017-2018 Luke Shumaker <lukeshu@lukeshu.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see <https://www.gnu.org/licenses/>. + package libfastimport import ( @@ -9,6 +24,7 @@ import ( // comment ///////////////////////////////////////////////////////////////////// +// CmdComment is a comment line; not a real command. type CmdComment struct { Comment string } @@ -28,6 +44,9 @@ func (CmdComment) fiCmdRead(fir fiReader) (cmd Cmd, err error) { // get-mark //////////////////////////////////////////////////////////////////// +// CmdGetMark requests that the Backend to report back (over the +// auxiliary cat-blob stream) with the SHA-1 corresponding to the +// given Mark. type CmdGetMark struct { Mark int } @@ -52,6 +71,10 @@ func (CmdGetMark) fiCmdRead(fir fiReader) (cmd Cmd, err error) { // cat-blob //////////////////////////////////////////////////////////////////// +// CmdCatBlob requests that the Backend to report back (over the +// auxiliary cat-blob stream) with the SHA-1 and content of the +// requested blob. The blob can be specified either by a mark +// reference (":<idnum>") or by a full 40-byte SHA-1. type CmdCatBlob struct { DataRef string } @@ -71,6 +94,12 @@ func (CmdCatBlob) fiCmdRead(fir fiReader) (cmd Cmd, err error) { // ls ////////////////////////////////////////////////////////////////////////// +// CmdLs requests that the Backend to report back (over the auxiliary +// cat-blob stream) with information about the object at a path in the +// specified commit. If inside of a commit, specifying the commit is +// optional, and the ongoing commit is used. The commit can be +// specified either by a mark reference (":<idnum>") or by a full +// 40-byte SHA-1. type CmdLs struct { DataRef string // optional if inside of a commit Path Path |