diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-11-16 15:30:34 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-11-16 15:30:34 -0500 |
commit | f0ffa10c863345ea3a9a301be035f78af175e17c (patch) | |
tree | aba15bc1cf931c3a897af4abe505d9cacc5ce654 /commands.go | |
parent | c16e4c36d4f5f5f9d6d21f4644b9c38b61159c47 (diff) |
use 'string' instead of '[]byte' for data
Diffstat (limited to 'commands.go')
-rw-r--r-- | commands.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/commands.go b/commands.go index 378b6b9..5085ed8 100644 --- a/commands.go +++ b/commands.go @@ -15,7 +15,7 @@ type CmdCommit struct { Mark int // optional; < 1 for non-use Author *textproto.UserTime Committer textproto.UserTime - Msg []byte + Msg string From string Merge []string Tree []FileAction @@ -58,7 +58,7 @@ type CmdTag struct { RefName string CommitIsh string Tagger textproto.UserTime - Data []byte + Data string } func (c CmdTag) fiWriteCmd(fiw *textproto.FIWriter) error { @@ -90,7 +90,7 @@ func (c CmdReset) fiWriteCmd(fiw *textproto.FIWriter) error { type CmdBlob struct { Mark int - Data []byte + Data string } func (c CmdBlob) fiWriteCmd(fiw *textproto.FIWriter) error { |