libgit2

git_delta_t

Version:

What type of change is described by a git_diff_delta?

GIT_DELTA_RENAMED and GIT_DELTA_COPIED will only show up if you run git_diff_find_similar() on the diff object.

GIT_DELTA_TYPECHANGE only shows up given GIT_DIFF_INCLUDE_TYPECHANGE in the option flags (otherwise type changes will be split into ADDED / DELETED pairs).

Values

GIT_DELTA_UNMODIFIED
0

no changes

GIT_DELTA_ADDED
1

entry does not exist in old version

GIT_DELTA_DELETED
2

entry does not exist in new version

GIT_DELTA_MODIFIED
3

entry content changed between old and new

GIT_DELTA_RENAMED
4

entry was renamed between old and new

GIT_DELTA_COPIED
5

entry was copied from another old entry

GIT_DELTA_IGNORED
6

entry is ignored item in workdir

GIT_DELTA_UNTRACKED
7

entry is untracked item in workdir

GIT_DELTA_TYPECHANGE
8

type of entry changed between old and new

GIT_DELTA_UNREADABLE
9

entry is unreadable

GIT_DELTA_CONFLICTED
10

entry in the index is conflicted

Parameter To

Versions