public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses•org>
To: Andreas Ericsson <ae@op5•se>
Cc: Junio C Hamano <junkio@cox•net>, git@vger•kernel.org
Subject: Re: [RFC] git-remote
Date: Wed, 10 Jan 2007 13:13:20 -0500	[thread overview]
Message-ID: <20070110181320.GA20108@fieldses.org> (raw)
In-Reply-To: <45A35EED.5090105@op5.se>

On Tue, Jan 09, 2007 at 10:22:53AM +0100, Andreas Ericsson wrote:
> Junio C Hamano wrote:
> >"J. Bruce Fields" <bfields@fieldses•org> writes:
> >
> >>Would it make sense for "git add" to do the initial fetch as well?
> >
> >It would be handy.
> >
> >And perhaps we could make it the default but with a command line
> >override to help disconnected people.
> >
> 
> I'd rather do it the other way around ("--fetch" switch) and if that 
> wasn't supplied, tell the user that he should now run
> 
> 	git fetch $whatever_name_was_supplied
> 
> The reason being it's easier to fetch afterwards than it is to undo the 
> fetch if you didn't mean to do it straight away. Judging by its other 
> uses, I also wouldn't expect the command to actually work over the network.

Actually, "git remote show" also seems to require the network, as it
does an ls-remote.  That I found a little more surprising.

I don't think a user should be surprised that a command that takes a url
would require the network.  And although I could imagine uses for "git
remote add" when disconnected, I'd imagine by far the most common uses
would be where the user also wants to examine a remote branch
immediately.

--b.

      reply	other threads:[~2007-01-10 18:13 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-03 21:40 [RFC] git-remote Junio C Hamano
2007-01-03 22:05 ` Jakub Narebski
2007-01-05  3:02 ` Shawn O. Pearce
2007-01-05  3:07   ` Junio C Hamano
2007-01-05  3:17     ` Shawn O. Pearce
2007-01-05 12:59 ` Santi Béjar
2007-01-05 13:53   ` Johannes Schindelin
2007-01-05 19:53     ` Santi Béjar
2007-01-05 21:08       ` Carl Worth
2007-01-06  1:59         ` Junio C Hamano
2007-01-08 22:52           ` Carl Worth
2007-01-09  4:28 ` J. Bruce Fields
2007-01-09  5:48   ` Junio C Hamano
2007-01-09  5:50   ` Junio C Hamano
2007-01-09  9:22     ` Andreas Ericsson
2007-01-10 18:13       ` J. Bruce Fields [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=20070110181320.GA20108@fieldses.org \
    --to=bfields@fieldses$(echo .)org \
    --cc=ae@op5$(echo .)se \
    --cc=git@vger$(echo .)kernel.org \
    --cc=junkio@cox$(echo .)net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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