Re: [GSoC] Scripts to be conversted into builtins

2018-03-19 Thread Johannes Schindelin
Hi,

On Sat, 17 Mar 2018, Yash Yadav wrote:

> In the project ideas listed there is one idea talking of conversion of
> scripts to builtins. This interests me but no pointer forward is given
> and I'd like to dive more into that idea and go through the script(s).
> 
> So, where should I look further from here?

One concrete example how a script was converted can be seen here:

https://github.com/git/git/compare/b7786bb4b09%5E...b7786bb4b09%5E2

(This is the patch series that replaced the scripted version of the
`difftool` by the one written in portable C.)

But maybe you want to look at the micro-projects first, to see how you
like to work on Git's source code, and with the Git mailing list?

Ciao,
Johannes


Re: [GSoC] Scripts to be conversted into builtins

2018-03-17 Thread Christian Couder
On Sat, Mar 17, 2018 at 7:26 PM, Ævar Arnfjörð Bjarmason
 wrote:
>
> On Sat, Mar 17 2018, Yash Yadav jotted:
>
>> Hello,
>>
>> I am a student going through the GSoC process.
>>
>> In the project ideas listed there is one idea talking of conversion of
>> scripts to builtins. This interests me but no pointer forward is given
>> and I'd like to dive more into that idea and go through the script(s).
>>
>> So, where should I look further from here?
>
> One good place to start is to start reading at:
>
> git log -p --stat --full-diff --reverse 74703a1e4d.. -- 
> 'builtin/*--helper.c'
>
> And then search for git-.*\.sh in your pager. These are a bunch of
> commits where the bisect, rebase and submodule helpers have had their
> shellscript code incrementally replaced by C.

Yeah, and we have been proposing this kind of GSoC projects for a
number of years now, so we have had a number of GSoC students doing
this kind of projects, and therefore a lot of information about their
projects is available in the mailing list archive.


Re: [GSoC] Scripts to be conversted into builtins

2018-03-17 Thread Ævar Arnfjörð Bjarmason

On Sat, Mar 17 2018, Yash Yadav jotted:

> Hello,
>
> I am a student going through the GSoC process.
>
> In the project ideas listed there is one idea talking of conversion of
> scripts to builtins. This interests me but no pointer forward is given
> and I'd like to dive more into that idea and go through the script(s).
>
> So, where should I look further from here?

One good place to start is to start reading at:

git log -p --stat --full-diff --reverse 74703a1e4d.. -- 
'builtin/*--helper.c'

And then search for git-.*\.sh in your pager. These are a bunch of
commits where the bisect, rebase and submodule helpers have had their
shellscript code incrementally replaced by C.


[GSoC] Scripts to be conversted into builtins

2018-03-17 Thread Yash Yadav

Hello,

I am a student going through the GSoC process.

In the project ideas listed there is one idea talking of conversion of 
scripts to builtins. This interests me but no pointer forward is given 
and I'd like to dive more into that idea and go through the script(s).


So, where should I look further from here?


Thanks,

Yash Yadav