git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* change symlink
@ 2012-10-30 21:07 shawn wilson
  2012-10-30 21:19 ` Andreas Schwab
  0 siblings, 1 reply; 12+ messages in thread
From: shawn wilson @ 2012-10-30 21:07 UTC (permalink / raw)
  To: git

i'm curious why this is being reported as deleted in status and diff
and not modified? this was tested on a build of the master branch of
the current git repo (1.8.0).

mkdir t cd t; git --init

touch test
git add test
git commit test -m "test"

ln -s test t2
git add t2
git commit t2 -m "symlink"

rm t2
mkdir -p t2/one
ln -s test t2/one/test

this then shows up as:

 % git status
# On branch master
# Changes not staged for commit:
#   (use "git add/rm <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#       deleted:    t2
#
no changes added to commit (use "git add" and/or "git commit -a")
 % git --no-pager diff
diff --git a/t2 b/t2
deleted file mode 120000
index 30d74d2..0000000
--- a/t2
+++ /dev/null
@@ -1 +0,0 @@
-test
\\ No newline at end of file

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-10-31 13:44 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-30 21:07 change symlink shawn wilson
2012-10-30 21:19 ` Andreas Schwab
2012-10-30 21:24   ` shawn wilson
2012-10-30 21:35     ` Andreas Schwab
2012-10-30 21:42       ` shawn wilson
2012-10-30 21:50         ` Andreas Schwab
2012-10-30 22:03           ` shawn wilson
2012-10-30 22:09             ` Andreas Schwab
2012-10-30 22:22               ` shawn wilson
2012-10-31 12:05                 ` Jeff King
2012-10-31 12:30                   ` Jeff King
2012-10-31 13:44                     ` Jeff King

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).