Re: change symlink

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: change symlink

From: Andreas Schwab <hidden>
Date: 2016-06-15 22:55:09

shawn wilson [off-list ref] writes:
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
  git add 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")
I'd expected t2/one/test be reported as untracked.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

Re: change symlink

From: shawn wilson <hidden>
Date: 2016-06-15 22:55:09

On Tue, Oct 30, 2012 at 9:19 PM, Andreas Schwab [off-list ref] wrote:
shawn wilson [off-list ref] writes:
quoted
 % 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")
I'd expected t2/one/test be reported as untracked.
that's fine - i can do 'git list-files --others' but should t2 be
reported as 'deleted'?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help