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

Can I exclude .gitmodules (or any file) from git-format-patch?

From
TTTimur Tabi <timur@freescale.com>
Date
Feb 4, 2010, 22:10 UTC
Message-ID
<ed82fe3e1002041410u65c2332atf5493f751fac8c17@mail.gmail.com>

Is there a way I can get git-format-patch to ignore specific files? Specifically, I want it to ignore .gitmodules. This file is changed whenever a submodule is added or removed, but I don't want git format-patch to pick it up. I already specify --ignore-submodules, so I was expecting format-patch to ignore *everything* related to sobmodules.

Perhaps --ignore-submodules should also ignore any changes to .gitmodules?
(Why is .gitmodules not in the .git directory, anyway?)
-- 
Timur Tabi
Linux kernel developer at Freescale
Message 1 of 1 in “Can I exclude .gitmodules (or any file) from git-format-patch?”
  1. Timur TabiFeb 4, 2010

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.