summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlan Rogers <alan@github.com>2014-05-20 23:57:40 +1000
committerAlan Rogers <alan@github.com>2014-05-20 23:57:40 +1000
commit61bef72dc35c593e632dc2008c4eec271a264869 (patch)
treee85096c82d51a1dc81d529b627fb7504c1059d29 /include
parentf47bc8ff5e844fec15e705e8ebd11bae742b8039 (diff)
downloadlibgit2-61bef72dc35c593e632dc2008c4eec271a264869.tar.gz
Start adding GIT_DELTA_UNREADABLE and GIT_STATUS_WT_UNREADABLE.
Diffstat (limited to 'include')
-rw-r--r--include/git2/diff.h4
-rw-r--r--include/git2/status.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/include/git2/diff.h b/include/git2/diff.h
index b40cc6135..ebf47e3c0 100644
--- a/include/git2/diff.h
+++ b/include/git2/diff.h
@@ -191,6 +191,9 @@ typedef enum {
* can apply given diff information to binary files.
*/
GIT_DIFF_SHOW_BINARY = (1 << 30),
+
+ /** Include unreadable files in the diff */
+ GIT_DIFF_INCLUDE_UNREADABLE = (1 << 31),
} git_diff_option_t;
/**
@@ -237,6 +240,7 @@ typedef enum {
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_t;
/**
diff --git a/include/git2/status.h b/include/git2/status.h
index effe5e1ea..794a629af 100644
--- a/include/git2/status.h
+++ b/include/git2/status.h
@@ -43,6 +43,7 @@ typedef enum {
GIT_STATUS_WT_DELETED = (1u << 9),
GIT_STATUS_WT_TYPECHANGE = (1u << 10),
GIT_STATUS_WT_RENAMED = (1u << 11),
+ GIT_STATUS_WT_UNREADABLE = (1u << 12),
GIT_STATUS_IGNORED = (1u << 14),
} git_status_t;