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

Exlude files from git log -p

From
MMaaartin <grajcar1@seznam.cz>
Date
Oct 14, 2010, 20:06 UTC
Message-ID
<loom.20101014T214508-466@post.gmane.org>

Is it possible to exclude a couple of files from the output generated by "git log -p"? Enumerating all other files/dirs is not an option for me.

Background: Some files in my repo are generated source code and often contain 
quite a lot of changes. Their generation can't be done in a fully automatic 
fashion and it happens that it gets forgotten; that's why I need to version them 
as well.

I'm thinking about marking them as binary, this should remove their lines from the output, but it would make their comparison impossible (at least AFAIK).

Next: Jeff King
Message 1 of 2 in “Exlude files from git log -p”
  1. MaaartinOct 14, 2010
  2. Jeff KingOct 15, 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.