* weird rename
@ 2011-05-31 19:12 Fabian Zeindl
2011-05-31 19:18 ` Reece Dunn
0 siblings, 1 reply; 3+ messages in thread
From: Fabian Zeindl @ 2011-05-31 19:12 UTC (permalink / raw)
To: git
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?
Regards
Fabian Zeindl
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: weird rename
2011-05-31 19:12 weird rename Fabian Zeindl
@ 2011-05-31 19:18 ` Reece Dunn
2011-05-31 19:19 ` Fabian Zeindl
0 siblings, 1 reply; 3+ messages in thread
From: Reece Dunn @ 2011-05-31 19:18 UTC (permalink / raw)
To: Fabian Zeindl; +Cc: git
On 31 May 2011 20:12, Fabian Zeindl <fabian.zeindl@gmail.com> wrote:
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: weird rename
2011-05-31 19:18 ` Reece Dunn
@ 2011-05-31 19:19 ` Fabian Zeindl
0 siblings, 0 replies; 3+ messages in thread
From: Fabian Zeindl @ 2011-05-31 19:19 UTC (permalink / raw)
To: Reece Dunn; +Cc: git
On May 31, 2011, at 9:18 PM, Reece Dunn wrote:
> /dev/null is used to indicate "does not exist"
yeah i know that :)
> Comparing /dev/null with A -- A is a new (added) file.
> Comparing A with /dev/null -- A is deleted.
ok, i deleted a similar sounding file (3.7M3 instead of 3.7M7), i just wonder
why git got that as a rename. or the GUI (GitX) at least.
fabian
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-05-31 19:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-31 19:12 weird rename Fabian Zeindl
2011-05-31 19:18 ` Reece Dunn
2011-05-31 19:19 ` Fabian Zeindl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).