diff options
| author | Jeff King <peff@peff.net> | 2026-07-26 04:47:05 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-07-28 09:28:09 -0700 |
| commit | 151726d3ca54cbd279d527dc048133ead5c8b582 (patch) | |
| tree | e9e1e94457eefb036e11e068f658eafbb4c2ab98 /t/t4013/diff.diff_initial..side | |
| parent | 640177a987270564a8ef90cdc359677209fbe0fe (diff) | |
diff-lib: skip paths outside prefix in oneway_diff()
Commit 8174627b3d (diff-lib: ignore paths that are outside $cwd if
--relative asked, 2021-08-22) taught run_diff_files() to skip entries
outside the requested prefix before processing them.
Do the same in oneway_diff(), which handles the diff-index code path.
The lower-level diff queue functions already reject such paths, but
checking here avoids unnecessary work and keeps them out of every
do_oneway_diff() code path.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_initial..side')
0 files changed, 0 insertions, 0 deletions
