* git UI nit
@ 2006-12-06 14:22 Han-Wen Nienhuys
2006-12-06 14:46 ` Johannes Schindelin
0 siblings, 1 reply; 8+ messages in thread
From: Han-Wen Nienhuys @ 2006-12-06 14:22 UTC (permalink / raw)
To: git
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'.
This message should say
Entry 'Makefile' is dirty.
Revert or commit changes before merging
--
Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: git UI nit
2006-12-06 14:22 git UI nit Han-Wen Nienhuys
@ 2006-12-06 14:46 ` Johannes Schindelin
2006-12-06 15:09 ` Han-Wen Nienhuys
0 siblings, 1 reply; 8+ messages in thread
From: Johannes Schindelin @ 2006-12-06 14:46 UTC (permalink / raw)
To: Han-Wen Nienhuys; +Cc: git
Hi,
On Wed, 6 Dec 2006, Han-Wen Nienhuys wrote:
>
> 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;
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: git UI nit
2006-12-06 14:46 ` Johannes Schindelin
@ 2006-12-06 15:09 ` Han-Wen Nienhuys
2006-12-06 15:20 ` Johannes Schindelin
0 siblings, 1 reply; 8+ messages in thread
From: Han-Wen Nienhuys @ 2006-12-06 15:09 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: git
Johannes Schindelin escreveu:
> }
> 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.
--
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: git UI nit
2006-12-06 15:09 ` Han-Wen Nienhuys
@ 2006-12-06 15:20 ` Johannes Schindelin
2006-12-06 15:36 ` Jakub Narebski
2006-12-06 15:41 ` Han-Wen Nienhuys
0 siblings, 2 replies; 8+ messages in thread
From: Johannes Schindelin @ 2006-12-06 15:20 UTC (permalink / raw)
To: Han-Wen Nienhuys; +Cc: git
Hi,
On Wed, 6 Dec 2006, Han-Wen Nienhuys wrote:
> Johannes Schindelin escreveu:
> > }
> > 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: git UI nit
2006-12-06 15:20 ` Johannes Schindelin
@ 2006-12-06 15:36 ` Jakub Narebski
2006-12-06 16:04 ` Han-Wen Nienhuys
2006-12-06 15:41 ` Han-Wen Nienhuys
1 sibling, 1 reply; 8+ messages in thread
From: Jakub Narebski @ 2006-12-06 15:36 UTC (permalink / raw)
To: git
Johannes Schindelin wrote:
> On Wed, 6 Dec 2006, Han-Wen Nienhuys wrote:
>
>> Johannes Schindelin escreveu:
>>> }
>>> 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.
So why not simply use "%s: dirty\n"?
> 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.
--
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: git UI nit
2006-12-06 15:20 ` Johannes Schindelin
2006-12-06 15:36 ` Jakub Narebski
@ 2006-12-06 15:41 ` Han-Wen Nienhuys
1 sibling, 0 replies; 8+ messages in thread
From: Han-Wen Nienhuys @ 2006-12-06 15:41 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: git
Johannes Schindelin escreveu:
> 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.
--
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: git UI nit
2006-12-06 15:36 ` Jakub Narebski
@ 2006-12-06 16:04 ` Han-Wen Nienhuys
2006-12-06 16:23 ` Jakub Narebski
0 siblings, 1 reply; 8+ messages in thread
From: Han-Wen Nienhuys @ 2006-12-06 16:04 UTC (permalink / raw)
To: git
Jakub Narebski escreveu:
> Johannes Schindelin wrote:
>
>> On Wed, 6 Dec 2006, Han-Wen Nienhuys wrote:
>>
>>> Johannes Schindelin escreveu:
>>>> }
>>>> 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.
>
> So why not simply use "%s: dirty\n"?
because a newbie doesn't know how to resolve that problem.
--
Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: git UI nit
2006-12-06 16:04 ` Han-Wen Nienhuys
@ 2006-12-06 16:23 ` Jakub Narebski
0 siblings, 0 replies; 8+ messages in thread
From: Jakub Narebski @ 2006-12-06 16:23 UTC (permalink / raw)
To: Han-Wen Nienhuys; +Cc: git
Han-Wen Nienhuys wrote:
> Jakub Narebski escreveu:
>> Johannes Schindelin wrote:
>>
>>> On Wed, 6 Dec 2006, Han-Wen Nienhuys wrote:
>>>
>>>> Johannes Schindelin escreveu:
>>>>> }
>>>>> 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.
>>
>> 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).
--
Jakub Narebski
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-12-06 16:21 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-06 14:22 git UI nit Han-Wen Nienhuys
2006-12-06 14:46 ` Johannes Schindelin
2006-12-06 15:09 ` Han-Wen Nienhuys
2006-12-06 15:20 ` Johannes Schindelin
2006-12-06 15:36 ` Jakub Narebski
2006-12-06 16:04 ` Han-Wen Nienhuys
2006-12-06 16:23 ` Jakub Narebski
2006-12-06 15:41 ` Han-Wen Nienhuys
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).