Re: GSoC 2019: Git's application submitted

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/11, Christian Couder wrote:
> On Thu, Feb 7, 2019 at 10:33 PM Thomas Gummerer <t.gummerer@xxxxxxxxx> wrote:
> >
> > On 02/07, Johannes Schindelin wrote:
> > > On Wed, 6 Feb 2019, Thomas Gummerer wrote:
> > > >  - implement pushing/poping conflicted state
> > > >
> > > >    This would obviously be the end goal.
> > >
> > > On second thought, this might actually be super trivial. Right now, we
> > > support two modes (not counting the `--untracked` stuff): --keep-index and
> > > --no-keep-index. In both cases, we seem to create a merge commit whose
> > > tree reflects the working directory and whose first parent is HEAD and
> > > whose second parent is a single commit on top of HEAD (which contains
> > > either no changes in the case of --no-keep-index, or whose tree reflects
> > > the index in case of --keep-index).
> > >
> > > To extend that to the conflict case, we could introduce a new flag
> > > --with-conflicts, and have the commit structure
> > >
> > >       Worktree
> > >        |    \
> > >        |    index stage 0
> > >        |      /     |     \
> > >        | stage 1  stage 2  stage 3
> > >        |    /     /       /
> > >       HEAD ---------------
> > >
> > > The only tricky thing I can see is to maintain backwards compatibility if
> > > possible, so that old `git stash` will do something at least semi-sensible
> > > with those commit structures.
> > >
> > > It might be too small a project, after all.
> >
> > Yeah, looking at this I think you're right.  Thanks for helping work
> > through this.
> 
> I am not sure it will be too small a project, especially because it is
> a new feature. On top of the coding part, the student will also have
> to come up with good documentation and test cases, and there will
> probably be naming and workflow discussions and possibly refactoring
> opportunities and bug fixes along the way.

I still think it's on the smaller side, but also as you mention below
we have usually been rather optimistic about project sizes.  So maybe
this is the right size for a GSoC after all.

> Yeah, the naming and workflow discussions should actually happen when
> discussing the student's proposal, in which case an important part of
> the work will (hopefully) be done before the GSoC actually starts.
> 
> Historically though we have always been very optimistic in what we
> thought a student could accomplish in a GSoC. And we are very likely
> to find more ideas for improvements during the GSoC, in case
> everything is "finished" before the end. I actually think that it has
> never happened that a student both "finished" the project before the
> end, and that no idea for improvement on top of the work was found.

Fair enough.  I think there's still a number of things that could do
with some refactoring in 'builtin/stash.c', e.g. use more of the
libgit.a API, instead of using the run_command API, or potentially
other improvements that could be made.

Another thing that may be useful to do is to write down some actual
technical documentation on the format of what a stash commit looks
like.

> I have added a "Note about refactoring projects versus projects that
> implement new features" at the end of the idea list:
> 
> https://github.com/git/git.github.io/blob/master/SoC-2019-Ideas.md#note-about-refactoring-projects-versus-projects-that-implement-new-features
> 
> and I think that with that note students working on such projects will
> be warned enough, and therefore hopefully have a better chance of
> success.
>
> So after all if you are willing to co-mentor such a project, I would
> be ok to co-mentor it with you, and we should add it to the list.

Ok, I'll submit a PR to add it to the list.

> Thanks,
> Christian.
> 
> And yeah it would help improve our idea list as requested by Google.



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux