Download raw body.
Remote got repositories and small typo in man page
On Thu, Dec 03, 2020 at 09:29:23PM +0200, Timo Myyrä wrote: > Stefan Sperling <stsp@stsp.name> [2020-12-03, 11:42 +0100]: > > > On Wed, Dec 02, 2020 at 10:44:32PM +0200, Timo Myyrä wrote: > >> Hi, > > > > Hi Timo, > > > > Nice to see you around here :) > > I remember chatting with you at *BSD conferences. > > > > Ah, you go to one BSD conference and you never hear the end of it :) > > >> Getting a bit more familiar with got, am I correct that it doesn't yet > >> support remote got repositories with local work trees? > >> > >> I was planning on having got repository on my lan server and checking > >> out local work tree from it. Browsing man page seems to indicate the > >> current way is to use git repo on server and fetch it to local got repo > >> and then take local work tree from it. Is it so? > > > > The idea is that you'll need one clone of the Git repository per machine. > > I have a /git partition on most of my machines which I use to store > > Git repositories. I used to do the same with a /cvs partition and > > cvsync (nowadays, you would use reposync for CVS instead of cvsync). > > > > So it indeed requires that extra step. I need to play with this a bit more > to propely grasp the work flow which would work with this. I also > started to slowly work to see if I can make emacs support got in its vc > package. Seems perfect project as I don't know elisp nor how to work > with got but I hope to learn as I go. On my remote git server, I have /var/www/git/public and /var/www/git/private. I can clone to my laptop from either, while gotweb serves from /var/www/git/public to my gotweb website. (Note: this will change to gotwebd at a later date). These are all bare git repos, obviously. On my laptop, I also have /var/www/got dirs. Here are all of the git repos that I clone bare from all sources. From there, I can checkout with got, fetch, and push. This could be anywhere on your fs. I have it in /var/www for gotweb(d) development. So for git, github, etc., it's essentially just working with bare clones. Obviously, there is more than one way to do it. Hope this helps get your own setup going a little easier. Tracey > > Regarding that, is there idea to support reading the commit messages > from file in 'got commit' command? I'm not sure if emacs can nicely > handle the case that got invokes editor on temp file if no message is > provided. > > >> timo > >> > >> PS. there also seems to be typo in got.1 man page: > >> > >> --- got.1.orig Wed Dec 2 22:38:58 2020 > >> +++ got.1 Wed Dec 2 22:39:28 2020 > >> @@ -2011,7 +2011,7 @@ > >> .Pp > >> Alternatively, for quick and dirty local testing of > >> .Nm > >> -a new Git repository could be created and populated with files, > >> +a new Got repository could be created and populated with files, > >> e.g. from a temporary CVS checkout located at > >> .Pa /tmp/src : > >> .Pp > > > > That's not strictly a typo. The repository format is indeed the one defined > > by Git, both in terms of Git's documentation and its implementation. > > > > Got does not have its own repository format. It only has its own work tree > > format. That's also why the relevant man pages are called git-repository(5) > > and got-worktree(5), not got-repository(5) and got-worktree(5). > > > > Thanks, > > Stefan > > timo -- Tracey Emery
Remote got repositories and small typo in man page