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

Re: How do I qualify paths in the .gitignore file w.r.t. the repo root directory?

From
Sitaram Chamarty <sitaramc@gmail.com>
Date
Feb 25, 2009, 04:01 UTC
Message-ID
<slrngq9glm.l8b.sitaramc@sitaramc.homelinux.net>
In-Reply-To
<e38bce640902241714s720a4e23v49e0a4ab22da9bde@mail.gmail.com>
On 2009-02-25, Brent Goodrick <bgoodr@gmail.com> wrote:
> apparently such is not the case with git (and I conclude from this
> that it is actually not possible to store fully qualified paths
> _unless_ the $GIT_DIR is right under the root filesystem).  This isn't
> a problem for me, and probably not for most folks, but it was

I suspect it's not _useful_ also, because it would prevent you from relocating your git work tree to some other path while getting predictable results. I'm unable to think of a use-case where that would be desirable, but I admit I haven't thought about it too much.

> confusing to me the way it was written in the man page.

If you could look at either of my two submissions in this thread, and comment on whether they would have helped you in this regard, I'd appreciate it very much.

I prefer the second one that I sent, but don't let that prejudice you ;-)

Previous: Brent Goodrick
Message 15 of 15 in “How do I qualify paths in the .gitignore file w.r.t. the repo root directory?”
  1. Brent GoodrickFeb 24, 2009
  2. Junio C HamanoFeb 24, 2009
  3. Sitaram ChamartyFeb 24, 2009
  4. Junio C HamanoFeb 24, 2009
  5. Sitaram ChamartyFeb 24, 2009
  6. Sitaram ChamartyFeb 25, 2009
  7. Junio C HamanoFeb 25, 2009
  8. Sitaram ChamartyFeb 25, 2009
  9. Junio C HamanoFeb 25, 2009
  10. Björn SteinbrinkFeb 26, 2009
  11. Sitaram ChamartyFeb 26, 2009
  12. Sitaram ChamartyFeb 26, 2009
  13. Junio C HamanoFeb 26, 2009
  14. Brent GoodrickFeb 25, 2009
  15. Sitaram ChamartyFeb 25, 2009

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.