summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2021-02-01 17:28:51 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2021-02-01 18:16:02 -0700
commitf547a14704d3b25b8e0e015cbcbdd1de5ba953c7 (patch)
treed27e514d2339d83400c006f468660be9ea026b37
parent41a084d01e7be44b5a7bc0a30438e5f64ac41e33 (diff)
Bring up to git.git commit 62edbec7dee0bc9788d60823ca074d7dfbb5a486
-rw-r--r--frontend.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/frontend.go b/frontend.go
index c069ddf..f449179 100644
--- a/frontend.go
+++ b/frontend.go
@@ -1,4 +1,4 @@
-// Copyright (C) 2017-2018 Luke Shumaker <lukeshu@lukeshu.com>
+// Copyright (C) 2017-2018, 2021 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
@@ -37,6 +37,10 @@ func (e UnsupportedCommand) Error() string {
// it was not given that name because the RespondGetMark,
// RespondCatBlob, and RespondLs methods actually write information;
// it isn't a read-only object.
+//
+// The parser is a bit more forgiving than git's own parser; it allows
+// extra newlines anywhere it allows comments, whereas git's own
+// parser is quite strict about newlines.
type Frontend struct {
fastImport *parser
catBlobWrite *textproto.CatBlobWriter