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

Re: weird rename

From
RDReece Dunn <msclrhd@googlemail.com>
Date
May 31, 2011, 19:18 UTC
Message-ID
<BANLkTikuZ-ig0einn+GhMh9EJp4jp2TCxg@mail.gmail.com>
In-Reply-To
<7760D048-5534-42A2-82D2-D5BB9C75739C@gmail.com>
On 31 May 2011 20:12, Fabian Zeindl <fabian.zeindl@gmail.com> wrote:
Show 9 quoted lines
> Hi,
>
>  i use a GUI for git and discovered that it showed me a rename in a commit where i actually replaced a file.
> So i looked at the commit via git show, and found the following:
>
> Binary files /dev/null and b/lib/swt-3.7M7-win32.jar differ
> diff --git a/lib/swt-3.7M7-win64.jar b/lib/swt-3.7M7-win64.jar
>
> Where is the /dev/null coming from?

/dev/null is used to indicate "does not exist" -- it is a file device on Unix boxes that emits null characters or consumes output sending it to oblivion :)!

Comparing /dev/null with A -- A is a new (added) file.
Comparing A with /dev/null -- A is deleted.
HTH,
- Reece
Previous: Fabian ZeindlNext: Fabian Zeindl
Message 2 of 3 in “weird rename”
  1. Fabian ZeindlMay 31, 2011
  2. Reece DunnMay 31, 2011
  3. Fabian ZeindlMay 31, 2011

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.