diff options
| author | Junio C Hamano <gitster@pobox.com> | 2007-12-05 17:49:13 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2007-12-05 17:49:13 -0800 |
| commit | 27ee189163070f53a87e033171a45520f70b242e (patch) | |
| tree | b1c6bba0f03a0ab8cef38f991f2af14a408599b3 /builtin-grep.c | |
| parent | 3b78959ece0212225ae71efbdf2c1a2183e532f5 (diff) | |
| parent | f23272f3fd84fd37d97917f37233fbf01deb32b4 (diff) | |
| download | git-27ee189163070f53a87e033171a45520f70b242e.tar.gz | |
Merge branch 'maint'
* maint:
git-am -i: report rewritten title
git grep shows the same hit repeatedly for unmerged paths
Do check_repository_format() early (re-fix)
Do check_repository_format() early
Add missing inside_work_tree setting in setup_git_directory_gently
Diffstat (limited to 'builtin-grep.c')
| -rw-r--r-- | builtin-grep.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/builtin-grep.c b/builtin-grep.c index bbf747fc7b..f1ff8dc556 100644 --- a/builtin-grep.c +++ b/builtin-grep.c @@ -343,12 +343,12 @@ static int external_grep(struct grep_opt *opt, const char **paths, int cached) memcpy(name + 2, ce->name, len + 1); } argv[argc++] = name; - if (argc < MAXARGS) - continue; - status = flush_grep(opt, argc, nr, argv, &kept); - if (0 < status) - hit = 1; - argc = nr + kept; + if (MAXARGS <= argc) { + status = flush_grep(opt, argc, nr, argv, &kept); + if (0 < status) + hit = 1; + argc = nr + kept; + } if (ce_stage(ce)) { do { i++; |
