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

format-patch on permission change gives empty patch

From
DMDavid Miller <davem@davemloft.net>
Date
Oct 7, 2010, 00:37 UTC
Message-ID
<20101006.173714.245380201.davem@davemloft.net>

When I ask git to format-patch a commit that is just a file permission change, it ends up generating an empty file, not even the commit message is included.

davem@sunset:~/src/GIT/net-2.6$ git show
commit a5dbc62ed61bf4cc57e22b78e5794880f1c74b90
Author: Joe Perches <joe@perches.com>
Date:   Wed Oct 6 17:32:49 2010 -0700
    Documentation/networking/ixgbevf.txt: Change file permissions to 644
    
    Signed-off-by: Joe Perches <joe@perches.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
You have new mail in /var/mail/davem
davem@sunset:~/src/GIT/net-2.6$ git format-patch HEAD^
0001-Documentation-networking-ixgbevf.txt-Change-file-per.patch
davem@sunset:~/src/GIT/net-2.6$ ls -l 0001-Documentation-networking-ixgbevf.txt-Change-file-per.patch 
-rw-r--r-- 1 davem davem 0 Oct  6 17:36 0001-Documentation-networking-ixgbevf.txt-Change-file-per.patch
davem@sunset:~/src/GIT/net-2.6$ git version
git version 1.7.3.1
Next: David Miller
Message 1 of 9 in “format-patch on permission change gives empty patch”
  1. David MillerOct 7, 2010
  2. David MillerOct 7, 2010
  3. Junio C HamanoOct 7, 2010
  4. Junio C HamanoOct 7, 2010
  5. Sverre RabbelierOct 7, 2010
  6. Jakub NarebskiOct 7, 2010
  7. Sverre RabbelierOct 7, 2010
  8. Nicolas PitreOct 7, 2010
  9. Junio C HamanoOct 7, 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.