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

git diff - howto exclude dir from diff?

From
JSJan III Sobieski <jan3sobi3ski@gmail.com>
Date
Sep 6, 2010, 11:13 UTC
Message-ID
<AANLkTikUadS+tj3ARdRqo=PSBVhTsJaUxaJv+=4hMf4s@mail.gmail.com>
Hi,

I wonder if it's possible to exclude a dir from the diff. I want to get some diffstats from Linux tree

git diff v2.6.35..v2.6.36-rc3 --stat
but without drivers/staging/ dir. Is it possible?

Regards, Jan

-- 
Jan III Sobieski
Next: Sylvain Rabot
Message 1 of 2 in “git diff - howto exclude dir from diff?”
  1. Jan III SobieskiSep 6, 2010
  2. Sylvain RabotSep 6, 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.