@@ -212,9 +212,9 @@ typedef struct git_diff git_diff;
212
212
* considered reserved for internal or future use.
213
213
*/
214
214
typedef enum {
215
- GIT_DIFF_FLAG_BINARY = (1u << 0 ), /** file(s) treated as binary data */
216
- GIT_DIFF_FLAG_NOT_BINARY = (1u << 1 ), /** file(s) treated as text data */
217
- GIT_DIFF_FLAG_VALID_ID = (1u << 2 ), /** `id` value is known correct */
215
+ GIT_DIFF_FLAG_BINARY = (1u << 0 ), /**< file(s) treated as binary data */
216
+ GIT_DIFF_FLAG_NOT_BINARY = (1u << 1 ), /**< file(s) treated as text data */
217
+ GIT_DIFF_FLAG_VALID_ID = (1u << 2 ), /**< `id` value is known correct */
218
218
} git_diff_flag_t ;
219
219
220
220
/**
@@ -228,15 +228,15 @@ typedef enum {
228
228
* DELETED pairs).
229
229
*/
230
230
typedef enum {
231
- GIT_DELTA_UNMODIFIED = 0 , /** no changes */
232
- GIT_DELTA_ADDED = 1 , /** entry does not exist in old version */
233
- GIT_DELTA_DELETED = 2 , /** entry does not exist in new version */
234
- GIT_DELTA_MODIFIED = 3 , /** entry content changed between old and new */
235
- GIT_DELTA_RENAMED = 4 , /** entry was renamed between old and new */
236
- GIT_DELTA_COPIED = 5 , /** entry was copied from another old entry */
237
- GIT_DELTA_IGNORED = 6 , /** entry is ignored item in workdir */
238
- GIT_DELTA_UNTRACKED = 7 , /** entry is untracked item in workdir */
239
- GIT_DELTA_TYPECHANGE = 8 , /** type of entry changed between old and new */
231
+ GIT_DELTA_UNMODIFIED = 0 , /**< no changes */
232
+ GIT_DELTA_ADDED = 1 , /**< entry does not exist in old version */
233
+ GIT_DELTA_DELETED = 2 , /**< entry does not exist in new version */
234
+ GIT_DELTA_MODIFIED = 3 , /**< entry content changed between old and new */
235
+ GIT_DELTA_RENAMED = 4 , /**< entry was renamed between old and new */
236
+ GIT_DELTA_COPIED = 5 , /**< entry was copied from another old entry */
237
+ GIT_DELTA_IGNORED = 6 , /**< entry is ignored item in workdir */
238
+ GIT_DELTA_UNTRACKED = 7 , /**< entry is untracked item in workdir */
239
+ GIT_DELTA_TYPECHANGE = 8 , /**< type of entry changed between old and new */
240
240
} git_delta_t ;
241
241
242
242
/**
@@ -416,12 +416,12 @@ typedef int (*git_diff_file_cb)(
416
416
*/
417
417
typedef struct git_diff_hunk git_diff_hunk ;
418
418
struct git_diff_hunk {
419
- int old_start ; /** Starting line number in old_file */
420
- int old_lines ; /** Number of lines in old_file */
421
- int new_start ; /** Starting line number in new_file */
422
- int new_lines ; /** Number of lines in new_file */
423
- size_t header_len ; /** Number of bytes in header text */
424
- char header [128 ]; /** Header text, NUL-byte terminated */
419
+ int old_start ; /**< Starting line number in old_file */
420
+ int old_lines ; /**< Number of lines in old_file */
421
+ int new_start ; /**< Starting line number in new_file */
422
+ int new_lines ; /**< Number of lines in new_file */
423
+ size_t header_len ; /**< Number of bytes in header text */
424
+ char header [128 ]; /**< Header text, NUL-byte terminated */
425
425
};
426
426
427
427
/**
@@ -464,13 +464,13 @@ typedef enum {
464
464
*/
465
465
typedef struct git_diff_line git_diff_line ;
466
466
struct git_diff_line {
467
- char origin ; /** A git_diff_line_t value */
468
- int old_lineno ; /** Line number in old file or -1 for added line */
469
- int new_lineno ; /** Line number in new file or -1 for deleted line */
470
- int num_lines ; /** Number of newline characters in content */
471
- size_t content_len ; /** Number of bytes of data */
472
- git_off_t content_offset ; /** Offset in the original file to the content */
473
- const char * content ; /** Pointer to diff text, not NUL-byte terminated */
467
+ char origin ; /**< A git_diff_line_t value */
468
+ int old_lineno ; /**< Line number in old file or -1 for added line */
469
+ int new_lineno ; /**< Line number in new file or -1 for deleted line */
470
+ int num_lines ; /**< Number of newline characters in content */
471
+ size_t content_len ; /**< Number of bytes of data */
472
+ git_off_t content_offset ; /**< Offset in the original file to the content */
473
+ const char * content ; /**< Pointer to diff text, not NUL-byte terminated */
474
474
};
475
475
476
476
/**
@@ -482,10 +482,10 @@ struct git_diff_line {
482
482
* of lines of file and hunk headers.
483
483
*/
484
484
typedef int (* git_diff_line_cb )(
485
- const git_diff_delta * delta , /** delta that contains this data */
486
- const git_diff_hunk * hunk , /** hunk containing this data */
487
- const git_diff_line * line , /** line data */
488
- void * payload ); /** user reference data */
485
+ const git_diff_delta * delta , /**< delta that contains this data */
486
+ const git_diff_hunk * hunk , /**< hunk containing this data */
487
+ const git_diff_line * line , /**< line data */
488
+ void * payload ); /**< user reference data */
489
489
490
490
/**
491
491
* Flags to control the behavior of diff rename/copy detection.
0 commit comments