@@ -212,9 +212,9 @@ typedef struct git_diff git_diff;
212212 * considered reserved for internal or future use.
213213 */
214214typedef 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 */
218218} git_diff_flag_t ;
219219
220220/**
@@ -228,15 +228,15 @@ typedef enum {
228228 * DELETED pairs).
229229 */
230230typedef 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 */
240240} git_delta_t ;
241241
242242/**
@@ -416,12 +416,12 @@ typedef int (*git_diff_file_cb)(
416416 */
417417typedef struct git_diff_hunk git_diff_hunk ;
418418struct 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 */
425425};
426426
427427/**
@@ -464,13 +464,13 @@ typedef enum {
464464 */
465465typedef struct git_diff_line git_diff_line ;
466466struct 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 */
474474};
475475
476476/**
@@ -482,10 +482,10 @@ struct git_diff_line {
482482 * of lines of file and hunk headers.
483483 */
484484typedef 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 */
489489
490490/**
491491 * Flags to control the behavior of diff rename/copy detection.
0 commit comments