From: Alex Riesen <raa.lkml@gmail.com>
To: Steffen Prohaska <prohaska@zib.de>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: How to figure out what 'git push' would do?
Date: Mon, 6 Aug 2007 00:09:02 +0200 [thread overview]
Message-ID: <20070805220902.GB3159@steel.home> (raw)
In-Reply-To: <515E28B6-85AF-4379-870A-CFECF19B74DE@zib.de>
Steffen Prohaska, Sun, Aug 05, 2007 21:56:37 +0200:
> >
> > $ git fetch
> > $ gitk local..REPO/master
> >
>
> That applies only for a single branch. If I prepared a couple of
> branches for pushing and somehow want to double check what I prepared,
> 'git push --dry-run' would be quite handy. I know how to handle the
> situation and could write a custom script that does all necessary
> checks. But I haven't found an out-of-the-box solution for double
> checking right before 'git push'
Well, you can do gitk local1..REPO/remote1 local2..REPO/remote2,
of course, but yes, there is not out-of-the-box solution.
And a straight-forward implementation of "git-push --dry-run" doesn't
look simple... The remote sides git-receive-pack still have to be
called for any useful information, like the references updated and the
SHA-1s they get. IOW, if you can update your system easily to support
--dry-run, it still does not mean the server admin will do that just
as readily. And AFAICS, receive-pack dies if given a parameter it
does not know (it dies on every command line argument which begins
with "-", as it looks). Maybe we should change that first for a very
slow start...
It is simplier to modify git-ls-remote of git-remote to just compare
reference on local and remote side.
prev parent reply other threads:[~2007-08-05 22:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-05 11:37 How to figure out what 'git push' would do? Steffen Prohaska
2007-08-05 11:42 ` David Kastrup
2007-08-05 17:33 ` Alex Riesen
2007-08-05 17:45 ` Julian Phillips
2007-08-05 19:56 ` Steffen Prohaska
2007-08-05 22:09 ` Alex Riesen [this message]
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=20070805220902.GB3159@steel.home \
--to=raa.lkml@gmail.com \
--cc=git@vger.kernel.org \
--cc=prohaska@zib.de \
/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).