this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix spelling mistakes, add Go Report Card badge

+4 -4
+1 -1
README.md
··· 1 1 # go-gitdiff 2 2 3 - [![GoDoc](https://godoc.org/github.com/bluekeyes/go-gitdiff/gitdiff?status.svg)](http://godoc.org/github.com/bluekeyes/go-gitdiff/gitdiff) 3 + [![GoDoc](https://godoc.org/github.com/bluekeyes/go-gitdiff/gitdiff?status.svg)](http://godoc.org/github.com/bluekeyes/go-gitdiff/gitdiff) [![Go Report Card](https://goreportcard.com/badge/github.com/bluekeyes/go-gitdiff)](https://goreportcard.com/report/github.com/bluekeyes/go-gitdiff) 4 4 5 5 A Go library for parsing and applying patches generated by `git diff`, `git 6 6 show`, and `git format-patch`. It can also parse and apply unified diffs
+1 -1
gitdiff/file_header.go
··· 302 302 303 303 // parseName extracts a file name from the start of a string and returns the 304 304 // name and the index of the first character after the name. If the name is 305 - // unquoted and term is non-negative, parsing stops at the first occurance of 305 + // unquoted and term is non-negative, parsing stops at the first occurrence of 306 306 // term. Otherwise parsing of unquoted names stops at the first space or tab. 307 307 // 308 308 // If the name is exactly "/dev/null", no further processing occurs. Otherwise,
+1 -1
gitdiff/file_header_test.go
··· 368 368 } 369 369 370 370 if output != test.Output { 371 - t.Errorf("incorect output: expected %q, actual: %q", test.Output, output) 371 + t.Errorf("incorrect output: expected %q, actual: %q", test.Output, output) 372 372 } 373 373 if n != test.N { 374 374 t.Errorf("incorrect next position: expected %d, actual %d", test.N, n)
+1 -1
gitdiff/gitdiff.go
··· 56 56 Lines []Line 57 57 } 58 58 59 - // Header returns the cannonical header of this fragment. 59 + // Header returns the canonical header of this fragment. 60 60 func (f *TextFragment) Header() string { 61 61 return fmt.Sprintf("@@ -%d,%d +%d,%d @@ %s", f.OldPosition, f.OldLines, f.NewPosition, f.NewLines, f.Comment) 62 62 }