summaryrefslogtreecommitdiff
path: root/cmd_comment.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2021-02-01 17:39:57 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2021-02-01 18:16:11 -0700
commit931930c001ffb8ac7c88414bcb0f1913e4681d63 (patch)
tree0f18c81da59d77a047ece179b3a8e7cad18ddec5 /cmd_comment.go
parentb7bd3adf84ed5f5c18b659973a0539d611a61230 (diff)
Bring up to git.git commit cf7b857a77bda6a9a93e2cde2f6ae1764e7a2517
Diffstat (limited to 'cmd_comment.go')
-rw-r--r--cmd_comment.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/cmd_comment.go b/cmd_comment.go
index 8c812f4..684c92b 100644
--- a/cmd_comment.go
+++ b/cmd_comment.go
@@ -55,7 +55,14 @@ type CmdGetMark struct {
Mark int
}
-func (c CmdGetMark) fiCmdClass() cmdClass { return cmdClassComment }
+func (c CmdGetMark) fiCmdClass() cmdClass {
+ // Prior to git v2.22.0 this was 'cmdClassComment', but in
+ // v2.22.0 it was changed to a stricter
+ // 'cmdClassCommand|cmdClassInCommit'. I want to have better
+ // backward compatibility, so I'm keeping it as
+ // 'cmdClassComment'.
+ return cmdClassComment
+}
func (c CmdGetMark) fiCmdWrite(fiw fiWriter) error {
return fiw.WriteLine("get-mark", ":"+strconv.Itoa(c.Mark))
}