# [PATCH] git grep: use pager

1 messages from 2007-02-19 to 2007-02-19. Participants: Johannes Schindelin.
Thread: https://gitlist.dev/t/6881

## Johannes Schindelin, 2007-02-19 14:56

Subject: [PATCH] git grep: use pager
Message-ID: <Pine.LNX.4.63.0702191555400.22628@wbgn013.biozentrum.uni-wuerzburg.de>
URL: https://gitlist.dev/e/Pine.LNX.4.63.0702191555400.22628%40wbgn013.biozentrum.uni-wuerzburg.de

```

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
---
 git.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/git.c b/git.c
index a8fdae3..395a054 100644
--- a/git.c
+++ b/git.c
@@ -259,7 +259,7 @@ static void handle_internal_command(int argc, const char **argv, char **envp)
 		{ "fsck", cmd_fsck, RUN_SETUP },
 		{ "fsck-objects", cmd_fsck, RUN_SETUP },
 		{ "get-tar-commit-id", cmd_get_tar_commit_id },
-		{ "grep", cmd_grep, RUN_SETUP },
+		{ "grep", cmd_grep, RUN_SETUP | USE_PAGER },
 		{ "help", cmd_help },
 		{ "init", cmd_init_db },
 		{ "init-db", cmd_init_db },
-- 
1.5.0.1.2138.g7274

```
