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

Re: [PATCH 2/2] resolve_gitlink_ref: ignore non-repository paths

From
Jeff King <peff@peff.net>
Date
Jan 22, 2016, 22:40 UTC
Message-ID
<20160122224056.GA15965@sigill.intra.peff.net>
In-Reply-To
<CAGZ79kYU_=w0VWFRNGamP_nnnjyF6AcOj+A8r8GfhyrJMQzi9w@mail.gmail.com>
On Fri, Jan 22, 2016 at 02:36:54PM -0800, Stefan Beller wrote:
> Impressive performance improvements. :)

"Accidentally quadratic" bugs are some of my favorites, because it's usually easy to show off the results. Of course, the repo in p7300 is pretty ridiculous, and most people won't see any speedup. I'll be curious to hear about Andreas's case, as it is a real-world one which may see some improvement.

Show 10 quoted lines
> > BTW, what if you have
> > precious content in a ".git" file?
> 
> I'd kindly ask to use a different version control in that case.
> 
> Q: What can you use Git for?
> A: Everything including version control, backup, deploying software,
>     except when there is a file named .git with precious content.
> 
> ;)

Yeah, I think that is my attitude as well. Just because your ".git" file is not actually a real gitfile does not make it a good idea. We do not list it in "ls-files -o", but it is not like you could commit it, either; we explicitly prevent it from being added to the index.

-Peff
Previous: Stefan BellerNext: Andreas Krey
Message 8 of 9 in “Minor bug, git ls-files -o aborts because of broken submodules”
  1. Duy NguyenJan 22, 2016
  2. Jeff KingJan 22, 2016
  3. Jeff KingJan 22, 2016
  4. 1/2 clean: make is_git_repository a public functionJeff King, Jan 22, 2016
  5. 2/2 resolve_gitlink_ref: ignore non-repository pathsJeff King, Jan 22, 2016
  6. Jeff KingJan 22, 2016
  7. Stefan BellerJan 22, 2016
  8. Jeff KingJan 22, 2016
  9. Andreas KreyJan 25, 2016

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.