Skip to content

Commit 1ba7c32

Browse files
committed
diff: update GIT_DIFF_IGNORE_BLANK_LINES
`GIT_DIFF_IGNORE_BLANK_LINES` needs to be within a (signed) int, per the `enum` definition of ISO C.
1 parent ba01547 commit 1ba7c32

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

include/git2/diff.h

+3-4
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ typedef enum {
133133
*/
134134
GIT_DIFF_INDENT_HEURISTIC = (1u << 18),
135135

136+
/** Ignore blank lines */
137+
GIT_DIFF_IGNORE_BLANK_LINES = (1u << 19),
138+
136139
/** Treat all files as text, disabling binary attributes & detection */
137140
GIT_DIFF_FORCE_TEXT = (1u << 20),
138141
/** Treat all files as binary, disabling text diffs */
@@ -168,10 +171,6 @@ typedef enum {
168171
* can apply given diff information to binary files.
169172
*/
170173
GIT_DIFF_SHOW_BINARY = (1u << 30),
171-
172-
/** Ignore blank lines */
173-
GIT_DIFF_IGNORE_BLANK_LINES = (1u << 31),
174-
175174
} git_diff_option_t;
176175

177176
/**

0 commit comments

Comments
 (0)