From: "Scott Collins" <scc@scottcollins.net>
To: "Junio C Hamano" <gitster@pobox.com>
Cc: git@vger.kernel.org, "Johannes Schindelin" <Johannes.Schindelin@gmx.de>
Subject: Re: [PATCH] Clarify documentation of git-cvsserver, particularly in relation to git-shell
Date: Tue, 15 Apr 2008 15:33:44 -0400 [thread overview]
Message-ID: <39292ba40804151233k2dd9300as5611e65ab6fcd81d@mail.gmail.com> (raw)
In-Reply-To: <7vve2jx9at.fsf@gitster.siamese.dyndns.org>
On Tue, Apr 15, 2008 at 2:27 PM, Junio C Hamano <gitster@pobox.com> wrote:
> Thanks; please make it a habit to give a final round of proofreading
> before you send your messages out. For example, I do not think we meant
> "GIT_AUTHOR_(NAME|COMMITTER)" ;-)
Yikes! Correct.
> Hmm. Can't this be further improved?
>
> My undestanding of the reasoning behind 0c696fe (Support cvs via
> git-shell, 2007-10-09) is by doing this people do not have to say
> CVS_SERVER and do this instead:
>
> cvs -d :ext:[user@]cvs.example.com:/path/to/repo checkout foo
>
> which would truly hide the fact that the server end is running something
> funky, because the command line exactly matches how you would access the
> real CVS repository over ssh.
If that's the case, then I should mention instead that users
restricted to git-shell should _not_ set or change CVS_SERVER, and
remove the extra examples.
> Dscho, care to comment? This commit happened while I was away so I do not
> really _recall_ the discussion that led to it, but I have always thought
> that was the intention.
I actually was very tempted to modify git-shell to understand
git-cvsserver; but decided to submit a documentation patch first,
hoping from the discussion I would learn if that was the right path.
> > 5. Clients should now be able to check out the project. Use the CVS 'module'
> > - name to indicate what GIT 'head' you want to check out. Example:
> > + name to indicate what GIT 'head' you want to check out. This also sets the
> > + name of your newly checked-out directory, unless you tell it otherwise with
> > + `-d <dir_name>` Example:
> > +
> > ------
> > - cvs co -d project-master master
> > + cvs co master -d project-master
> > ------
>
> Are you sure you wanted to do this? In any case this is different from
> what I read you changed in your commit log message, where you clarified
> distinction between d1 and d2 in "cvs -d d1 co -d d2 module". Instead
> what you did here is to change "cvs co -d d module" (which looks more
> natural) to "cvs co module -d d" (which might work if the options are
> reordered across parameters, but is unusual).
Hmmm. My intent was to make it read more naturally, which for me is
"checkout this module, put it into this directory". At least that's
how I've always said it to CVS. Warning readers that there are two
different meanings for -d, and they probably want them both in the
same command is more important to me than moving the -d to the end. A
better fix to that example would be something along the lines of:
cvs -d <CVSROOT-as-above> co -d <dir-name> <head-name>
I didn't do that, though, because it looked like this example was
intended to be concrete.
I'll update my patch and re-submit after I test not setting
CVS_SERVER, and feel I have the right replacement example, if any, for
the text just above.
__________
Scott Collins
next prev parent reply other threads:[~2008-04-15 19:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-15 15:30 [PATCH] Clarify documentation of git-cvsserver, particularly in relation to git-shell Scott Collins
2008-04-15 18:27 ` Junio C Hamano
2008-04-15 19:33 ` Scott Collins [this message]
2008-04-15 21:03 ` Scott Collins
2008-04-19 15:43 ` Johannes Schindelin
2008-04-15 21:44 ` Scott Collins
2008-04-16 20:03 ` Junio C Hamano
2008-04-19 15:45 ` Johannes Schindelin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=39292ba40804151233k2dd9300as5611e65ab6fcd81d@mail.gmail.com \
--to=scc@scottcollins.net \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).