]> git.ipfire.org Git - thirdparty/git.git/commit - pathspec.h
pathspec: allow to ignore SKIP_WORKTREE entries on index matching
authorMatheus Tavares <matheus.bernardino@usp.br>
Thu, 8 Apr 2021 20:41:25 +0000 (17:41 -0300)
committerJunio C Hamano <gitster@pobox.com>
Thu, 8 Apr 2021 21:18:03 +0000 (14:18 -0700)
commit719630eb4826ff7f36bc060533dbccc3c96d151c
tree56bf2c8141c856f5e926fbddaf48ad9df8658a85
parentd73dbafc2c25eb45090d6aa9d56fc21b40c78083
pathspec: allow to ignore SKIP_WORKTREE entries on index matching

Add a new enum parameter to `add_pathspec_matches_against_index()` and
`find_pathspecs_matching_against_index()`, allowing callers to specify
whether these function should attempt to match SKIP_WORKTREE entries or
not. This will be used in a future patch to make `git add` display a
warning when it is asked to update SKIP_WORKTREE entries.

Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/add.c
builtin/check-ignore.c
pathspec.c
pathspec.h