summaryrefslogtreecommitdiff
path: root/include/git2/diff.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-10-02 13:57:15 -0700
committerRussell Belfer <rb@github.com>2012-10-09 11:54:01 -0700
commit95f5f1e63ae4925eda53c7e4d0d16fe583977359 (patch)
tree3015a21b138f224d2f93195efa91459173023810 /include/git2/diff.h
parentfbec2fb99112d5fbac1367afd99cf039e6b3e48b (diff)
downloadlibgit2-95f5f1e63ae4925eda53c7e4d0d16fe583977359.tar.gz
Cleanup TYPECHANGE support
This is just some cleanup code, rearranging some of the checkout code where TYPECHANGE support was added and adding some comments to the diff header regarding the constants.
Diffstat (limited to 'include/git2/diff.h')
-rw-r--r--include/git2/diff.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/git2/diff.h b/include/git2/diff.h
index 24556db73..551e525ef 100644
--- a/include/git2/diff.h
+++ b/include/git2/diff.h
@@ -32,6 +32,30 @@ GIT_BEGIN_DECL
/**
* Flags for diff options. A combination of these flags can be passed
* in via the `flags` value in the `git_diff_options`.
+ *
+ * The flags are:
+ *
+ * - GIT_DIFF_NORMAL: normal diff, the default.
+ * - GIT_DIFF_REVERSE: reverse the sides of the diff.
+ * - GIT_DIFF_FORCE_TEXT: treat all as text, no binary attributes / detection.
+ * - GIT_DIFF_IGNORE_WHITESPACE: ignore all whitespace.
+ * - GIT_DIFF_IGNORE_WHITESPACE_CHANGE: ignore changes in amount of whitespace.
+ * - GIT_DIFF_IGNORE_WHITESPACE_EOL: ignore whitespace only at end-of-line.
+ * - GIT_DIFF_IGNORE_SUBMODULES: exclude submodules from diff completely.
+ * - GIT_DIFF_PATIENCE: use "patience diff" algorithm
+ * - GIT_DIFF_INCLUDE_IGNORED: include ignored files in the diff list
+ * - GIT_DIFF_INCLUDE_UNTRACKED: include untracked files in the diff list
+ * - GIT_DIFF_INCLUDE_UNMODIFIED: include unmodified files in the diff list
+ * - GIT_DIFF_RECURSE_UNTRACKED_DIRS: even with the INCLUDE_UNTRACKED flag,
+ * when am untracked directory is found, only a single entry for the directory
+ * will be included in the diff list; with this flag, all files under the
+ * directory will be included, too.
+ * - GIT_DIFF_DISABLE_PATHSPEC_MATCH: if the pathspec is set in the diff
+ * options, this flags means to interpret it exactly instead of fnmatch.
+ * - GIT_DIFF_DELTAS_ARE_ICASE: use case insensitive filename comparisons
+ * - GIT_DIFF_DONT_SPLIT_TYPECHANGE: normally, a type change between files
+ * will be converted into a DELETED record for the old file and an ADDED
+ * record for the new one; this option enabled TYPECHANGE records.
*/
enum {
GIT_DIFF_NORMAL = 0,