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

Re: git UI nit

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Dec 6, 2006, 14:46 UTC
Message-ID
<Pine.LNX.4.63.0612061546190.28348@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<el6jmt$mej$1@sea.gmane.org>
Hi,
On Wed, 6 Dec 2006, Han-Wen Nienhuys wrote:
Show 16 quoted lines
> 
> When merging changes into a dirty working copy, one may get 
> 
> ..
> Updating 62a005d..7bbd698
> Makefile: needs update
> README: needs update
> config.mak.in: needs update
> configure.ac: needs update
> fatal: Entry 'Makefile' not uptodate. Cannot merge.
> ..
> 
> 
> This is bad error message; "uptodate" suggests that Makefile is too old. 
> The problem is the reverse.  The Makefile has been
> edited and hence it is 'newer'.  
Something like this?

-- snip -- [PATCH] Replace "needs update" by "dirty; needs commit"

This should clarify why a merge was not even started.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
---
 read-cache.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/read-cache.c b/read-cache.c
index eae4745..0d22de2 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -721,7 +721,7 @@ int refresh_cache(unsigned int flags)
 			}
 			if (quiet)
 				continue;
-			printf("%s: needs update\n", ce->name);
+			printf("%s: dirty; needs commit\n", ce->name);
 			has_errors = 1;
 			continue;
Previous: Han-Wen NienhuysNext: Han-Wen Nienhuys
Message 2 of 8 in “git UI nit”
  1. Han-Wen NienhuysDec 6, 2006
  2. Johannes SchindelinDec 6, 2006
  3. Han-Wen NienhuysDec 6, 2006
  4. Johannes SchindelinDec 6, 2006
  5. Jakub NarebskiDec 6, 2006
  6. Han-Wen NienhuysDec 6, 2006
  7. Jakub NarebskiDec 6, 2006
  8. Han-Wen NienhuysDec 6, 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.