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

Re: Git Newbie - GSoC mini Project

From
Dennis Kaarsemaker <dennis@kaarsemaker.net>
Date
Mar 4, 2015, 07:49 UTC
Message-ID
<1425455386.1193.17.camel@kaarsemaker.net>
In-Reply-To
<CAMS+ib3LRT0xSzW-8Qkubbxc22RSifq=V8Za6TCrbDi2ko2ekA@mail.gmail.com>
On wo, 2015-03-04 at 11:50 +0530, Prudhvee Narasimha Sadha wrote:
Show 5 quoted lines
>        I'm a newbie to git. I started  working on git. I cloned the
> git repository and started hacking it. I need a suggestion on how to
> start working on the micro project "
> 
> Make "git -C '' cmd" not to barf".
git -C '' cmd currently throws an error:

$ git -C '' status fatal: Cannot change to '': No such file or directory

So the two things you should do are
- Determine what the desired behavior would be
- Implementing that behavior

For the first step, I'd send a mail to this list asking people for input, paying special attention to the responses of the core maintainers and possible GSOC mentors (I'm not one of them, but I think the error is actually the right behavior, I'd prefer git -C "$repodir" to bomb out if $repodir is unset. On the other hand cd '' is equivalent to not cd'ing at all so there's precedent to change this).

For the second step, you'll need to find the bit of code where the -C option is handled and add a special case for the empty string to do what came out of the discussion about wanted behavior.

-- 
Dennis Kaarsemaker
www.kaarsemaker.net
Previous: Prudhvee Narasimha SadhaNext: Matthieu Moy
Message 2 of 3 in “Git Newbie - GSoC mini Project”
  1. Prudhvee Narasimha SadhaMar 4, 2015
  2. Dennis KaarsemakerMar 4, 2015
  3. Matthieu MoyMar 4, 2015

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.