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

Re: [PATCH] merge: default to @{upstream}

From
Martin von Zweigbergk <martin.von.zweigbergk@gmail.com>
Date
Jan 28, 2011, 21:41 UTC
Message-ID
<alpine.DEB.1.10.1101281633580.11103@debian>
In-Reply-To
<AANLkTimc92giAAJnzjv5Bq4f853xqEfLrgB=j+iRXPaf@mail.gmail.com>
On Fri, 28 Jan 2011, Bert Wesarg wrote:
Show 7 quoted lines
> On Fri, Jan 28, 2011 at 17:17, Felipe Contreras
> <felipe.contreras@gmail.com> wrote:
> > So 'git merge' is 'git merge @{upstream}' instead of 'git merge -h';
> > it's better to do something useful.
> 
> Nice idea. Could you have a look into git rebase, I think this could
> be applied there too.

I submitted an RFC patch for that a while ago [1]. I will soon send a re-roll of some rebase refactoring patches I have been working on (I have been busy at work and also waiting for 1.7.4 to be finished). I will then send an updated "default upstream" patch again on top of the refactoring patches.

And thanks for taking care of the merge case, Felipe. I'm still struggling with the part of Git written in C, so I'm glad you took that part.

> 
> Anyway, I think some high level sanity check won't harm. Ie. check if
> there is an upstream configured.

Will be done in the case of rebase at least (stolen from the implementation in git pull).

[1] http://thread.gmane.org/gmane.comp.version-control.git/161382/
Previous: Bert WesargNext: Miles Bader
Message 8 of 9 in “merge: default to @{upstream}”
  1. merge: default to @{upstream}Felipe Contreras, Jan 28, 2011
  2. Drew NorthupJan 28, 2011
  3. Felipe ContrerasJan 28, 2011
  4. Jonathan NiederJan 28, 2011
  5. Felipe ContrerasJan 28, 2011
  6. Jonathan NiederJan 30, 2011
  7. Bert WesargJan 28, 2011
  8. Martin von ZweigbergkJan 28, 2011
  9. Miles BaderJan 31, 2011

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.