forked from git/git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RPC] grep: introduce --scope option
Because we may want to restrict grep's file scope to sparse specification, Apply the --scope option we implemented in diff to grep as well. `--scope=sparse` mean that the search file scope restrict to sparse specification when we grep something in commit history, and `--scope=all` mean that the search file scope will be full-tree. Note that `--scope` option only oly takes effect when "git grep <tree>" is specified. Signed-off-by: ZheNing Hu <adlternative@gmail.com>
- Loading branch information
1 parent
115d128
commit 1d1b661
Showing
4 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters