Message ID | 704bb2ba18ee3af5857064f6fd61689f98da0480.1643149759.git.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | Fix two --diff-filter bugs | expand |
"Johannes Schindelin via GitGitGadget" <gitgitgadget@gmail.com> writes: > From: Johannes Schindelin <johannes.schindelin@gmx.de> > > Originally, before we had `--intent-to-add`, there was no way that `git > diff-files` could see added files: if a file did not exist in the index, > `git diff-files` would not show it because it looks only at worktree > files when there is an index entry at the same path. Good find. Looks good.
diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt index c89d530d3d1..2549df0d212 100644 --- a/Documentation/diff-options.txt +++ b/Documentation/diff-options.txt @@ -616,11 +616,8 @@ ifndef::git-format-patch[] Also, these upper-case letters can be downcased to exclude. E.g. `--diff-filter=ad` excludes added and deleted paths. + -Note that not all diffs can feature all types. For instance, diffs -from the index to the working tree can never have Added entries -(because the set of paths included in the diff is limited by what is in -the index). Similarly, copied and renamed entries cannot appear if -detection for those types is disabled. +Note that not all diffs can feature all types. For instance, copied and +renamed entries cannot appear if detection for those types is disabled. -S<string>:: Look for differences that change the number of occurrences of