Re: [petsc-dev] git worktree

2021-05-19 Thread Scott Kruger
On 2021-05-19 08:36, Patrick Sanan did write: > Cool - I didn't know about this approach - If you still have your experiments > sitting around, can you put numbers on what kind of space savings are we > talking about vs the dumb approach (I have an independent clone for every > branch I'm

Re: [petsc-dev] git worktree

2021-05-19 Thread Barry Smith
Lawrence, Oh, I always use that, (even now) my prompt is miles long. Didn't help me at all, I still messed up constantly; my brain ignores what my eyes clearly see. I need more than a clear sign post telling me where I am, I need a hammer that hits me whenever I do something wrong in

Re: [petsc-dev] git worktree

2021-05-19 Thread Lawrence Mitchell
> On 19 May 2021, at 15:38, Barry Smith wrote: > > I tried the multiple clone approach first but found I was constantly > thinking I was in a different branch than I was in as I went between clones > and messing up my working directory and getting confused and frustrated. So I >

Re: [petsc-dev] git worktree

2021-05-19 Thread Barry Smith
I tried the multiple clone approach first but found I was constantly thinking I was in a different branch than I was in as I went between clones and messing up my working directory and getting confused and frustrated. So I developed some of my tools because I was unable to utilize my brain

Re: [petsc-dev] git worktree

2021-05-19 Thread Patrick Sanan
Cool - I didn't know about this approach - If you still have your experiments sitting around, can you put numbers on what kind of space savings are we talking about vs the dumb approach (I have an independent clone for every branch I'm interested in working on simultaneously)? @Barry - thanks

Re: [petsc-dev] git worktree

2021-05-18 Thread Scott Kruger
A. I remember your email about it, and I even have it checked out. I didn't get it at the time, but necessity is not only them other of invention, but of learning. Scott On 2021-05-18 18:39, Barry Smith did write: > > Scott, > > My solution to working with multiple PETSc branches

Re: [petsc-dev] git worktree

2021-05-18 Thread Barry Smith
Scott, My solution to working with multiple PETSc branches without the agonizing pain is g...@gitlab.com:petsc/petscgitbash.git One could argue it is too particular to Barry's specific workflow but perhaps it has ideas/code that can be stolen for others. It could also potentially

Re: [petsc-dev] git worktree

2021-05-18 Thread Scott Kruger
With later versions of git, `git branch` shows branches are also setup as worktree's which I personally like quite a bit. Also, thinking through the worktree workflow has forced me to improve my own workflow in terms of directory naming discipline (but that is probably just me who had far too

Re: [petsc-dev] git worktree

2021-05-18 Thread Jed Brown
I don't follow the advantage over lightweight clones, such as: $ git clone --branch=release --reference petsc gitlab:petsc/petsc petsc-release Cloning into 'petsc-release'... remote: Enumerating objects: 261, done. remote: Counting objects: 100% (261/261), done. remote: Compressing objects: 100%