summaryrefslogtreecommitdiff
path: root/parse_fastimport.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-12-25 20:02:10 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2018-12-25 20:02:10 -0500
commitde796fbcedd4edb3ea97b39d4fd05cbdcc168baa (patch)
treee007af30944f144973438c1ae89d8b74b7b7a1ed /parse_fastimport.go
parent2bcfdda7c623f16b71e92d5a6458c669e6ca8ce3 (diff)
parent92cdee8f4cda65c0495dd39df51f2d199da17253 (diff)
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'parse_fastimport.go')
-rw-r--r--parse_fastimport.go18
1 files changed, 17 insertions, 1 deletions
diff --git a/parse_fastimport.go b/parse_fastimport.go
index 14080b6..b01b251 100644
--- a/parse_fastimport.go
+++ b/parse_fastimport.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 (
@@ -26,7 +41,8 @@ var parser_comment func(line string) func(fiReader) (Cmd, error)
func parser_compile(cmds map[string]Cmd) func(line string) func(fiReader) (Cmd, error) {
// This assumes that 2 characters is enough to uniquely
- // identify a command, and that "#" is the only one-chara
+ // identify a command, and that "#" is the only one-character
+ // command.
ch2map := make(map[string]string, len(cmds))
for prefix := range cmds {
var ch2 string