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
Duy Nguyen <pclouds@gmail.com>
Date
Jun 8, 2014, 10:17 UTC
Message-ID
<CACsJy8AyvkA20mD283=hWp7WFJXBu3-ViXHuS4jtMzz2hpBi2Q@mail.gmail.com>
In-Reply-To
<1401912909-29654-1-git-send-email-pasha.bolokhov@gmail.com>
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?
-- 
Duy
Previous: Pasha BolokhovNext: Pasha Bolokhov
Message 2 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.