git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git-svn: forward -q to git-rebase

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 12, 2012, 16:54 UTC
Message-ID
<7vd354jwss.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1339515815-10752-1-git-send-email-kusmabite@gmail.com>
Erik Faye-Lund <kusmabite@gmail.com> writes:
Show 16 quoted lines
> 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 <kusmabite@gmail.com>
> ---
>
> 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.

Show 15 quoted lines
>  git-svn.perl | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/git-svn.perl b/git-svn.perl
> index 0b074c4..34baa43 100755
> --- a/git-svn.perl
> +++ b/git-svn.perl
> @@ -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;
Previous: Erik Faye-LundNext: Erik Faye-Lund
Message 2 of 6 in “git-svn: forward -q to git-rebase”
  1. git-svn: forward -q to git-rebaseErik Faye-Lund, Jun 12, 2012
  2. Junio C HamanoJun 12, 2012
  3. Erik Faye-LundJun 12, 2012
  4. Erik Faye-LundJun 12, 2012
  5. Erik Faye-LundJun 12, 2012
  6. Eric WongJun 12, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.