Re: Remote branches and better documentation

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <gitster@...>
Cc: Wincent Colaiuta <win@...>, Steven Grimm <koreth@...>, <git@...>
Date: Tuesday, September 11, 2007 - 4:36 am

On Mon, Sep 10, 2007 at 07:27:34PM -0700, Junio C Hamano wrote:

	I'm not asking you to ;-)  This is about real world usage, not
how to make Junio's life difficult.


	No, but software can be written to know how to determine it is
too old and fail.  eg, a protocol often has a version in the header so
that older software says "I don't know it".


	Of course not, nor would I advocate such.  When it comes to "new
version changed something that an old version won't understand", that's
the only time you'd have to write out a flag.  People making this change
to the software had better be aware that they have added this
incompatibility, and as such can be aware to mark it.


	Nor do I.  I'm *still* not asking that we find a way to annoy
the user into reading the release notes up front!  I'm asking that when
something behaves unexpectedly, and the user goes to find out why, the
answer is where they look.  If "git foo" does something different, and
appears to have broken, the user isn't going to assume "it changed",
they're going to assume they did something wrong.  They're going to look
at git-foo(1).  And somehow, even as a tiny, one-line "X changed x.y ->
x.y+1, see the release note", git-foo(1) should mention that they didn't
do something wrong.


	We didn't select any of these.  This sort of behavior is a good
thing.  There is no "silent change" or surprise, because you have to
opt-in.  This clearly wasn't the problem.


	I suspect this is what corrupted our repository, as it would
create packs the older 1.4 version wouldn't see (and perhaps complain
about).  Here's where the 1.5 client says to itself "I know I'm about to
create a packfile that older versions can't handle, I'd better mark
something to tell older versions to give up."  Isn't this what
core.repositoryFormatVersion is for?

Joel

-- 

None of our men are "experts."  We have most unfortunately found
it necessary to get rid of a man as soon as he thinks himself an
expert -- because no one ever considers himself expert if he really
knows his job.  A man who knows a job sees so much more to be done
than he has done, that he is always pressing forward and never
gives up an instant of thought to how good and how efficient he is.
Thinking always ahead, thinking always of trying to do more, brings
a state of mind in which nothing is impossible. The moment one gets
into the "expert" state of mind a great number of things become
impossible.
	- From Henry Ford Sr., "My Life and Work"

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker@oracle.com
Phone: (650) 506-8127
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Remote branches and better documentation, Joel Becker, (Mon Sep 10, 4:54 pm)
Re: Remote branches and better documentation, Joel Becker, (Wed Sep 12, 3:59 pm)
Re: Remote branches and better documentation, Steven Grimm, (Mon Sep 10, 5:18 pm)
Re: Remote branches and better documentation, Govind Salinas, (Mon Sep 10, 9:18 pm)
Re: Remote branches and better documentation, Joel Becker, (Mon Sep 10, 5:50 pm)
Re: Remote branches and better documentation, Wincent Colaiuta, (Mon Sep 10, 8:05 pm)
Re: Remote branches and better documentation, Joel Becker, (Mon Sep 10, 9:06 pm)
Re: Remote branches and better documentation, Junio C Hamano, (Mon Sep 10, 10:27 pm)
Re: Remote branches and better documentation, Joel Becker, (Tue Sep 11, 4:36 am)
Re: Remote branches and better documentation, Junio C Hamano, (Mon Sep 10, 6:44 pm)
Re: Remote branches and better documentation, Joel Becker, (Mon Sep 10, 9:03 pm)