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
GIT_DELTA_ADDED
1

no changes

GIT_DELTA_DELETED
2

entry does not exist in old version

GIT_DELTA_MODIFIED
3

entry does not exist in new version

GIT_DELTA_RENAMED
4

entry content changed between old and new

GIT_DELTA_COPIED
5

entry was renamed between old and new

GIT_DELTA_IGNORED
6

entry was copied from another old entry

GIT_DELTA_UNTRACKED
7

entry is ignored item in workdir

GIT_DELTA_TYPECHANGE
8

entry is untracked item in workdir

Parameter To

Versions