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

Deleting binary file

From
KSKirill Shutemov <k.shutemov@gmail.com>
Date
Nov 9, 2006, 09:47 UTC
Message-ID
<1d592d70611090147p6f10f921s740e3cc19cb67c09@mail.gmail.com>
Why can't I delete binary file via patch?
> git-init-db
defaulting to local storage area
> cp /bin/sh .
> git-add sh
> git-commit -m 'test'
Committing initial tree efa3b1f9fdc4cdb8aab5bf869f580664a52ac04c
> git-rm sh
rm 'sh'
> rm sh
> git-commit -m 'test'
> git-format-patch HEAD^
0001-test.txt
> git-reset --hard HEAD^1
> git-applymbox 0001-test.txt
1 patch(es) to process.
Applying 'test'
error: No changes
> cat 0001-test.txt
From 9fd9a46e5404e7c389cfb48026b68d46faa47081 Mon Sep 17 00:00:00 2001
From: Kirill A. Shutemov <k.shutemov@gmail.com>
Date: Wed, 8 Nov 2006 11:19:35 +0200
Subject: [PATCH] test

--- sh | Bin 1 files changed, 0 insertions(+), 0 deletions(-)

diff --git a/sh b/sh
deleted file mode 100755
index a57a92a..0000000
Binary files a/sh and /dev/null differ
Next: Jakub Narebski
Message 1 of 3 in “Deleting binary file”
  1. Kirill ShutemovNov 9, 2006
  2. Jakub NarebskiNov 9, 2006
  3. Jakub NarebskiNov 9, 2006

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.