From: Owen Taylor <otaylor@redhat.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: Daniel Barkalow <barkalow@iabervon.org>, git@vger.kernel.org
Subject: Re: Patches for git-push --confirm and --show-subjects
Date: Tue, 15 Sep 2009 07:50:32 -0400 [thread overview]
Message-ID: <1253015432.11581.135.camel@localhost.localdomain> (raw)
In-Reply-To: <7v1vm892ow.fsf@alter.siamese.dyndns.org>
On Mon, 2009-09-14 at 22:50 -0700, Junio C Hamano wrote:
> You might not see a "policy" in your approach, but it makes some troubling
> hardcoded policy decisions. Here are a few examples of what your patch
> decides, and makes it harder for other people to build on (rather, "around):
>
> - We support only interactive validation (confirmation). If you want to
> have an unattended validation scheme, there is no way to enhance the
> mechanism this patch adds to do so. You instead need to add yet
> another command line option and hook into the same place as this patch
> touches.
It seems like the bulk of any patch is going to be creating a clean
position in the code to do confirmation.
> - We assume "git push" is run from terminal, and the only kind of
> interactive validation we support is via typed confirmation from a line
> terminal "[Y/n]?" If you want to run "git push" from a GUI frontend
> and have the user interact with a dialog window popped up separately,
> you are also out of luck.
That's an interesting situation to consider. How do you see a pre-push
hook being used for that?
> - We assume it is good enough to have various built-in presentations of
> supporting information while asking for confirmations; there is no way
> for casual end users to customize and enhance it.
A shell script that duplicates the display logic from transport.c while
interleaving nicely abbreviated bits of log will be on the complex side.
Is forking and modifying such a script going to be approachable for
casual end users?
- Owen
next prev parent reply other threads:[~2009-09-15 11:51 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-13 23:31 Patches for git-push --confirm and --show-subjects Owen Taylor
2009-09-13 23:31 ` [PATCH 1/4] push: add --confirm option to ask before sending updates Owen Taylor
2009-09-13 23:31 ` [PATCH 2/4] push: allow configuring default for --confirm Owen Taylor
2009-09-13 23:31 ` [PATCH 3/4] push: add --show-subjects option to show commit synopsis Owen Taylor
2009-09-13 23:31 ` [PATCH 4/4] push: allow configuring default for --show-subjects Owen Taylor
2009-09-14 0:47 ` Patches for git-push --confirm and --show-subjects Junio C Hamano
2009-09-14 0:53 ` Junio C Hamano
2009-09-14 2:35 ` Owen Taylor
2009-09-14 22:21 ` Daniel Barkalow
2009-09-14 23:18 ` Owen Taylor
2009-09-15 0:46 ` Junio C Hamano
2009-09-15 2:38 ` Owen Taylor
2009-09-15 5:50 ` Junio C Hamano
2009-09-15 11:50 ` Owen Taylor [this message]
2009-09-15 0:55 ` Daniel Barkalow
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=1253015432.11581.135.camel@localhost.localdomain \
--to=otaylor@redhat.com \
--cc=barkalow@iabervon.org \
--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).