git UI nit
When merging changes into a dirty working copy, one may get
..
Updating 62a005d..7bbd698Makefile: 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'.
This message should say
Entry 'Makefile' is dirty.
Revert or commit changes before merging
Signature · 1 line
Han-Wen Nienhuys - [email protected] - http://www.xs4all.nl/~hanwen
Quoted 9 lines · Johannes Schindelin
Quoted 7 lines · Han-Wen Nienhuys
Johannes Schindelin escreveu:
Quoted 5 lines
} if (quiet) continue;read-cache.c +1
-1-printf ("%s: needs update\n" , ce->name); +printf ("%s: dirty; needs commit\n" , ce->name);
Quoted 3 lines
Quoted 1 line
Yes - I'd just mention revert as an option too.
Actually, I like it that short.
So why not simply use "%s: dirty\n"?
Quoted 4 lines
We had an email on this list, where the poster said he could not merge with Git. It turned out that the merge failed with conflicts, but he did not bother reading through the messages, apparently because they were too many.
Some of that stems from the "pipeline" model / implementation of git commands, where every separate stage spews it's own warning and error messages.
Signature · 3 lines
Jakub Narebski Warsaw, Poland ShadeHawk on #git
Johannes Schindelin escreveu:
Quoted 6 lines
Actually, I like it that short.
We had an email on this list, where the poster said he could not merge with Git. It turned out that the merge failed with conflicts, but he did not bother reading through the messages, apparently because they were too many.
good point.
Johannes Schindelin escreveu:
read-cache.c int refresh_cache(unsigned int flags) · line 724
Quoted 5 lines
read-cache.c +1
-1}if (quiet)continue ; -printf ("%s: needs update\n" , ce->name); +printf ("%s: dirty; needs commit\n" , ce->name);
Yes - I'd just mention revert as an option too.
Quoted 11 lines · Han-Wen Nienhuys
Jakub Narebski escreveu:
Quoted 10 lines
Quoted 8 lines · Johannes Schindelin
Quoted 6 lines · Han-Wen Nienhuys
Johannes Schindelin escreveu:
Quoted 5 lines
} if (quiet) continue;read-cache.c +1
-1-printf ("%s: needs update\n" , ce->name); +printf ("%s: dirty; needs commit\n" , ce->name);
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Quoted 1 line
Yes - I'd just mention revert as an option too.
Actually, I like it that short.
So why not simply use "%s: dirty\n"?
because a newbie doesn't know how to resolve that problem.
But there are [at least] two ways to resolve this:
commit or revert (reset).
Signature · 1 line
Jakub Narebski
Hi,
Quoted 8 lines · Han-Wen Nienhuys
Johannes Schindelin escreveu:
read-cache.c int refresh_cache(unsigned int flags) · line 724
Quoted 5 lines
read-cache.c +1
-1}if (quiet)continue ; -printf ("%s: needs update\n" , ce->name); +printf ("%s: dirty; needs commit\n" , ce->name);Yes - I'd just mention revert as an option too.
Actually, I like it that short.
We had an email on this list, where the poster said he could not merge with Git. It turned out that the merge failed with conflicts, but he did not bother reading through the messages, apparently because they were too many.
Ciao,
Dscho
Jakub Narebski escreveu:
Quoted 10 lines
Quoted 8 lines · Johannes Schindelin
Quoted 6 lines · Han-Wen Nienhuys
Johannes Schindelin escreveu:
Quoted 5 lines
} if (quiet) continue;read-cache.c +1
-1-printf ("%s: needs update\n" , ce->name); +printf ("%s: dirty; needs commit\n" , ce->name);
Quoted 4 lines
Quoted 2 lines
Quoted 1 line
Yes - I'd just mention revert as an option too.
Actually, I like it that short.
So why not simply use "%s: dirty\n"?
because a newbie doesn't know how to resolve that problem.
Signature · 1 line
Han-Wen Nienhuys - [email protected] - http://www.xs4all.nl/~hanwen
Hi,
Quoted 13 lines · Han-Wen Nienhuys
When merging changes into a dirty working copy, one may get
..
Updating 62a005d..7bbd698Makefile: needs update
README: needs update
config.mak.in: needs update
configure.ac: needs update
fatal: Entry 'Makefile' not uptodate. Cannot merge. ..
Quoted 3 lines
This is bad error message; "uptodate" suggests that
Makefileis too old. The problem is the reverse. TheMakefilehas 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.
---
read-cache.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
read-cache.c +1 -1
@@ -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 ;