git-svn: forward -q to git-rebase
PATCH 1/1 git-svn: forward -q to git-rebase
When calling "git svn rebase -q", we still get the message "Current branch BRANCHNAME is up to date." from git-rebase, which isn't quite as quiet as we could be.
Fix this by forwarding the -q flag to git-rebase.
---
I just set up a cronjob that did a "git svn rebase -q", and noticed it triggered cron to send me an e-mail every time.
Since I'm not really interested in getting an e-mail every time the script does nothing, but I'd like the option to get an e-mail whenever it does something useful, perhaps something like this can benefit other people as well?
git-svn.perl | 1 + 1 file changed, 1 insertion(+)
git-svn.perl +1 -0
@@ -1590,6 +1590,7 @@ sub cmd_gc { sub rebase_cmd { my @cmd = qw/rebase/; push @cmd, '-v' if $_verbose; + push @cmd, '-q' if $_q; push @cmd, qw/--merge/ if $_merge; push @cmd, "--strategy=$_strategy" if $_strategy; push @cmd, "--preserve-merges" if $_preserve_merges;
Signature · 1 line
1.7.11.rc2.5.g68f532f.dirty
Quoted 8 lines · Erik Faye-Lund
When calling "git svn rebase -q", we still get the message "Current branch BRANCHNAME is up to date." from git-rebase, which isn't quite as quiet as we could be.
Fix this by forwarding the -q flag to git-rebase.
Signed-off-by Erik Faye-Lund <[email protected]>---
Looks good to me.
Also pushed to "master" of git://bogomips.org/git-svn
Quoted 9 lines · Erik Faye-Lund
When calling "git svn rebase -q", we still get the message "Current branch BRANCHNAME is up to date." from git-rebase, which isn't quite as quiet as we could be.
Fix this by forwarding the -q flag to git-rebase.
Signed-off-by Erik Faye-Lund <[email protected]>---
Quoted 7 lines
I just set up a cronjob that did a "git svn rebase -q", and noticed it triggered cron to send me an e-mail every time.
Since I'm not really interested in getting an e-mail every time the script does nothing, but I'd like the option to get an e-mail whenever it does something useful, perhaps something like this can benefit other people as well?
If it matches what you would get from "git pull -q" run in a cronjob, I would say that is a sensible change to make.
Quoted 15 lines
git-svn.perl | 1 + 1 file changed, 1 insertion(+)git-svn.perl +1
-0@@ -1590,6 +1590,7 @@ sub cmd_gc { sub rebase_cmd { my @cmd = qw/rebase/; push @cmd, '-v' if $_verbose; + push @cmd, '-q' if $_q; push @cmd, qw/--merge/ if $_merge; push @cmd, "--strategy=$_strategy" if $_strategy; push @cmd, "--preserve-merges" if $_preserve_merges;
Quoted 14 lines · Junio C Hamano
Quoted 12 lines · Erik Faye-Lund
When calling "git svn rebase -q", we still get the message "Current branch BRANCHNAME is up to date." from git-rebase, which isn't quite as quiet as we could be.
Fix this by forwarding the -q flag to git-rebase.
Signed-off-by Erik Faye-Lund <[email protected]>---
I just set up a cronjob that did a "git svn rebase -q", and noticed it triggered cron to send me an e-mail every time.
Quoted 7 lines
Quoted 4 lines
Since I'm not really interested in getting an e-mail every time the script does nothing, but I'd like the option to get an e-mail whenever it does something useful, perhaps something like this can benefit other people as well?
If it matches what you would get from "git pull -q" run in a cronjob, I would say that is a sensible change to make.
Seems like it to me in my tests, yeah.
Quoted 20 lines · Erik Faye-Lund
Quoted 19 lines · Junio C Hamano
Quoted 16 lines · Erik Faye-Lund
When calling "git svn rebase -q", we still get the message "Current branch BRANCHNAME is up to date." from git-rebase, which isn't quite as quiet as we could be.
Fix this by forwarding the -q flag to git-rebase.
Signed-off-by Erik Faye-Lund <[email protected]>---
I just set up a cronjob that did a "git svn rebase -q", and noticed it triggered cron to send me an e-mail every time.
Since I'm not really interested in getting an e-mail every time the script does nothing, but I'd like the option to get an e-mail whenever it does something useful, perhaps something like this can benefit other people as well?
Quoted 4 lines
Quoted 2 lines
If it matches what you would get from "git pull -q" run in a cronjob, I would say that is a sensible change to make.
Seems like it to me in my tests, yeah.
Hm, but not the same as "git pull --rebase -q", as git-pull.sh doesn't forward $verbosity to "git rebase" either. It DOES pass it to "git merge", though... Which puzzles me a bit.
Quoted 21 lines · Erik Faye-Lund
Quoted 20 lines · Erik Faye-Lund
Quoted 19 lines · Junio C Hamano
Quoted 16 lines · Erik Faye-Lund
When calling "git svn rebase -q", we still get the message "Current branch BRANCHNAME is up to date." from git-rebase, which isn't quite as quiet as we could be.
Fix this by forwarding the -q flag to git-rebase.
Signed-off-by Erik Faye-Lund <[email protected]>---
I just set up a cronjob that did a "git svn rebase -q", and noticed it triggered cron to send me an e-mail every time.
Since I'm not really interested in getting an e-mail every time the script does nothing, but I'd like the option to get an e-mail whenever it does something useful, perhaps something like this can benefit other people as well?
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
If it matches what you would get from "git pull -q" run in a cronjob, I would say that is a sensible change to make.
Seems like it to me in my tests, yeah.
Hm, but not the same as "git pull --rebase -q", as
git-pull.shdoesn't forward $verbosity to "git rebase" either.
The obvious fix to that (if we decide it needs fixing, that is), is this:
git-pull.sh +1 -1
@@ -278,7 +278,7 @@ fi merge_name=$(git fmt-merge-msg $log_arg <"$GIT_DIR/FETCH_HEAD") || exit case "$rebase" in true) - eval="git-rebase $diffstat $strategy_args $merge_args" + eval="git-rebase $diffstat $strategy_args $merge_args $verbosity" eval="$eval --onto $merge_head ${oldremoteref:-$merge_head}" ;; *)