git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Shawn O. Pearce" <spearce@spearce.org>
To: Ben Armstrong <BArmstrong@dymaxion.ca>
Cc: git@vger.kernel.org
Subject: Re: jgit standalone client on OpenVMS works (somewhat)
Date: Thu, 30 Apr 2009 12:26:07 -0700	[thread overview]
Message-ID: <20090430192607.GS23604@spearce.org> (raw)
In-Reply-To: <3f1ae6620904300839n48e88143y2ae1694472f712a4@mail.gmail.com>

Ben Armstrong <BArmstrong@dymaxion.ca> wrote:
> I am happy to report that the jgit standalone client works (somewhat) on
> OpenVMS/Alpha, a non-POSIX platform for which no C git port exists.  I
> understand that not all functionality of the C client is supported yet, but
> for limited use, and supplemented by using the C client on a PC, I may be
> able to get away with this.  At least being able to do a 'git clone' is
> encouraging.

Wow.

I'm talking to some folks who are trying to put JGit into Maven.
They want to move a lot of egit.core down into JGit, which should
make it easier to add more commands to the jgit wrapper, making a
more functional command line tool.
 
> The only problem I have found so far is that if a tag has dots in it and the
> last dotted expression looks like a VMS file version number, it is
> interpreted as such instead of part of the filepath used to represent it
> under .git/refs/tags
...
> $ HELP EXT_FILE_SPECS Using File_Specification_Differences
> ODS-5_Syntax Interpretation_of_Period
> ...
> Uggh.  I don't know if I'm going to be able to solve this one.
> I guess I just have to avoid multiple periods in tags.

Can you write a subclass of our FS class that can identify a
VMS host and use that VMS specific subclass? 

If so, we could add a method, e.g.:

  boolean canBeLooseRef(String name)

and on VMS when the name falls into that "ODS-5_Syntax
Interpretation_of_Period" rule set above, we could return false.
This would then permit a simple change in RefDatabase where we always
store such refs in the packed-refs file, instead of as a loose file.

It also means we'd have to forgo the ref log, or mangle the reflog
name.

But it seems to me we could reasonably work around this without
too much trouble.

-- 
Shawn.

  reply	other threads:[~2009-04-30 19:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-30 15:39 jgit standalone client on OpenVMS works (somewhat) Ben Armstrong
2009-04-30 19:26 ` Shawn O. Pearce [this message]
2009-05-03 15:15 ` Robin Rosenberg
     [not found]   ` <49FEE276.8010508@gmail.com>
2009-05-04 12:42     ` Ben Armstrong
  -- strict thread matches above, loose matches on Subject: below --
2009-05-01 10:08 Ben Armstrong

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=20090430192607.GS23604@spearce.org \
    --to=spearce@spearce.org \
    --cc=BArmstrong@dymaxion.ca \
    --cc=git@vger.kernel.org \
    /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).