Add DiffIgnoreWitespaceEol and deprecate DiffIgnoreWitespaceEol (#774)
DiffIgnoreWitespaceEol contains a typo and does not have the same name as it's libgit2 counterpart.
Fixes #773
(cherry picked from commit d4524761d9
)
This commit is contained in:
parent
78bd73e5c2
commit
160566969f
|
@ -27,6 +27,13 @@ type BlobCallbackData struct {
|
|||
// CheckoutOpts is a deprecated alias of CheckoutOptions.
|
||||
type CheckoutOpts = CheckoutOptions
|
||||
|
||||
// diff.go
|
||||
|
||||
const (
|
||||
// Deprecated: DiffIgnoreWhitespaceEol is a deprecated alias of DiffIgnoreWhitespaceEOL.
|
||||
DiffIgnoreWitespaceEol = DiffIgnoreWhitespaceEOL
|
||||
)
|
||||
|
||||
// features.go
|
||||
|
||||
const (
|
||||
|
|
2
diff.go
2
diff.go
|
@ -487,7 +487,7 @@ const (
|
|||
|
||||
DiffIgnoreWhitespace DiffOptionsFlag = C.GIT_DIFF_IGNORE_WHITESPACE
|
||||
DiffIgnoreWhitespaceChange DiffOptionsFlag = C.GIT_DIFF_IGNORE_WHITESPACE_CHANGE
|
||||
DiffIgnoreWitespaceEol DiffOptionsFlag = C.GIT_DIFF_IGNORE_WHITESPACE_EOL
|
||||
DiffIgnoreWhitespaceEOL DiffOptionsFlag = C.GIT_DIFF_IGNORE_WHITESPACE_EOL
|
||||
|
||||
DiffShowUntrackedContent DiffOptionsFlag = C.GIT_DIFF_SHOW_UNTRACKED_CONTENT
|
||||
DiffShowUnmodified DiffOptionsFlag = C.GIT_DIFF_SHOW_UNMODIFIED
|
||||
|
|
Loading…
Reference in New Issue