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

Re: [RFC] TODO in read-cache.c

From
Duy Nguyen <pclouds@gmail.com>
Date
Apr 6, 2019, 12:18 UTC
Message-ID
<CACsJy8DNb+Xu_bLAGw3WHECygxMLQHkaqGhJ89SY_yGF+c20bw@mail.gmail.com>
In-Reply-To
<CAMknYENJogZ6vxs3zxivD3TPtDnfE9DFQDTwri+eLJmTwr4zxw@mail.gmail.com>
On Sat, Apr 6, 2019 at 7:14 PM Kapil Jain <jkapil.cs@gmail.com> wrote:
Show 11 quoted lines
> > In some cases, it will be simple. For example, if you have a look at
> > repo_read_index(), it already knows what repo it handles, so you can
> > just extend read_index_from() to take 'struct repository *' and pass
> > 'repo' to it.
> >
> > Be careful though, repository and istate does not have one-to-one
> > relationship (I'll leave it to you to find out why). So you cannot
> > replace
>
> should i run all the tests after making the changes, or are there some
> specific ones.

'make test' (with -j<something> to speed up) should always be done for any kind of changes. But I'm pretty sure you'll hit plenty compiler errors that will make you pause and think.

-- 
Duy
Previous: Kapil JainNext: Kapil Jain
Message 4 of 7 in “[RFC] TODO in read-cache.c”
  1. Kapil JainApr 6, 2019
  2. Duy NguyenApr 6, 2019
  3. Kapil JainApr 6, 2019
  4. Duy NguyenApr 6, 2019
  5. Kapil JainApr 6, 2019
  6. Duy NguyenApr 7, 2019
  7. Taylor BlauApr 9, 2019

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.