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

File extension conflict when working with git and latex

From
MBMatthias Beyer <mail@beyermatthias.de>
Date
Mar 21, 2014, 16:13 UTC
Message-ID
<20140321161324.GC2965@fu.192.168.200.1>
Hi,
I struggled with a really nasty issue today (and yesterday):

I work on a semester project paper which is written in latex and therefor version-controlled with git. We compile the document using pdflatex, we automate the compiling with make.

pdflatex generates some temporary files, which are required if you call it the second and third time (it is a top-down compiler, which needs to be called several times). One of the file extensions is ".idx", which (kind of) conflicts with file extensions in .git/.

Unfortunetely, we wrote our `make clean` task recursively. I think you can imagine what went wrong: The clean-task corrupted the repository, as it removed .idx files from within .git/.

I lost work because of this ugly name collision.
My question now:

I know, I can fix this by fixing the clean task in my Makefile. But maybe someone somewhere on this world doesn't know the git internals as good as me (and, of course, my coworker). Is there _any chance at all_ that this gets mentioned somewhere, so others don't fall into this pit?

-- 
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer

Proudly sent with mutt.
Happily signed with gnupg.
Next: Simon Ruderich
Message 1 of 7 in “File extension conflict when working with git and latex”
  1. Matthias BeyerMar 21, 2014
  2. Simon RuderichMar 21, 2014
  3. Matthias BeyerMar 21, 2014
  4. Simon RuderichMar 21, 2014
  5. Junio C HamanoMar 21, 2014
  6. Michael HaggertyMar 21, 2014
  7. Torsten BögershausenMar 22, 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.