From: Ron Garret <ron1@flownet.com>
To: git@vger.kernel.org
Subject: A git-mv question
Date: Mon, 01 Feb 2010 16:08:38 -0800 [thread overview]
Message-ID: <ron1-09EE6C.16083801022010@news.gmane.org> (raw)
If I do a git-mv *and* edit the file all in one commit, does that get
recorded in a way that allows git to track the change through the
changed file name? In other words, if I do just a git-mv (without
changing the file) git can track that by observing that two differently
named objects in two different commit trees contain the same blob. But
if the file is edited then the blobs will be different. Is git smart
enough to distinguish a git-mv and edit from, say, the equivalent git-rm
and git-add? If so, how does it do it?
Thanks,
rg
next reply other threads:[~2010-02-02 0:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-02 0:08 Ron Garret [this message]
2010-02-02 0:29 ` A git-mv question Nicolas Pitre
2010-02-02 0:46 ` Junio C Hamano
2010-02-02 7:21 ` Ron Garret
2010-02-02 15:32 ` Jakub Narebski
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=ron1-09EE6C.16083801022010@news.gmane.org \
--to=ron1@flownet.com \
--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