summaryrefslogtreecommitdiff
path: root/blame.c
diff options
context:
space:
mode:
authorLibravatar Derrick Stolee <dstolee@microsoft.com>2019-11-21 22:04:36 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-11-22 16:11:43 +0900
commitf6039a9423d042d61fb4cfccb395bd04c4bd5322 (patch)
treea985083a89d87ee18cc3d24a736468cdbaa7ff7c /blame.c
parentclone: add --sparse mode (diff)
downloadtgif-f6039a9423d042d61fb4cfccb395bd04c4bd5322.tar.xz
sparse-checkout: 'set' subcommand
The 'git sparse-checkout set' subcommand takes a list of patterns as arguments and writes them to the sparse-checkout file. Then, it updates the working directory using 'git read-tree -mu HEAD'. The 'set' subcommand will replace the entire contents of the sparse-checkout file. The write_patterns_and_update() method is extracted from cmd_sparse_checkout() to make it easier to implement 'add' and/or 'remove' subcommands in the future. If the core.sparseCheckout config setting is disabled, then enable the config setting in the worktree config. If we set the config this way and the sparse-checkout fails, then re-disable the config setting. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'blame.c')
0 files changed, 0 insertions, 0 deletions