git/builtin
Nguyễn Thái Ngọc Duy dba093ddc0 grep: use grep_opt->repo instead of explict repo argument
This command is probably the first one that operates on a repository
other than the_repository, in f9ee2fcdfa (grep: recurse in-process
using 'struct repository' - 2017-08-02). An explicit 'struct
repository *' was added in that commit to pass around the repository
that we're supposed to grep from.

Since 38bbc2ea39 (grep.c: remove implicit dependency on the_index -
2018-09-21). 'struct grep_opt *' carries in itself a repository
parameter for grepping. We should now be able to reuse grep_opt to
hold the submodule repo instead of a separate argument, which is just
room for mistakes.

While at there, use the right reference instead of the_repository and
the_index in this code. I was a bit careless in my attempt to kick
the_repository / the_index out of library code. It's normally safe to
just stick the_repository / the_index in bultin/ code, but it's not
the case for grep.

Reviewed-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2019-01-14 12:13:04 -08:00
..
2019-01-04 13:33:33 -08:00
2019-01-04 13:33:34 -08:00
2018-05-13 10:45:05 +09:00
2019-01-04 13:33:33 -08:00
2018-10-19 13:34:02 +09:00
2018-10-19 13:34:02 +09:00
2018-10-19 13:34:02 +09:00
2019-01-04 13:33:33 -08:00
2018-10-16 16:16:02 +09:00
2018-10-26 14:22:13 +09:00
2018-11-13 22:37:27 +09:00
2019-01-04 13:33:33 -08:00
2018-05-30 14:04:05 +09:00
2019-01-04 13:33:33 -08:00
2019-01-04 13:33:33 -08:00
2018-08-20 15:31:40 -07:00
2019-01-04 13:33:33 -08:00
2019-01-04 13:33:33 -08:00
2018-10-19 13:34:02 +09:00
2019-01-04 13:33:33 -08:00
2019-01-04 13:33:33 -08:00
2019-01-04 13:33:31 -08:00
2019-01-04 13:33:31 -08:00
2019-01-04 13:33:33 -08:00
2019-01-04 13:33:33 -08:00
2019-01-04 13:33:33 -08:00
2018-08-29 11:32:49 -07:00
2018-08-27 14:33:43 -07:00
2018-03-15 12:01:08 -07:00
2018-05-29 00:28:22 +09:00