--
You received this message because you are subscribed to the Google Groups "stan development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Wed, Mar 11, 2015 at 03:07:26PM -0400, Daniel Lee wrote:
> I saw you made another comment regarding git history.
> What's the value of following development history? Perhaps if we had an
> actual use case, we'd be more careful.
I like to use tig, http://jonas.nitro.dk/tig/
> Right now, we've made it easy on the developers to move forward rather
> than add another bit of complicated git process to our process.
Why do you think merge is somehow easier than rebase? I mean, you have
to resolve conflicts one way or another. I expect that merge and rebase
are an equal amount of work (i.e., to resolve conflicts).
As I mentioned in the previous email, a merge should actually indicate
that some branch was conceptually merged. Mis-notating rebases as merges
makes history confusing.
> I find walking through pull requests to be sufficient for browsing
> history, whenever I need to review what's happened. (Of course,
> that's relying on GitHub functionality, but eh... we're tied to
> GitHub at this point.)
I guess that's why you aren't aghast at the history tangle. ;-)
> On Fri, Jan 16, 2015 at 7:54 PM, Ben Goodrich
> <[1]goodri...@gmail.com> wrote:
>
> Paranoia about loosing commits.
> On Friday, January 16, 2015 at 4:00:55 PM UTC-5, Joshua Pritikin wrote:
>
> With respect to GIT usage, I understand why you always merge at the
> end
> of a branch. However, I'm surprise by the frequency of merges
> between
> branches. Why don't you occasionally rebase issue or feature
> branches on
> top of develop HEAD before you merge back to HEAD? With so many
> merges,
> I find it hard to follow development history.
--
Joshua N. Pritikin
Department of Psychology
University of Virginia
485 McCormick Rd, Gilmer Hall Room 102
Charlottesville, VA 22904
http://people.virginia.edu/~jnp3bc
On Wed, Mar 11, 2015 at 03:31:48PM -0400, Daniel Lee wrote:
> On Wed, Mar 11, 2015 at 3:20 PM, Joshua N Pritikin
> <[1]jpri...@pobox.com> wrote:
>
> On Wed, Mar 11, 2015 at 03:07:26PM -0400, Daniel Lee wrote:
> > I saw you made another comment regarding git history.
> > What's the value of following development history? Perhaps if
> we had an
> > actual use case, we'd be more careful.
> I like to use tig, [2]http://jonas.nitro.dk/tig/
>
> I see. But what does this gain you?
It is a way to examine history. That understanding history can be
helpful in understanding a project should be self evident? A clear
history will help attract more collaborators.
> > Right now, we've made it easy on the developers to move forward
> rather
> > than add another bit of complicated git process to our process.
> Why do you think merge is somehow easier than rebase? I mean, you
> have
> to resolve conflicts one way or another. I expect that merge and
> rebase
> are an equal amount of work (i.e., to resolve conflicts).
>
> It doesn't look too different, but I just read through this section:
> [3]http://git-scm.com/book/en/v2/Git-Branching-Rebasing
Yeah
> and we've kind of gone with the "record of what actually happened"
> approach.
Not really. What I advocate is a record of what actually happened.
Specifically, when you have a topic branch, you can rebase against
develop before pulling it with a merge. You need to resolve conflicts
anyway so it makes no difference whether you resolve the rebase
conflicts or the merge conflicts.
> As I mentioned in the previous email, a merge should actually
> indicate
> that some branch was conceptually merged. Mis-notating rebases as
> merges
> makes history confusing.
>
> What about it makes it confusing? Perhaps you can share a screenshot of
> tig?
Sure, attached.
I suggest that merges should mostly go in one direction, toward the
'develop' branch. That is, topical branches should rebase on top of
'develop' just prior to being merged to 'develop'. Some exceptions to
this rule are no problem, but the current situation looks more like an
undisciplined free-for-all.
> Even if it were confusing in tig, I wouldn't suggest a process that
> makes it difficult for the developers based on a tool that's not
> standard.
I'm not sure what is non-standard about tig. Another tool, gitk, is as
old as GIT and shows essentially the same output.
> > I find walking through pull requests to be sufficient for
> browsing
> > history, whenever I need to review what's happened. (Of course,
> > that's relying on GitHub functionality, but eh... we're tied to
> > GitHub at this point.)
> I guess that's why you aren't aghast at the history tangle. ;-)
>
> Exactly. History is easy on GitHub, which you should also have access
> to and without the need to install an additional tool.
Wait, are you talking about this?
https://github.com/stan-dev/stan/commits/develop
This view of history only shows the first parent?
> If you could show that the history looks much different on GitHub,
> I think that's a compelling argument to change our process if it's
> not going to be a burden. If not, then I'd like table this
> discussion to some time in the future.
--
Joshua N. Pritikin
Department of Psychology
University of Virginia
485 McCormick Rd, Gilmer Hall Room 102
Charlottesville, VA 22904
http://people.virginia.edu/~jnp3bc
On Thu, Mar 12, 2015 at 09:55:51AM -0400, Daniel Lee wrote:
> Joshua, quick question: if someone already did a:
> git merge develop
> how would they go about fixing that to look like a git rebase? Is that
> easy to do?
Assuming your working tree is clean ('git status' shows nothing), then
you can do,
git reset --hard HEAD^ # move your branch to the previous commit
The merge should be gone now and you can rebase at your leisure,
git rebase develop # or origin/develop
I was not thinking about changing the develop branch. I was thinking about a local branch.
Those instructions don't work if you've made multiple commits past a merge. I was hoping you had an easy way to fix a local branch.
--
You received this message because you are subscribed to the Google Groups "stan development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-dev+unsubscribe@googlegroups.com.