Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Mar 2021 14:30:50 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Kurt Jaeger <pi@freebsd.org>
Cc:        KIRIYAMA Kazuhiko <kiri@truefc.org>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: Is there any OS builtin git command like svnlite ?
Message-ID:  <CANCZdfqZOVoC5HEXEW-Jz_hc3BT1_a_HGNT_GJ_BFXx=Kxm2jg@mail.gmail.com>
In-Reply-To: <YE5thd3ZmGwZI3zB@home.opsec.eu>
References:  <202103141938.12EJclDN004900@kx.truefc.org> <YE5thd3ZmGwZI3zB@home.opsec.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Mar 14, 2021 at 2:10 PM Kurt Jaeger <pi@freebsd.org> wrote:

> Hi!
>
> > I'm working on clean installed VM -current from NFS
> > mounted src like :
> >
> > admin@tbedfc:~ % df -h
> > Filesystem                                          Size    Used   Avail
> Capacity  Mounted on
> > /dev/vtbd0p2                                         11G    4.1G
> 5.7G    42%    /
> > devfs                                               1.0K    1.0K
> 0B   100%    /dev
> > vm.tfc:/.dake                                        12T    843G
>  11T     7%    /.dake
> > vm.tfc:/ds/src/freebsd/current/14.0/913e7dc3e0eb     11T     55G
>  11T     0%    /usr/src
> > vm.tfc:/ds/obj/freebsd/current/14.0/913e7dc3e0eb     11T    322G
>  11T     3%    /usr/obj
> > admin@tbedfc:~ %
> >
> > But could not display revison by uname :
> >
> > admin@tbedfc:~ % uname -a
> > FreeBSD tbedfc 14.0-CURRENT FreeBSD 14.0-CURRENT #0: Fri Mar 12 18:16:41
> JST 2021     root@tbedfc:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64
> > admin@tbedfc:~ %
> >
> > I think this is because incapable of using git command with
> > `git -C $SRCDIR rev-parse --verify --short HEAD'. In the
> > first place, git command does not builtin src like svnlite.
> > Is there any solution of this ?
>
> Not yet. There are ports that you can install with 'pkg install':
>
> pkg install git

pkg install gitup
>

gitup is more like portsnap than svnlite. svnlite was the client part of
subversion, basically, with the same syntax, etc.

There's also the 'got' package that you could try too, that's much closer
in functionality, but again not quite the same as svnlite because it has a
different command line syntax.

We considered these, and a few others, and none are quire ready...

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfqZOVoC5HEXEW-Jz_hc3BT1_a_HGNT_GJ_BFXx=Kxm2jg>