option -q not passed from "git commit" to "git gc --auto"
Hello,
It seems that when "git commit" is run with the "-q" option, there are still, from time to time, messages that get printed. With the French locale the message is:
Compression automatique du dépôt en tâche de fond pour optimiser les performances. Voir "git help gc" pour toute information sur le nettoyage manuel.
From what I could guess, this is due to the fact that "git commit" calls "git gc --auto", but does not propagate the "-q" option if present.
A similar problem was present some time ago with "git fetch" and was solved in the 2-line patch 6fceed3b . I guess that the same should be done for "git commit".
Regards,
Pierrick
Quoted 8 lines · Pierrick Gaudry
Hello,
It seems that when "git commit" is run with the "-q" option, there are still, from time to time, messages that get printed. With the French locale the message is:
Compression automatique du dépôt en tâche de fond pour optimiser les performances. Voir "git help gc" pour toute information sur le nettoyage manuel.
Quoted 6 lines
From what I could guess, this is due to the fact that "git commit" calls "git gc --auto", but does not propagate the "-q" option if present.
A similar problem was present some time ago with "git fetch" and was solved in the 2-line patch
6fceed3b. I guess that the same should be done for "git commit".
Yes, I think so. A quick search through the list archive turns up [1], which identifies and provides a patch for this issue. If I were reviewing that patch today, I'd suggest the following:
* break the change from a 'char **' to a 'struct argv_array' into a separate, preparatory patch.
* adjust the commit message of the second commit (which will only pass '-q' to the 'git-gc' sub-process) to indicate that there may be other locations
* fix those other locations that spawn 'git gc', if they exist, in a similar fashion
* in each of the previous two steps, add tests in the appropriate files in 't' to demonstrate that '-q' propagation works as expected.
I'm happy to do any and all of this, if you want, but you are also welcome to submit the patches yourself.
Quoted 2 lines
Regards,
Pierrick
Thanks,
Taylor
Quoted 27 lines · Taylor Blau
Quoted 8 lines · Pierrick Gaudry
Hello,
It seems that when "git commit" is run with the "-q" option, there are still, from time to time, messages that get printed. With the French locale the message is:
Compression automatique du dépôt en tâche de fond pour optimiser les performances. Voir "git help gc" pour toute information sur le nettoyage manuel.Quoted 6 lines
From what I could guess, this is due to the fact that "git commit" calls "git gc --auto", but does not propagate the "-q" option if present.
A similar problem was present some time ago with "git fetch" and was solved in the 2-line patch
6fceed3b. I guess that the same should be done for "git commit".Yes, I think so. A quick search through the list archive turns up [1], which identifies and provides a patch for this issue. If I were reviewing that patch today, I'd suggest the following:
* break the change from a 'char **' to a 'struct
argv_array' into a separate, preparatory patch.* adjust the commit message of the second commit (which will only pass '-q' to the 'git-gc' sub-process) to indicate that there may be other locations
Quoted 5 lines
* fix those other locations that spawn 'git gc', if they exist, in a similar fashion
* in each of the previous two steps, add tests in the appropriate files in 't' to demonstrate that '-q' propagation works as expected.
Junio identified a much better way to do this in the email below this one. Since it appears that there are multiple places that ignore '--quiet' when running 'git gc' as a sub-process, a helper function is certainly you want to be using.
Quoted 10 lines
I'm happy to do any and all of this, if you want, but you are also welcome to submit the patches yourself.
Quoted 2 lines
Regards,
PierrickThanks,
Taylor
Thanks,
Taylor
Quoted 13 lines · Taylor Blau
Quoted 12 lines · Taylor Blau
Quoted 11 lines · Pierrick Gaudry
Hello,
It seems that when "git commit" is run with the "-q" option, there are still, from time to time, messages that get printed. With the French locale the message is:
Compression automatique du dépôt en tâche de fond pour optimiser les performances. Voir "git help gc" pour toute information sur le nettoyage manuel.From what I could guess, this is due to the fact that "git commit" calls "git gc --auto", but does not propagate the "-q" option if present.
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
A similar problem was present some time ago with "git fetch" and was solved in the 2-line patch
6fceed3b. I guess that the same should be done for "git commit".Yes, I think so. A quick search through the list archive turns up [1], which identifies and provides a patch for this issue. If I were reviewing that patch today, I'd suggest the following:
Oh, [1] is an email from today. Clearly I am not finished reading my inbox yet. Sorry about that.
Quoted 24 lines
Quoted 7 lines
* break the change from a 'char **' to a 'struct
argv_array' into a separate, preparatory patch.* adjust the commit message of the second commit (which will only pass '-q' to the 'git-gc' sub-process) to indicate that there may be other locations
Quoted 5 lines
* fix those other locations that spawn 'git gc', if they exist, in a similar fashion
* in each of the previous two steps, add tests in the appropriate files in 't' to demonstrate that '-q' propagation works as expected.
Junio identified a much better way to do this in the email below this one. Since it appears that there are multiple places that ignore '--quiet' when running 'git gc' as a sub-process, a helper function is certainly you want to be using.
Quoted 6 lines
I'm happy to do any and all of this, if you want, but you are also welcome to submit the patches yourself.
Quoted 2 lines
Regards,
Pierrick
Quoted 6 lines
Quoted 4 lines
Thanks,
TaylorThanks,
Taylor
Thanks,
Taylor
Quoted 8 lines · Pierrick Gaudry
Hello,
It seems that when "git commit" is run with the "-q" option, there are still, from time to time, messages that get printed. With the French locale the message is:
Compression automatique du dépôt en tâche de fond pour optimiser les performances. Voir "git help gc" pour toute information sur le nettoyage manuel.
Quoted 6 lines
From what I could guess, this is due to the fact that "git commit" calls "git gc --auto", but does not propagate the "-q" option if present.
A similar problem was present some time ago with "git fetch" and was solved in the 2-line patch
6fceed3b. I guess that the same should be done for "git commit".
Hmph, once our minds are on this, we probably should see how widespread the issues would be before just "fixing" commit.
$ git grep -e 'gc.*,.*--auto' \*.c
builtin/am.c: const char *argv_gc_auto[] = {"gc", "--auto", NULL};
builtin/commit.c: const char *argv_gc_auto[] = {"gc", "--auto", NULL};
builtin/fetch.c: argv_array_pushl(&argv_gc_auto, "gc", "--auto", NULL);
builtin/merge.c: const char *argv_gc_auto[] = { "gc", "--auto", NULL };
builtin/rebase.c: const char *argv_gc_auto[] = { "gc", "--auto", NULL };
builtin/receive-pack.c: "gc", "--auto", "--quiet", NULL,It is quite clear that "git am --quiet" will ignore "--quiet" (there is no room to pass an extra argument to "gc --auto"). "merge" and "rebase" are in the same boat.
I'd rather not see a fix that mimicks 6fceed3b (fetch: silence git-gc if --quiet is given, 2014-08-16). Instead why not introduce a helper "int run_auto_gc(int quiet)" and use it consistently when we run the auto-gc?
An illustration to cover these (not even compile tested) to show what I mean and help anybody get started.
builtin/am.c | 3 +-- builtin/commit.c | 3 +-- builtin/merge.c | 3 +-- builtin/rebase.c | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-)
builtin/am.c +1 -2
@@ -1691,7 +1691,6 @@ static int do_interactive(struct am_state *state)*/ static void am_run (struct am_state *state,int resume) { -const char *argv_gc_auto[] = {"gc" ,"--auto" ,NULL };struct strbuf sb =STRBUF_INIT ;unlink (am_path (state,"dirtyindex" ));
@@ -1796,7 +1795,7 @@ static void am_run(struct am_state *state, int resume)if (!state->rebasing) {am_destroy (state);close_object_store (the_repository->objects); -run_command_v_opt (argv_gc_auto,RUN_GIT_CMD ); +run_gc_auto (state->quiet); } }
builtin/commit.c +1 -2
@@ -1494,7 +1494,6 @@ static int git_commit_config(const char *k, const char *v, void *cb)int cmd_commit (int argc,const char **argv,const char *prefix) { -const char *argv_gc_auto[] = {"gc" ,"--auto" ,NULL };static struct wt_status s;static struct option builtin_commit_options[] = {OPT__QUIET (&quiet,N_ ("suppress summary after successful commit" )),
@@ -1703,7 +1702,7 @@ int cmd_commit(int argc, const char **argv, const char *prefix)git_test_write_commit_graph_or_die ();repo_rerere (the_repository,0 ); -run_command_v_opt (argv_gc_auto,RUN_GIT_CMD ); +run_gc_auto (quiet);run_commit_hook (use_editor,get_index_file (),"post-commit" ,NULL );if (amend && !no_post_rewrite) {commit_post_rewrite (the_repository, current_head, &oid);
builtin/merge.c +1 -2
@@ -450,7 +450,6 @@ static void finish(struct commit *head_commit,if (verbosity >=0 && !merge_msg.len)printf (_ ("No merge message -- not updating HEAD\n" ));else { -const char *argv_gc_auto[] = {"gc" ,"--auto" ,NULL };update_ref (reflog_message.buf,"HEAD" , new_head, head,0 ,UPDATE_REFS_DIE_ON_ERR );/*
@@ -458,7 +457,7 @@ static void finish(struct commit *head_commit,* user should see them. */ close_object_store (the_repository->objects); -run_command_v_opt (argv_gc_auto,RUN_GIT_CMD ); +run_gc_auto (verbosity <0 ); } }if (new_head && show_diffstat) {
builtin/rebase.c +1 -2
@@ -737,7 +737,6 @@ static int rebase_write_basic_state(struct rebase_options *opts)static int finish_rebase (struct rebase_options *opts) {struct strbuf dir =STRBUF_INIT ; -const char *argv_gc_auto[] = {"gc" ,"--auto" ,NULL };int ret =0 ;delete_ref (NULL ,"REBASE_HEAD" ,NULL ,REF_NO_DEREF );
@@ -747,7 +746,7 @@ static int finish_rebase(struct rebase_options *opts)* We ignore errors in 'gc --auto', since the * user should see them. */ -run_command_v_opt (argv_gc_auto,RUN_GIT_CMD ); +run_auto_gc (!(opts->flags & (REBASE_NO_QUIET |REBASE_VERBOSE )));if (opts->type ==REBASE_MERGE ) {struct replay_opts replay =REPLAY_OPTS_INIT ;
Re* option -q not passed from "git commit" to "git gc --auto"
Quoted 2 lines · Junio C Hamano
An illustration to cover these (not even compile tested) to show what I mean and help anybody get started.
And this would be a good first step in the conversion.
-- >8 --
Subject: [PATCH] run_auto_gc(): extract a reusable helper
Earlier we taught "git fetch --quiet" to pass the "--quiet" option down to "gc --auto". This, however, is not limited to "fetch":
$ git grep -e 'gc.*--auto' \*.c
finds hits in "am", "commit", "merge", and "rebase".
As a preparatory step, let's introduce a helper function run_auto_gc(), that the caller can pass a boolean "quiet".
--- builtin/fetch.c | 10 ++-------- run-command.c | 13 +++++++++++++ run-command.h | 5 +++++ 3 files changed, 20 insertions(+), 8 deletions(-)
builtin/fetch.c +2 -8
@@ -1759,7 +1759,6 @@ int cmd_fetch(int argc, const char **argv, const char *prefix)struct remote *remote =NULL ;int result =0 ;int prune_tags_ok =1 ; -struct argv_array argv_gc_auto =ARGV_ARRAY_INIT ;packet_trace_identity ("fetch" );
@@ -1886,13 +1885,8 @@ int cmd_fetch(int argc, const char **argv, const char *prefix)close_object_store (the_repository->objects); -if (enable_auto_gc) { -argv_array_pushl (&argv_gc_auto,"gc" ,"--auto" ,NULL ); -if (verbosity <0 ) -argv_array_push (&argv_gc_auto,"--quiet" ); -run_command_v_opt (argv_gc_auto.argv,RUN_GIT_CMD ); -argv_array_clear (&argv_gc_auto); - } +if (enable_auto_gc) +run_auto_gc (verbosity <0 );return result; }
run-command.c +13 -0
@@ -1864,3 +1864,16 @@ int run_processes_parallel_tr2(int n, get_next_task_fn get_next_task,return result; } + +int run_auto_gc (int quiet) +{ +struct argv_array argv_gc_auto =ARGV_ARRAY_INIT ; +int status; + +argv_array_pushl (&argv_gc_auto,"gc" ,"--auto" ,NULL ); +if (quiet) +argv_array_push (&argv_gc_auto,"--quiet" ); + status =run_command_v_opt (argv_gc_auto.argv,RUN_GIT_CMD ); +argv_array_clear (&argv_gc_auto); +return status; +}
run-command.h +5 -0
@@ -218,6 +218,11 @@ LAST_ARG_MUST_BE_NULLint run_hook_le (const char *const *env,const char *name, ...);int run_hook_ve (const char *const *env,const char *name,va_list args); +/* +* Trigger an auto-gc +*/ +int run_auto_gc (int quiet); +#define RUN_COMMAND_NO_STDIN 1#define RUN_GIT_CMD 2/*If this is to be git sub-command */ #define RUN_COMMAND_STDOUT_TO_STDERR 4
PATCH 2/2 auto-gc: pass --quiet down from am, commit, merge and rebase
A handful of commands take the --quiet option for their own operation, but they forget to pass the option down when they invoke "git gc --auto" internally.
Teach these commands to do so using the run_gc_auto() helper we added earlier.
---
* And this is the earlier one, wrapped in a proper patch submission format, to conclude the two-patch series.
builtin/am.c | 3 +-- builtin/commit.c | 3 +-- builtin/merge.c | 3 +-- builtin/rebase.c | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-)
builtin/am.c +1 -2
@@ -1691,7 +1691,6 @@ static int do_interactive(struct am_state *state)*/ static void am_run (struct am_state *state,int resume) { -const char *argv_gc_auto[] = {"gc" ,"--auto" ,NULL };struct strbuf sb =STRBUF_INIT ;unlink (am_path (state,"dirtyindex" ));
@@ -1796,7 +1795,7 @@ static void am_run(struct am_state *state, int resume)if (!state->rebasing) {am_destroy (state);close_object_store (the_repository->objects); -run_command_v_opt (argv_gc_auto,RUN_GIT_CMD ); +run_gc_auto (state->quiet); } }
builtin/commit.c +1 -2
@@ -1488,7 +1488,6 @@ static int git_commit_config(const char *k, const char *v, void *cb)int cmd_commit (int argc,const char **argv,const char *prefix) { -const char *argv_gc_auto[] = {"gc" ,"--auto" ,NULL };static struct wt_status s;static struct option builtin_commit_options[] = {OPT__QUIET (&quiet,N_ ("suppress summary after successful commit" )),
@@ -1697,7 +1696,7 @@ int cmd_commit(int argc, const char **argv, const char *prefix)return 1 ;repo_rerere (the_repository,0 ); -run_command_v_opt (argv_gc_auto,RUN_GIT_CMD ); +run_gc_auto (quiet);run_commit_hook (use_editor,get_index_file (),"post-commit" ,NULL );if (amend && !no_post_rewrite) {commit_post_rewrite (the_repository, current_head, &oid);
builtin/merge.c +1 -2
@@ -447,7 +447,6 @@ static void finish(struct commit *head_commit,if (verbosity >=0 && !merge_msg.len)printf (_ ("No merge message -- not updating HEAD\n" ));else { -const char *argv_gc_auto[] = {"gc" ,"--auto" ,NULL };update_ref (reflog_message.buf,"HEAD" , new_head, head,0 ,UPDATE_REFS_DIE_ON_ERR );/*
@@ -455,7 +454,7 @@ static void finish(struct commit *head_commit,* user should see them. */ close_object_store (the_repository->objects); -run_command_v_opt (argv_gc_auto,RUN_GIT_CMD ); +run_gc_auto (verbosity <0 ); } }if (new_head && show_diffstat) {
builtin/rebase.c +1 -2
@@ -763,7 +763,6 @@ static int apply_autostash(struct rebase_options *opts)static int finish_rebase (struct rebase_options *opts) {struct strbuf dir =STRBUF_INIT ; -const char *argv_gc_auto[] = {"gc" ,"--auto" ,NULL };int ret =0 ;delete_ref (NULL ,"REBASE_HEAD" ,NULL ,REF_NO_DEREF );
@@ -773,7 +772,7 @@ static int finish_rebase(struct rebase_options *opts)* We ignore errors in 'gc --auto', since the * user should see them. */ -run_command_v_opt (argv_gc_auto,RUN_GIT_CMD ); +run_auto_gc (!(opts->flags & (REBASE_NO_QUIET |REBASE_VERBOSE )));if (opts->type ==REBASE_MERGE ) {struct replay_opts replay =REPLAY_OPTS_INIT ;
Signature · 1 line
2.26.2-561-g07d8ea56f2
Re: [PATCH 2/2] auto-gc: pass --quiet down from am, commit, merge and rebase
Quoted 2 lines · Junio C Hamano
Teach these commands to do so using the
run_gc_auto()helper we added earlier.
Heh, what was added was run_auto_gc(), so this patch would not work well with the previous one.
I'll send out a fixed one sometime later today.
cover Pass down "--quiet" to "gc --auto"
In reply to Pierrick GaudryA handful commands take "--quiet" from their command line, but forgets to pass it down, when they trigger an auto gc, to the "git gc --auto" they internally invoke.
Back in 1991006c (fetch: convert argv_gc_auto to struct argv_array, 2014-08-16), we patched "git fetch" but seems to have forgotten doing the same for "git merge". Since then, rewrite of "git am" and "git rebase" in C spread the same problem into two more codepaths.
Let's clean them up once and for all.
Junio C Hamano (2):
run_auto_gc(): extract a reusable helper
auto-gc: pass --quiet down from am, commit, merge and rebase
builtin/am.c | 3 +-- builtin/commit.c | 3 +-- builtin/fetch.c | 10 ++-------- builtin/merge.c | 3 +-- builtin/rebase.c | 3 +-- run-command.c | 13 +++++++++++++ run-command.h | 5 +++++ 7 files changed, 24 insertions(+), 16 deletions(-)
Signature · 1 line
2.26.2-561-g07d8ea56f2
PATCH 1/2 auto-gc: extract a reusable helper from "git fetch"
Back in 1991006c (fetch: convert argv_gc_auto to struct argv_array, 2014-08-16), we taught "git fetch --quiet" to pass the "--quiet" option down to "gc --auto". This issue, however, is not limited to "fetch":
$ git grep -e 'gc.*--auto' \*.c
finds hits in "am", "commit", "merge", and "rebase" and these commands do not pass "--quiet" down to "gc --auto" when they themselves are told to be quiet.
As a preparatory step, let's introduce a helper function run_auto_gc(), that the caller can pass a boolean "quiet", and redo the fix to "git fetch" using the helper.
--- builtin/fetch.c | 10 ++-------- run-command.c | 13 +++++++++++++ run-command.h | 5 +++++ 3 files changed, 20 insertions(+), 8 deletions(-)
builtin/fetch.c +2 -8
@@ -1759,7 +1759,6 @@ int cmd_fetch(int argc, const char **argv, const char *prefix)struct remote *remote =NULL ;int result =0 ;int prune_tags_ok =1 ; -struct argv_array argv_gc_auto =ARGV_ARRAY_INIT ;packet_trace_identity ("fetch" );
@@ -1886,13 +1885,8 @@ int cmd_fetch(int argc, const char **argv, const char *prefix)close_object_store (the_repository->objects); -if (enable_auto_gc) { -argv_array_pushl (&argv_gc_auto,"gc" ,"--auto" ,NULL ); -if (verbosity <0 ) -argv_array_push (&argv_gc_auto,"--quiet" ); -run_command_v_opt (argv_gc_auto.argv,RUN_GIT_CMD ); -argv_array_clear (&argv_gc_auto); - } +if (enable_auto_gc) +run_auto_gc (verbosity <0 );return result; }
run-command.c +13 -0
@@ -1864,3 +1864,16 @@ int run_processes_parallel_tr2(int n, get_next_task_fn get_next_task,return result; } + +int run_auto_gc (int quiet) +{ +struct argv_array argv_gc_auto =ARGV_ARRAY_INIT ; +int status; + +argv_array_pushl (&argv_gc_auto,"gc" ,"--auto" ,NULL ); +if (quiet) +argv_array_push (&argv_gc_auto,"--quiet" ); + status =run_command_v_opt (argv_gc_auto.argv,RUN_GIT_CMD ); +argv_array_clear (&argv_gc_auto); +return status; +}
run-command.h +5 -0
@@ -218,6 +218,11 @@ LAST_ARG_MUST_BE_NULLint run_hook_le (const char *const *env,const char *name, ...);int run_hook_ve (const char *const *env,const char *name,va_list args); +/* +* Trigger an auto-gc +*/ +int run_auto_gc (int quiet); +#define RUN_COMMAND_NO_STDIN 1#define RUN_GIT_CMD 2/*If this is to be git sub-command */ #define RUN_COMMAND_STDOUT_TO_STDERR 4
Signature · 1 line
2.26.2-561-g07d8ea56f2
PATCH 2/2 auto-gc: pass --quiet down from am, commit, merge and rebase
In reply to Junio C HamanoThese commands take the --quiet option for their own operation, but they forget to pass the option down when they invoke "git gc --auto" internally.
Teach them to do so using the run_auto_gc() helper we added in the previous step.
--- builtin/am.c | 3 +-- builtin/commit.c | 3 +-- builtin/merge.c | 3 +-- builtin/rebase.c | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-)
builtin/am.c +1 -2
@@ -1691,7 +1691,6 @@ static int do_interactive(struct am_state *state)*/ static void am_run (struct am_state *state,int resume) { -const char *argv_gc_auto[] = {"gc" ,"--auto" ,NULL };struct strbuf sb =STRBUF_INIT ;unlink (am_path (state,"dirtyindex" ));
@@ -1796,7 +1795,7 @@ static void am_run(struct am_state *state, int resume)if (!state->rebasing) {am_destroy (state);close_object_store (the_repository->objects); -run_command_v_opt (argv_gc_auto,RUN_GIT_CMD ); +run_auto_gc (state->quiet); } }
builtin/commit.c +1 -2
@@ -1488,7 +1488,6 @@ static int git_commit_config(const char *k, const char *v, void *cb)int cmd_commit (int argc,const char **argv,const char *prefix) { -const char *argv_gc_auto[] = {"gc" ,"--auto" ,NULL };static struct wt_status s;static struct option builtin_commit_options[] = {OPT__QUIET (&quiet,N_ ("suppress summary after successful commit" )),
@@ -1697,7 +1696,7 @@ int cmd_commit(int argc, const char **argv, const char *prefix)return 1 ;repo_rerere (the_repository,0 ); -run_command_v_opt (argv_gc_auto,RUN_GIT_CMD ); +run_auto_gc (quiet);run_commit_hook (use_editor,get_index_file (),"post-commit" ,NULL );if (amend && !no_post_rewrite) {commit_post_rewrite (the_repository, current_head, &oid);
builtin/merge.c +1 -2
@@ -447,7 +447,6 @@ static void finish(struct commit *head_commit,if (verbosity >=0 && !merge_msg.len)printf (_ ("No merge message -- not updating HEAD\n" ));else { -const char *argv_gc_auto[] = {"gc" ,"--auto" ,NULL };update_ref (reflog_message.buf,"HEAD" , new_head, head,0 ,UPDATE_REFS_DIE_ON_ERR );/*
@@ -455,7 +454,7 @@ static void finish(struct commit *head_commit,* user should see them. */ close_object_store (the_repository->objects); -run_command_v_opt (argv_gc_auto,RUN_GIT_CMD ); +run_auto_gc (verbosity <0 ); } }if (new_head && show_diffstat) {
builtin/rebase.c +1 -2
@@ -763,7 +763,6 @@ static int apply_autostash(struct rebase_options *opts)static int finish_rebase (struct rebase_options *opts) {struct strbuf dir =STRBUF_INIT ; -const char *argv_gc_auto[] = {"gc" ,"--auto" ,NULL };int ret =0 ;delete_ref (NULL ,"REBASE_HEAD" ,NULL ,REF_NO_DEREF );
@@ -773,7 +772,7 @@ static int finish_rebase(struct rebase_options *opts)* We ignore errors in 'gc --auto', since the * user should see them. */ -run_command_v_opt (argv_gc_auto,RUN_GIT_CMD ); +run_auto_gc (!(opts->flags & (REBASE_NO_QUIET |REBASE_VERBOSE )));if (opts->type ==REBASE_MERGE ) {struct replay_opts replay =REPLAY_OPTS_INIT ;
Signature · 1 line
2.26.2-561-g07d8ea56f2
Re: [PATCH 2/2] auto-gc: pass --quiet down from am, commit, merge and rebase
Hi Junio,
Quoted 7 lines · Junio C Hamano
These commands take the --quiet option for their own operation, but they forget to pass the option down when they invoke "git gc --auto" internally.
Teach them to do so using the
run_auto_gc()helper we added in the previous step.
Quoted 7 lines
Signed-off-by Junio C Hamano <[email protected]>--- builtin/am.c | 3 +-- builtin/commit.c | 3 +-- builtin/merge.c | 3 +-- builtin/rebase.c | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-)
Very nicely done. Sorry that these took me a little while to look at. This and the patch before it both have my:
Thanks,
Taylor
Re: [PATCH 2/2] auto-gc: pass --quiet down from am, commit, merge and rebase
Quoted 18 lines · Taylor Blau
Hi Junio,
Quoted 7 lines · Junio C Hamano
These commands take the --quiet option for their own operation, but they forget to pass the option down when they invoke "git gc --auto" internally.
Teach them to do so using the
run_auto_gc()helper we added in the previous step.Quoted 7 lines
Signed-off-by Junio C Hamano <[email protected]>--- builtin/am.c | 3 +-- builtin/commit.c | 3 +-- builtin/merge.c | 3 +-- builtin/rebase.c | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-)
Quoted 7 lines
Very nicely done. Sorry that these took me a little while to look at. This and the patch before it both have my:
Reviewed-by Taylor Blau <[email protected]>Thanks,
Taylor
Thanks.