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

Re: [PATCH v5] Add an explicit GIT_DIR to the list of excludes

From
PBPasha Bolokhov <pasha.bolokhov@gmail.com>
Date
Jun 10, 2014, 03:18 UTC
Message-ID
<CAKpPgveXen9sQefo8dva1Uy4YOyroT6cPXLzgUvxj93Zqw13zw@mail.gmail.com>
In-Reply-To
<CACsJy8AyvkA20mD283=hWp7WFJXBu3-ViXHuS4jtMzz2hpBi2Q@mail.gmail.com>
Show 6 quoted lines
> On Thu, Jun 5, 2014 at 3:15 AM, Pasha Bolokhov <pasha.bolokhov@gmail.com> wrote:
>> +       /* only add it if GIT_DIR does not end with '.git' or '/.git' */
>> +       if (len < 4 || strcmp(n_git + len - 4, ".git") ||
>> +           (len > 4 && n_git[len - 5] != '/')) {
>
> Hmm.. should we exclude "foobar.git" as well?
    Why wouldn't we? Everything that has basename ".git" is hard-wired
to be excluded, but everything else, including "foobar.git" should be
added to the excludes manually... How is it better than just "foobar"?
Previous: Duy NguyenNext: Duy Nguyen
Message 3 of 10 in “Add an explicit GIT_DIR to the list of excludes”
  1. Add an explicit GIT_DIR to the list of excludesPasha Bolokhov, Jun 4, 2014
  2. Duy NguyenJun 8, 2014
  3. Pasha BolokhovJun 10, 2014
  4. Duy NguyenJun 11, 2014
  5. Add an explicit GIT_DIR to the list of excludesPasha Bolokhov, Jun 11, 2014
  6. Johannes SixtJun 12, 2014
  7. Pasha BolokhovJun 13, 2014
  8. Junio C HamanoJun 13, 2014
  9. Add an explicit GIT_DIR to the list of excludesPasha Bolokhov, Jun 14, 2014
  10. Add an explicit GIT_DIR to the list of excludesPasha Bolokhov, Jun 13, 2014

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.