Git development
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Gene Thomas <gene@nlc.co.nz>
Cc: "git\@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: git diff --name-status for deleted files
Date: Fri, 15 Sep 2017 14:47:57 +0900	[thread overview]
Message-ID: <xmqqd16sy0ky.fsf@gitster.mtv.corp.google.com> (raw)
In-Reply-To: <PS1PR0601MB188364D92388A08D1D62E7078A6C0@PS1PR0601MB1883.apcprd06.prod.outlook.com> (Gene Thomas's message of "Fri, 15 Sep 2017 05:18:43 +0000")

Gene Thomas <gene@nlc.co.nz> writes:

> Junio,
>            Thanks for your reply. So git is essentially doing a
>            "git commit" when I "git rm".

No. You'd probably need to read a bit more on Git; unlike other
systems like CVS and SVN, where you only have two states
(i.e. committed contents vs files on the filesystem), we have three
states (i.e. the index in addition to the above two).

"git add file" and "git rm file" make the index match what's on the
filesystem wrt "file".  They never touch committed contents, which
"git commit" command is about.


      reply	other threads:[~2017-09-15  5:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-14 22:11 git diff --name-status for deleted files Gene Thomas
2017-09-15  2:57 ` Junio C Hamano
2017-09-15  5:18   ` Gene Thomas
2017-09-15  5:47     ` Junio C Hamano [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xmqqd16sy0ky.fsf@gitster.mtv.corp.google.com \
    --to=gitster@pobox.com \
    --cc=gene@nlc.co.nz \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox