From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Schwab Subject: Re: change symlink Date: Tue, 30 Oct 2012 22:19:07 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Cc: git@vger.kernel.org To: shawn wilson X-From: git-owner@vger.kernel.org Tue Oct 30 22:19:42 2012 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TTJDp-0003EF-Db for gcvg-git-2@plane.gmane.org; Tue, 30 Oct 2012 22:19:41 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934722Ab2J3VTO (ORCPT ); Tue, 30 Oct 2012 17:19:14 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:35364 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934669Ab2J3VTM (ORCPT ); Tue, 30 Oct 2012 17:19:12 -0400 Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3Xrlt34QJqz3hhk2; Tue, 30 Oct 2012 22:19:07 +0100 (CET) X-Auth-Info: Ev6QPq/emd7Nm2hY9+S0/pTrNLQxe9TnGtFnyJhV71M= Received: from igel.home (ppp-88-217-108-88.dynamic.mnet-online.de [88.217.108.88]) by mail.mnet-online.de (Postfix) with ESMTPA id 3Xrlt344wdzbbhR; Tue, 30 Oct 2012 22:19:07 +0100 (CET) Received: by igel.home (Postfix, from userid 501) id 43985CA2A2; Tue, 30 Oct 2012 22:19:07 +0100 (CET) X-Yow: I have accepted Provolone into my life! In-Reply-To: (shawn wilson's message of "Tue, 30 Oct 2012 21:07:07 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: shawn wilson 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 ..." to update what will be committed) > # (use "git checkout -- ..." 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."