summaryrefslogtreecommitdiff
path: root/contrib/completion/git-prompt.sh
diff options
context:
space:
mode:
authorLibravatar Derrick Stolee <dstolee@microsoft.com>2020-02-11 15:02:23 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-02-11 09:06:46 -0800
commit2631dc879d59aa08095bc4fb5bc9bcc491a787e9 (patch)
treec0afb9dc10413683f520aff4396c2e7d554d6b04 /contrib/completion/git-prompt.sh
parentsparse-checkout: extract pattern update from 'set' subcommand (diff)
downloadtgif-2631dc879d59aa08095bc4fb5bc9bcc491a787e9.tar.xz
sparse-checkout: create 'add' subcommand
When using the sparse-checkout feature, a user may want to incrementally grow their sparse-checkout pattern set. Allow adding patterns using a new 'add' subcommand. This is not much different from the 'set' subcommand, because we still want to allow the '--stdin' option and interpret inputs as directories when in cone mode and patterns otherwise. When in cone mode, we are growing the cone. This may actually reduce the set of patterns when adding directory A when A/B is already a directory in the cone. Test the different cases: siblings, parents, ancestors. When not in cone mode, we can only assume the patterns should be appended to the sparse-checkout file. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/completion/git-prompt.sh')
0 files changed, 0 insertions, 0 deletions