[RFC PATCH 0/3] grep: honor sparse checkout and add option to ignore it

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This series is based on the discussions we had some months ago[1], about
git-grep not currently honoring the sparsity patterns. To summarize, the
idea is that, since a sparse checkout is used to limit the set of files
in which users are interested, git-grep should, by default, only search
within this boundary.  But it would be good to also have an
'--ignore-sparsity' option, to restore the old behavior when needed, as
there are also valid use cases for it. The following patches seek to
address these suggestions. The first patch is not really related, it is
a cleanup, used by the third one.

[1]: https://lore.kernel.org/git/CAHd-oW7e5qCuxZLBeVDq+Th3E+E4+P8=WzJfK8WcG2yz=n_nag@xxxxxxxxxxxxxx/t/#u

Matheus Tavares (3):
  doc: grep: unify info on configuration variables
  grep: honor sparse checkout patterns
  grep: add option to ignore sparsity patterns

 Documentation/config/grep.txt    |  10 ++-
 Documentation/git-grep.txt       |  40 +++-------
 builtin/grep.c                   |  36 ++++++++-
 t/t7011-skip-worktree-reading.sh |   9 ---
 t/t7817-grep-sparse-checkout.sh  | 130 +++++++++++++++++++++++++++++++
 5 files changed, 180 insertions(+), 45 deletions(-)
 create mode 100755 t/t7817-grep-sparse-checkout.sh

-- 
2.25.1




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux