diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-12-09 02:11:20 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-12-09 02:11:20 +0300 |
commit | 5dfb9764609afc295e05b5af8677aefa3dce9fa3 (patch) | |
tree | a2369b5d5eb6e8274544db9008483acd16c6784c /builtin | |
parent | 01b8886a62243c93cc57758bbaae08e11b09b9e1 (diff) | |
parent | 3bf97e12703d27ac1928f2551cc09bbf13597149 (diff) |
Merge branch 'ma/grep-init-default'
Code clean-up.
* ma/grep-init-default:
MyFirstObjectWalk: drop `init_walken_defaults()`
grep: copy struct in one fell swoop
grep: use designated initializers for `grep_defaults`
grep: don't set up a "default" repo for grep
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/grep.c | 1 | ||||
-rw-r--r-- | builtin/log.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/builtin/grep.c b/builtin/grep.c index e58e57504c..ca259af441 100644 --- a/builtin/grep.c +++ b/builtin/grep.c @@ -950,7 +950,6 @@ int cmd_grep(int argc, const char **argv, const char *prefix) OPT_END() }; - init_grep_defaults(the_repository); git_config(grep_cmd_config, NULL); grep_init(&opt, the_repository, prefix); diff --git a/builtin/log.c b/builtin/log.c index 08204e3196..bd6ff4f9f9 100644 --- a/builtin/log.c +++ b/builtin/log.c @@ -133,7 +133,6 @@ static int log_line_range_callback(const struct option *option, const char *arg, static void init_log_defaults(void) { - init_grep_defaults(the_repository); init_diff_ui_defaults(); decoration_style = auto_decoration_style(); |