diff options
| author | Gustav Westling <[email protected]> | 2021-09-04 22:54:21 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-09-04 13:54:21 -0700 |
| commit | d4524761d9e08ba5430f5a94f56648c1ef0f651c (patch) | |
| tree | aa4494525c80f1d912c286b1f1cf090267e9b7c2 | |
| parent | 15434610fec67e704d3ad443b03054d1611f98fe (diff) | |
Add DiffIgnoreWitespaceEol and deprecate DiffIgnoreWitespaceEol (#774)
DiffIgnoreWitespaceEol contains a typo and does not have the same name as it's libgit2 counterpart.
Fixes #773
| -rw-r--r-- | deprecated.go | 7 | ||||
| -rw-r--r-- | diff.go | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/deprecated.go b/deprecated.go index ae277f1..c948808 100644 --- a/deprecated.go +++ b/deprecated.go @@ -72,6 +72,13 @@ func NewCredDefault() (*Cred, error) { return NewCredentialDefault() } +// diff.go + +const ( + // Deprecated: DiffIgnoreWhitespaceEol is a deprecated alias of DiffIgnoreWhitespaceEOL. + DiffIgnoreWitespaceEol = DiffIgnoreWhitespaceEOL +) + // features.go const ( @@ -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 |
