* [PATCH] I don't known anyone who understands what it means when they do a merge and see "file.txt: needs update". "file.txt: has changes" is much clearer.
@ 2008-05-03 7:08 Tim Harper
2008-05-03 14:09 ` Johannes Schindelin
2008-05-03 15:24 ` Matt Graham
0 siblings, 2 replies; 13+ messages in thread
From: Tim Harper @ 2008-05-03 7:08 UTC (permalink / raw)
To: git; +Cc: Tim Harper
---
read-cache.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/read-cache.c b/read-cache.c
index a92b25b..971667d 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -999,7 +999,7 @@ int refresh_index(struct index_state *istate, unsigned int flags, const char **p
}
if (quiet)
continue;
- printf("%s: needs update\n", ce->name);
+ printf("%s: has changes\n", ce->name);
has_errors = 1;
continue;
}
--
1.5.5.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: [PATCH] I don't known anyone who understands what it means when they do a merge and see "file.txt: needs update". "file.txt: has changes" is much clearer.
2008-05-03 7:08 [PATCH] I don't known anyone who understands what it means when they do a merge and see "file.txt: needs update". "file.txt: has changes" is much clearer Tim Harper
@ 2008-05-03 14:09 ` Johannes Schindelin
2008-05-03 16:19 ` Tim Harper
2008-05-03 16:57 ` Junio C Hamano
2008-05-03 15:24 ` Matt Graham
1 sibling, 2 replies; 13+ messages in thread
From: Johannes Schindelin @ 2008-05-03 14:09 UTC (permalink / raw)
To: Tim Harper; +Cc: git
Hi,
the subject is a nice joke ;-)
On Sat, 3 May 2008, Tim Harper wrote:
> - printf("%s: needs update\n", ce->name);
> + printf("%s: has changes\n", ce->name);
How about "local changes"?
Ciao,
Dscho
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] I don't known anyone who understands what it means when they do a merge and see "file.txt: needs update". "file.txt: has changes" is much clearer.
2008-05-03 7:08 [PATCH] I don't known anyone who understands what it means when they do a merge and see "file.txt: needs update". "file.txt: has changes" is much clearer Tim Harper
2008-05-03 14:09 ` Johannes Schindelin
@ 2008-05-03 15:24 ` Matt Graham
1 sibling, 0 replies; 13+ messages in thread
From: Matt Graham @ 2008-05-03 15:24 UTC (permalink / raw)
To: Tim Harper; +Cc: git
On Sat, May 3, 2008 at 3:08 AM, Tim Harper <timcharper@gmail.com> wrote:
> ---
> read-cache.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/read-cache.c b/read-cache.c
> index a92b25b..971667d 100644
> --- a/read-cache.c
> +++ b/read-cache.c
> @@ -999,7 +999,7 @@ int refresh_index(struct index_state *istate, unsigned int flags, const char **p
> }
> if (quiet)
> continue;
> - printf("%s: needs update\n", ce->name);
> + printf("%s: has changes\n", ce->name);
> has_errors = 1;
> continue;
> }
> --
> 1.5.5.1
Yes, "needs update" is definitely cryptic and confusing.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] I don't known anyone who understands what it means when they do a merge and see "file.txt: needs update". "file.txt: has changes" is much clearer.
2008-05-03 14:09 ` Johannes Schindelin
@ 2008-05-03 16:19 ` Tim Harper
2008-05-03 16:57 ` Junio C Hamano
1 sibling, 0 replies; 13+ messages in thread
From: Tim Harper @ 2008-05-03 16:19 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: git
heh heh - yeah, I used git to send the email and it just sent that
huge honkin line.
I like "local changes".
There's a bunch of lines that say "not uptodate". I'll look for them
all and resend the patch.
Thanks,
Tim
On May 3, 2008, at 8:09 AM, Johannes Schindelin wrote:
> Hi,
>
> the subject is a nice joke ;-)
>
>
> On Sat, 3 May 2008, Tim Harper wrote:
>
>> - printf("%s: needs update\n", ce->name);
>> + printf("%s: has changes\n", ce->name);
>
> How about "local changes"?
>
> Ciao,
> Dscho
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] I don't known anyone who understands what it means when they do a merge and see "file.txt: needs update". "file.txt: has changes" is much clearer.
2008-05-03 14:09 ` Johannes Schindelin
2008-05-03 16:19 ` Tim Harper
@ 2008-05-03 16:57 ` Junio C Hamano
2008-05-03 20:10 ` Tim Harper
2008-05-04 9:29 ` Johannes Schindelin
1 sibling, 2 replies; 13+ messages in thread
From: Junio C Hamano @ 2008-05-03 16:57 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: Tim Harper, git
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> On Sat, 3 May 2008, Tim Harper wrote:
>
>> - printf("%s: needs update\n", ce->name);
>> + printf("%s: has changes\n", ce->name);
>
> How about "local changes"?
Aren't there Porcelain and end-user scripts that relies on the output by
doing "sed -ne s'/: needs update$//p"?
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] I don't known anyone who understands what it means when they do a merge and see "file.txt: needs update". "file.txt: has changes" is much clearer.
2008-05-03 16:57 ` Junio C Hamano
@ 2008-05-03 20:10 ` Tim Harper
2008-05-04 0:08 ` Junio C Hamano
2008-05-04 9:29 ` Johannes Schindelin
1 sibling, 1 reply; 13+ messages in thread
From: Tim Harper @ 2008-05-03 20:10 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Johannes Schindelin, git
I ran all of the tests with the patch apply, and they all pass. Is
that enough indication?
Tim
On May 3, 2008, at 10:57 AM, Junio C Hamano wrote:
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
>
>> On Sat, 3 May 2008, Tim Harper wrote:
>>
>>> - printf("%s: needs update\n", ce->name);
>>> + printf("%s: has changes\n", ce->name);
>>
>> How about "local changes"?
>
> Aren't there Porcelain and end-user scripts that relies on the
> output by
> doing "sed -ne s'/: needs update$//p"?
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] I don't known anyone who understands what it means when they do a merge and see "file.txt: needs update". "file.txt: has changes" is much clearer.
2008-05-03 20:10 ` Tim Harper
@ 2008-05-04 0:08 ` Junio C Hamano
2008-05-04 0:21 ` Avery Pennarun
0 siblings, 1 reply; 13+ messages in thread
From: Junio C Hamano @ 2008-05-04 0:08 UTC (permalink / raw)
To: Tim Harper; +Cc: Johannes Schindelin, git
Tim Harper <timcharper@gmail.com> writes:
because it is very hard to follow the flow of thought.
Please do not top post.
> On May 3, 2008, at 10:57 AM, Junio C Hamano wrote:
>
>> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
>>
>>> On Sat, 3 May 2008, Tim Harper wrote:
>>>
>>>> - printf("%s: needs update\n", ce->name);
>>>> + printf("%s: has changes\n", ce->name);
>>>
>>> How about "local changes"?
>>
>> Aren't there Porcelain and end-user scripts that relies on the
>> output by
>> doing "sed -ne s'/: needs update$//p"?
> I ran all of the tests with the patch apply, and they all pass. Is
> that enough indication?
Of course not. Where does end-user scripts come into play when you are
running the testsuite?
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] I don't known anyone who understands what it means when they do a merge and see "file.txt: needs update". "file.txt: has changes" is much clearer.
2008-05-04 0:08 ` Junio C Hamano
@ 2008-05-04 0:21 ` Avery Pennarun
2008-05-04 1:24 ` Junio C Hamano
0 siblings, 1 reply; 13+ messages in thread
From: Avery Pennarun @ 2008-05-04 0:21 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Tim Harper, Johannes Schindelin, git
On 5/3/08, Junio C Hamano <gitster@pobox.com> wrote:
> > I ran all of the tests with the patch apply, and they all pass. Is
> > that enough indication?
>
> Of course not. Where does end-user scripts come into play when you are
> running the testsuite?
I thought user scripts weren't supposed to rely on the porcelain
output? It seems to change rather frequently anyway.
Avery
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] I don't known anyone who understands what it means when they do a merge and see "file.txt: needs update". "file.txt: has changes" is much clearer.
2008-05-04 0:21 ` Avery Pennarun
@ 2008-05-04 1:24 ` Junio C Hamano
2008-05-05 16:35 ` Avery Pennarun
0 siblings, 1 reply; 13+ messages in thread
From: Junio C Hamano @ 2008-05-04 1:24 UTC (permalink / raw)
To: Avery Pennarun; +Cc: Junio C Hamano, Tim Harper, Johannes Schindelin, git
"Avery Pennarun" <apenwarr@gmail.com> writes:
> On 5/3/08, Junio C Hamano <gitster@pobox.com> wrote:
>> > I ran all of the tests with the patch apply, and they all pass. Is
>> > that enough indication?
>>
>> Of course not. Where does end-user scripts come into play when you are
>> running the testsuite?
>
> I thought user scripts weren't supposed to rely on the porcelain
> output? It seems to change rather frequently anyway.
Wasn't the patch about changing output from "update-index --refresh",
which is as low as you can get?
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] I don't known anyone who understands what it means when they do a merge and see "file.txt: needs update". "file.txt: has changes" is much clearer.
2008-05-03 16:57 ` Junio C Hamano
2008-05-03 20:10 ` Tim Harper
@ 2008-05-04 9:29 ` Johannes Schindelin
1 sibling, 0 replies; 13+ messages in thread
From: Johannes Schindelin @ 2008-05-04 9:29 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Tim Harper, git
Hi,
On Sat, 3 May 2008, Junio C Hamano wrote:
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
>
> > On Sat, 3 May 2008, Tim Harper wrote:
> >
> >> - printf("%s: needs update\n", ce->name);
> >> + printf("%s: has changes\n", ce->name);
> >
> > How about "local changes"?
>
> Aren't there Porcelain and end-user scripts that relies on the output by
> doing "sed -ne s'/: needs update$//p"?
Potentially. But I thought that it would make more sense to use
--name-only in that case.
However, I obviously like that you go out of your way to cause the least
damage to current users, so how about something like in merge-recursive,
where you can change some output based on an environment variable?
In this case, I'd rather make it an option, but that may be overkill. But
then, enough people have commented that this message is irritating them.
Ciao,
Dscho
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] I don't known anyone who understands what it means when they do a merge and see "file.txt: needs update". "file.txt: has changes" is much clearer.
2008-05-04 1:24 ` Junio C Hamano
@ 2008-05-05 16:35 ` Avery Pennarun
2008-05-05 17:05 ` Jeff King
2008-05-06 21:50 ` Tim Harper
0 siblings, 2 replies; 13+ messages in thread
From: Avery Pennarun @ 2008-05-05 16:35 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Tim Harper, Johannes Schindelin, git
On 5/3/08, Junio C Hamano <gitster@pobox.com> wrote:
> "Avery Pennarun" <apenwarr@gmail.com> writes:
> > On 5/3/08, Junio C Hamano <gitster@pobox.com> wrote:
> >> Of course not. Where does end-user scripts come into play when you are
> >> running the testsuite?
> >
> > I thought user scripts weren't supposed to rely on the porcelain
> > output? It seems to change rather frequently anyway.
>
> Wasn't the patch about changing output from "update-index --refresh",
> which is as low as you can get?
Hmm, perhaps the problem then is that we're using plumbing output and
presenting it to the user as part of the porcelain. Is there an
elegant way to fix that?
Avery
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] I don't known anyone who understands what it means when they do a merge and see "file.txt: needs update". "file.txt: has changes" is much clearer.
2008-05-05 16:35 ` Avery Pennarun
@ 2008-05-05 17:05 ` Jeff King
2008-05-06 21:50 ` Tim Harper
1 sibling, 0 replies; 13+ messages in thread
From: Jeff King @ 2008-05-05 17:05 UTC (permalink / raw)
To: Avery Pennarun; +Cc: Junio C Hamano, Tim Harper, Johannes Schindelin, git
On Mon, May 05, 2008 at 12:35:06PM -0400, Avery Pennarun wrote:
> Hmm, perhaps the problem then is that we're using plumbing output and
> presenting it to the user as part of the porcelain. Is there an
> elegant way to fix that?
2>&1 | sed 's/needs update/has local changes/' ?
Oh wait, you said elegant...
-Peff
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] I don't known anyone who understands what it means when they do a merge and see "file.txt: needs update". "file.txt: has changes" is much clearer.
2008-05-05 16:35 ` Avery Pennarun
2008-05-05 17:05 ` Jeff King
@ 2008-05-06 21:50 ` Tim Harper
1 sibling, 0 replies; 13+ messages in thread
From: Tim Harper @ 2008-05-06 21:50 UTC (permalink / raw)
To: Avery Pennarun; +Cc: Junio C Hamano, Johannes Schindelin, git
Yeah: I was thinking about it earlier and came at the same conclusion.
There's a "porcelain" interface for a lot of commands. Does the
concept need to be furthered for this case?
On another note - I've been running with this change for several days,
and everything seems to be alright.
Tim
On May 5, 2008, at 10:35 AM, Avery Pennarun wrote:
> On 5/3/08, Junio C Hamano <gitster@pobox.com> wrote:
>> "Avery Pennarun" <apenwarr@gmail.com> writes:
>>> On 5/3/08, Junio C Hamano <gitster@pobox.com> wrote:
>>>> Of course not. Where does end-user scripts come into play when
>>>> you are
>>>> running the testsuite?
>>>
>>> I thought user scripts weren't supposed to rely on the porcelain
>>> output? It seems to change rather frequently anyway.
>>
>> Wasn't the patch about changing output from "update-index --refresh",
>> which is as low as you can get?
>
> Hmm, perhaps the problem then is that we're using plumbing output and
> presenting it to the user as part of the porcelain. Is there an
> elegant way to fix that?
>
> Avery
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2008-05-06 21:52 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-03 7:08 [PATCH] I don't known anyone who understands what it means when they do a merge and see "file.txt: needs update". "file.txt: has changes" is much clearer Tim Harper
2008-05-03 14:09 ` Johannes Schindelin
2008-05-03 16:19 ` Tim Harper
2008-05-03 16:57 ` Junio C Hamano
2008-05-03 20:10 ` Tim Harper
2008-05-04 0:08 ` Junio C Hamano
2008-05-04 0:21 ` Avery Pennarun
2008-05-04 1:24 ` Junio C Hamano
2008-05-05 16:35 ` Avery Pennarun
2008-05-05 17:05 ` Jeff King
2008-05-06 21:50 ` Tim Harper
2008-05-04 9:29 ` Johannes Schindelin
2008-05-03 15:24 ` Matt Graham
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).