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

Re: [PATCH] pull --rebase: exit early when the working directory is dirty

From
GBGeert Bosch <bosch@adacore.com>
Date
May 21, 2008, 15:11 UTC
Message-ID
<626F2244-15CE-481C-A8F5-D6744F06D46F@adacore.com>
In-Reply-To
<alpine.DEB.1.00.0805211230290.30431@racer>
On May 21, 2008, at 07:32, Johannes Schindelin wrote:
Show 7 quoted lines
> When rebasing fails during "pull --rebase", you cannot just clean up  
> the
> working directory and call "pull --rebase" again, since the remote  
> branch
> was already fetched.
>
> Therefore, die early when the working directory is dirty.

Much nicer indeed to die early on errors, as we also can generally give better error messages.

> +	die "refusing to pull with rebase: your working tree is not up-to- 
> date"
I thought we'd prefer saying:
               "refusing to pull with rebase: your working tree has  
local changes"
   -Geert
Previous: Jan Krüger
Message 4 of 4 in “pull --rebase: exit early when the working directory is dirty”
  1. pull --rebase: exit early when the working directory is dirtyJohannes Schindelin, May 21, 2008
  2. Andreas EricssonMay 21, 2008
  3. Jan KrügerMay 21, 2008
  4. Geert BoschMay 21, 2008

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.