diff options
author | Vicent Martà <vicent@github.com> | 2013-05-24 11:39:56 -0700 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2013-05-24 11:39:56 -0700 |
commit | 85281328be6341794341a9a46b54e3a557b2b889 (patch) | |
tree | b0bac0291ac788c6771b02e4ed59e970d2c669c7 /include/git2/diff.h | |
parent | 5e57cfa1b34374835f03e8d0ea61c338ed5cd9f0 (diff) | |
parent | 7a5ee3dc923caf2b3b9b5e9b2408340f6ae32d7d (diff) | |
download | libgit2-85281328be6341794341a9a46b54e3a557b2b889.tar.gz |
Merge pull request #1608 from arrbee/various-cleanups-and-tweaks
Various cleanups and tweaks
Diffstat (limited to 'include/git2/diff.h')
-rw-r--r-- | include/git2/diff.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/include/git2/diff.h b/include/git2/diff.h index 0d4875b43..d26456cb0 100644 --- a/include/git2/diff.h +++ b/include/git2/diff.h @@ -89,9 +89,10 @@ typedef enum { /** Include unmodified files in the diff list */ GIT_DIFF_INCLUDE_UNMODIFIED = (1 << 9), - /** Even with GIT_DIFF_INCLUDE_UNTRACKED, an entire untracked directory - * will be marked with only a single entry in the diff list; this flag - * adds all files under the directory as UNTRACKED entries, too. + /** Even with GIT_DIFF_INCLUDE_UNTRACKED, an entire untracked + * directory will be marked with only a single entry in the diff list + * (a la what core Git does in `git status`); this flag adds *all* + * files under untracked directories as UNTRACKED entries, too. */ GIT_DIFF_RECURSE_UNTRACKED_DIRS = (1 << 10), @@ -103,7 +104,11 @@ typedef enum { /** Use case insensitive filename comparisons */ GIT_DIFF_DELTAS_ARE_ICASE = (1 << 12), - /** When generating patch text, include the content of untracked files */ + /** When generating patch text, include the content of untracked + * files. This automatically turns on GIT_DIFF_INCLUDE_UNTRACKED but + * it does not turn on GIT_DIFF_RECURSE_UNTRACKED_DIRS. Add that + * flag if you want the content of every single UNTRACKED file. + */ GIT_DIFF_INCLUDE_UNTRACKED_CONTENT = (1 << 13), /** Disable updating of the `binary` flag in delta records. This is @@ -139,7 +144,7 @@ typedef enum { * consider UNTRACKED only if it has an actual untracked file in it. * This scan is extra work for a case you often don't care about. This * flag makes libgit2 immediately label an untracked directory as - * UNTRACKED without looking insde it (which differs from core Git). + * UNTRACKED without looking inside it (which differs from core Git). * Of course, ignore rules are still checked for the directory itself. */ GIT_DIFF_FAST_UNTRACKED_DIRS = (1 << 19), |