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

Re: [PATCH] git-fetch: Allow branch."branchname".remote=.

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Oct 13, 2006, 12:53 UTC
Message-ID
<Pine.LNX.4.63.0610131448390.14200@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<ego1ea$tsn$1@sea.gmane.org>
Hi,
On Fri, 13 Oct 2006, Jakub Narebski wrote:
Show 9 quoted lines
> Johannes Schindelin wrote:
> 
> > There is a subtle problem here. Up until now, "remote" meant a short cut. 
> > You either had a file with that name in .git/remotes/ or .git/branches, or 
> > an entry in the config (remote.<name>.url).
> 
> Not exactly. "git-pull . <branch>" and "git-peek-remote ." meant use
> _current_ repository. "." as remote name means "current", i.e. local 
> repository.
>From Documentation/git-pull.txt:
	SYNOPSIS
	--------
	'git-pull' <options> <repository> <refspec>...

It says "repository", not "remote". As for the name "git-peek-remote": yes, it is a short cut for "remote repository".

The thing is, if you say you pull "from a remote", then it is not sufficient to specify just a URL of a repository. You also have to specify a branch.

For git-peek-remote and git-ls-remote, you only need a URL.

If you mix the usage, people get as confused as with the terms "pull", "update" and "merge".

Ciao, Dscho

Previous: Jakub NarebskiNext: Jakub Narebski
Message 6 of 7 in “git-fetch: Allow branch."branchname".remote=.”
  1. git-fetch: Allow branch."branchname".remote=.Santi Béjar, Oct 13, 2006
  2. Junio C HamanoOct 13, 2006
  3. SantiOct 13, 2006
  4. Johannes SchindelinOct 13, 2006
  5. Jakub NarebskiOct 13, 2006
  6. Johannes SchindelinOct 13, 2006
  7. Jakub NarebskiOct 13, 2006

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.