Files
git/builtin
Jonathan Tan 6856077ab0 grep: remove "repo" arg from non-supporting funcs
As part of commit f9ee2fcdfa ("grep: recurse in-process using 'struct
repository'", 2017-08-02), many functions in builtin/grep.c were
converted to also take "struct repository *" arguments. Among them were
grep_object() and grep_objects().

However, at least grep_objects() was converted incompletely - it calls
gitmodules_config_oid(), which references the_repository.

But it turns out that the conversion was extraneous anyway - there has
been no user-visible effect - because grep_objects() is never invoked
except with the_repository. This is because grepping through objects
cannot be done recursively into submodules.

Revert the changes to grep_objects() and grep_object() (which conversion
is also extraneous) to show that both these functions do not support
repositories other than the_repository.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Stefan Beller <sbeller@google.com>
Reviewed-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2018-03-29 09:44:50 -07:00
..
2017-11-27 11:06:37 +09:00
2017-10-06 10:07:18 +09:00
2017-12-27 11:16:25 -08:00
2017-06-24 14:28:41 -07:00
2018-01-23 13:16:36 -08:00
2017-11-18 12:31:29 +09:00
2017-10-07 16:27:55 +09:00
2017-09-25 15:24:07 +09:00
2018-01-23 13:16:37 -08:00
2017-11-21 14:07:50 +09:00
2017-06-24 14:28:41 -07:00
2017-12-27 11:16:29 -08:00
2017-08-26 22:55:09 -07:00
2018-02-13 13:39:03 -08:00
2017-12-13 13:28:54 -08:00
2017-11-18 12:31:29 +09:00
2017-12-08 09:52:42 -08:00
2017-12-27 11:16:29 -08:00
2018-02-13 13:39:04 -08:00
2017-12-13 11:15:14 -08:00
2017-08-22 10:29:03 -07:00
2017-12-27 11:16:29 -08:00
2017-11-06 14:24:27 +09:00
2017-11-21 14:07:50 +09:00
2017-06-24 14:28:41 -07:00