From: "Tuncer Ayaz" <tuncer.ayaz@gmail.com>
To: "Junio C Hamano" <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Implement rebase -q to fix pull --rebase -q
Date: Wed, 3 Dec 2008 09:35:48 +0100 [thread overview]
Message-ID: <4ac8254d0812030035n52fde4b3s29c0f525e175f123@mail.gmail.com> (raw)
In-Reply-To: <7vr64pfyvg.fsf@gitster.siamese.dyndns.org>
On Wed, Dec 3, 2008 at 9:26 AM, Junio C Hamano <gitster@pobox.com> wrote:
> "Tuncer Ayaz" <tuncer.ayaz@gmail.com> writes:
>
>> I mainly use -q in automation where I only want output if something
>> goes wrong. Just like good old cp or mv do.
>> Do you think this is the wrong way to go?
>>
>>> How are you dealing with messages from the actual replaying of each local
>>> commit on top of what is fetched? In order to be able to tell where you
>>> are when one of them fail in conflicts, you cannot stay silent while doing
>>> so.
>>
>> Fair point.
>
> Ahh, ok, if this is for cron jobs, then it is understandable that:
>
> (1) You may want a successful "git pull" or "git pull --rebase" to be
> absolutely silent about what it did; and
>
> (2) A failed "git pull" and "git pull --rebase" that produces information
> other than the fact it failed would not help you, the receiver of a
> cron job report, very much. You would go to the repository when it
> fails, reset the mess away, and then do the pull or pull-rebase
> yourself manually anyway.
>
> If that is the motivation behind the series, I think you would really want
> to squelch output from "format-patch | am -3" pipeline.
You mean I should follow this path and produce a patch series instead?
> Another thing to consider is that, unlike simple single-operation commands
> such as "mv" or "cp" you mentioned, what "git pull" does is much more
> involved and has many different failure modes, so you cannot compare them
> fairly. Simple commands can have a single "quiet" level, but I have a
> feeling that there is a difference between "quiet mode" I expect when I am
> running "git pull" interactively and "quiet mode" I would want when I
We have the same expectation here and IDE writers also seem to expect that.
> would be driving "git pull" from a cron job. IOW, you probably would want
> something like "--really-quiet" mode.
Yeah, it gets messy and in the current codebase. I am also not sure whether
the effort/benefit ratio is good enough.
> I would write such a cron-job script to capture the log and send it only
> upon failure from the underlying command if I were doing this myself,
> though.
This is the way I do it now and I'm surprised I found no other simple way
than writing a wrapper script for it. At least not with vixie-cron.
next prev parent reply other threads:[~2008-12-03 8:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-03 4:06 [PATCH] Implement rebase -q to fix pull --rebase -q Tuncer Ayaz
2008-12-03 4:09 ` Tuncer Ayaz
2008-12-03 7:54 ` Junio C Hamano
2008-12-03 8:07 ` Tuncer Ayaz
2008-12-03 8:26 ` Junio C Hamano
2008-12-03 8:35 ` Tuncer Ayaz [this message]
2008-12-03 21:14 ` Junio C Hamano
2008-12-03 22:21 ` Tuncer Ayaz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ac8254d0812030035n52fde4b3s29c0f525e175f123@mail.gmail.com \
--to=tuncer.ayaz@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).