git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Want to start contributing to git through this task: "Use dir-iterator to avoid explicit recursiv

From
VKvaibhav kurhe <vaibhav.kurhe@gmail.com>
Date
Apr 9, 2018, 13:51 UTC
Message-ID
<CAHKv1qs-cnmcd2pR9iv=Xx1aKnb=SEsCQ7OAjy-4yHhCE_e_dw@mail.gmail.com>

Hello all, I am a Git user since last 2 years and now I want to contribute towards its development. Yesterday, I had a discussion with Kevin on the IRC channel #git-devel, where I got this link:- https://git.github.io/SoC-2018-Microprojects/. Out of the tasks listed down in above URL, I found this one interesting:- "Use dir-iterator to avoid explicit recursive directory traversal" ==> Some places in git use raw API opendir/readdir/closedir to traverse a directory recursively, which usually involves function recursion. Now that we have struct dir_iterator (see dir-iterator.h), convert these to use the dir-iterator to simplify the code. Do only one conversion per microproject.

I cloned the git repo and browsed through it. I found that in git clone (buildtin/clone.c), raw directory API readdir() is used recursively. So there is a place to change it to use the already available "dir_iterator" structure.

I just want to know, if anybody is working on this task already. If not, then I can proceed to work.

Thank you and Regards, Vaibhav

Next: Eric Sunshine
Message 1 of 3 in “Want to start contributing to git through this task: "Use dir-iterator to avoid explicit recursiv”
  1. vaibhav kurheApr 9, 2018
  2. Eric SunshineApr 9, 2018
  3. Johannes SchindelinApr 10, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.