|
96 | 96 | * diff hunks. |
97 | 97 | *) |
98 | 98 | GIT_DIFF_INDENT_HEURISTIC = (1 shl 18); |
| 99 | + (** Ignore blank lines *) |
| 100 | + GIT_DIFF_IGNORE_BLANK_LINES = (1 shl 19); |
99 | 101 | (** Treat all files as text, disabling binary attributes & detection *) |
100 | 102 | GIT_DIFF_FORCE_TEXT = (1 shl 20); |
101 | 103 | (** Treat all files as binary, disabling text diffs *) |
@@ -126,8 +128,6 @@ const |
126 | 128 | * can apply given diff information to binary files. |
127 | 129 | *) |
128 | 130 | GIT_DIFF_SHOW_BINARY = (1 shl 30); |
129 | | - (** Ignore blank lines *) |
130 | | - GIT_DIFF_IGNORE_BLANK_LINES = (1 shl 31); |
131 | 131 | type |
132 | 132 | git_diff_option_t = Integer; |
133 | 133 |
|
@@ -1272,89 +1272,6 @@ function git_diff_stats_to_buf(out_: Pgit_buf; stats: Pgit_diff_stats; format: g |
1272 | 1272 |
|
1273 | 1273 | procedure git_diff_stats_free(stats: Pgit_diff_stats); cdecl; external libgit2_dll; |
1274 | 1274 |
|
1275 | | -(** |
1276 | | - * Formatting options for diff e-mail generation |
1277 | | - *) |
1278 | | - |
1279 | | -const |
1280 | | - (** Normal patch, the default *) |
1281 | | - GIT_DIFF_FORMAT_EMAIL_NONE = 0; |
1282 | | - (** Don't insert "[PATCH]" in the subject header *) |
1283 | | - GIT_DIFF_FORMAT_EMAIL_EXCLUDE_SUBJECT_PATCH_MARKER = (1 shl 0); |
1284 | | -type |
1285 | | - git_diff_format_email_flags_t = Integer; |
1286 | | - |
1287 | | - (** |
1288 | | - * Options for controlling the formatting of the generated e-mail. |
1289 | | - *) |
1290 | | - |
1291 | | -type |
1292 | | - git_diff_format_email_options = record |
1293 | | - version: Cardinal; |
1294 | | - (** see `git_diff_format_email_flags_t` above *) |
1295 | | - flags: uint32_t; |
1296 | | - (** This patch number *) |
1297 | | - patch_no: size_t; |
1298 | | - (** Total number of patches in this series *) |
1299 | | - total_patches: size_t; |
1300 | | - (** id to use for the commit *) |
1301 | | - id: Pgit_oid; |
1302 | | - (** Summary of the change *) |
1303 | | - summary: PAnsiChar; |
1304 | | - (** Commit message's body *) |
1305 | | - body: PAnsiChar; |
1306 | | - (** Author of the change *) |
1307 | | - author: Pgit_signature; |
1308 | | - end; |
1309 | | - Pgit_diff_format_email_options = ^git_diff_format_email_options; |
1310 | | - |
1311 | | -const |
1312 | | - GIT_DIFF_FORMAT_EMAIL_OPTIONS_VERSION = 1; |
1313 | | - //GIT_DIFF_FORMAT_EMAIL_OPTIONS_INIT = { GIT_DIFF_FORMAT_EMAIL_OPTIONS_VERSION , 0 , 1 , 1 , NULL , NULL , NULL , NULL }; |
1314 | | - (** |
1315 | | - * Create an e-mail ready patch from a diff. |
1316 | | - * |
1317 | | - * @param out buffer to store the e-mail patch in |
1318 | | - * @param diff containing the commit |
1319 | | - * @param opts structure with options to influence content and formatting. |
1320 | | - * @return 0 or an error code |
1321 | | - *) |
1322 | | - |
1323 | | -function git_diff_format_email(out_: Pgit_buf; diff: Pgit_diff; |
1324 | | - opts: Pgit_diff_format_email_options): Integer; cdecl; external libgit2_dll; |
1325 | | - |
1326 | | -(** |
1327 | | - * Create an e-mail ready patch for a commit. |
1328 | | - * |
1329 | | - * Does not support creating patches for merge commits (yet). |
1330 | | - * |
1331 | | - * @param out buffer to store the e-mail patch in |
1332 | | - * @param repo containing the commit |
1333 | | - * @param commit pointer to up commit |
1334 | | - * @param patch_no patch number of the commit |
1335 | | - * @param total_patches total number of patches in the patch set |
1336 | | - * @param flags determines the formatting of the e-mail |
1337 | | - * @param diff_opts structure with options to influence diff or NULL for defaults. |
1338 | | - * @return 0 or an error code |
1339 | | - *) |
1340 | | - |
1341 | | -function git_diff_commit_as_email(out_: Pgit_buf; repo: Pgit_repository; commit: Pgit_commit; |
1342 | | - patch_no, total_patches: size_t; flags: uint32_t; diff_opts: Pgit_diff_options): Integer; cdecl; external libgit2_dll; |
1343 | | - |
1344 | | -(** |
1345 | | - * Initialize git_diff_format_email_options structure |
1346 | | - * |
1347 | | - * Initializes a `git_diff_format_email_options` with default values. Equivalent |
1348 | | - * to creating an instance with GIT_DIFF_FORMAT_EMAIL_OPTIONS_INIT. |
1349 | | - * |
1350 | | - * @param opts The `git_blame_options` struct to initialize. |
1351 | | - * @param version The struct version; pass `GIT_DIFF_FORMAT_EMAIL_OPTIONS_VERSION`. |
1352 | | - * @return Zero on success; -1 on failure. |
1353 | | - *) |
1354 | | - |
1355 | | -function git_diff_format_email_options_init(opts: Pgit_diff_format_email_options; |
1356 | | - version: Cardinal): Integer; cdecl; external libgit2_dll; |
1357 | | - |
1358 | 1275 | (** |
1359 | 1276 | * Patch ID options structure |
1360 | 1277 | * |
|
0 commit comments