git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [GSoC] Scripts to be conversted into builtins
@ 2018-03-17 12:44 Yash Yadav
  2018-03-17 18:26 ` Ævar Arnfjörð Bjarmason
  2018-03-19 17:27 ` Johannes Schindelin
  0 siblings, 2 replies; 4+ messages in thread
From: Yash Yadav @ 2018-03-17 12:44 UTC (permalink / raw)
  To: git

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [GSoC] Scripts to be conversted into builtins
  2018-03-17 12:44 [GSoC] Scripts to be conversted into builtins Yash Yadav
@ 2018-03-17 18:26 ` Ævar Arnfjörð Bjarmason
  2018-03-17 20:51   ` Christian Couder
  2018-03-19 17:27 ` Johannes Schindelin
  1 sibling, 1 reply; 4+ messages in thread
From: Ævar Arnfjörð Bjarmason @ 2018-03-17 18:26 UTC (permalink / raw)
  To: Yash Yadav; +Cc: git, Stefan Beller


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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [GSoC] Scripts to be conversted into builtins
  2018-03-17 18:26 ` Ævar Arnfjörð Bjarmason
@ 2018-03-17 20:51   ` Christian Couder
  0 siblings, 0 replies; 4+ messages in thread
From: Christian Couder @ 2018-03-17 20:51 UTC (permalink / raw)
  To: Yash Yadav
  Cc: git, Ævar Arnfjörð Bjarmason, Stefan Beller,
	Alban Gruin

On Sat, Mar 17, 2018 at 7:26 PM, Ævar Arnfjörð Bjarmason
<avarab@gmail.com> 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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [GSoC] Scripts to be conversted into builtins
  2018-03-17 12:44 [GSoC] Scripts to be conversted into builtins Yash Yadav
  2018-03-17 18:26 ` Ævar Arnfjörð Bjarmason
@ 2018-03-19 17:27 ` Johannes Schindelin
  1 sibling, 0 replies; 4+ messages in thread
From: Johannes Schindelin @ 2018-03-19 17:27 UTC (permalink / raw)
  To: Yash Yadav; +Cc: git

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-03-19 17:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-17 12:44 [GSoC] Scripts to be conversted into builtins Yash Yadav
2018-03-17 18:26 ` Ævar Arnfjörð Bjarmason
2018-03-17 20:51   ` Christian Couder
2018-03-19 17:27 ` Johannes Schindelin

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).