All of lore.kernel.org
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Eugen Konkov <kes-kes@yandex.ru>
Cc: KES <kes-kes@yandex.ua>, git@vger.kernel.org
Subject: Re: Feature request: implement '--follow' option for `git blame`
Date: Sun, 12 Apr 2015 22:32:33 -0700	[thread overview]
Message-ID: <xmqqiod04mq6.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <209433431.20150410094038@yandex.ru> (Eugen Konkov's message of "Fri, 10 Apr 2015 09:40:38 +0300")

Eugen Konkov <kes-kes@yandex.ru> writes:

> I agree with your complex example.

Note that it is a norm, not anything complex, that we do not rename
a file wholesale.

> But it will be great to guess in simple case, when in version v1.0
> only one file A which were renamed into C half year later.

So you used to have A and somebody renamed that into C in the past.
The content of C in the current version is what you used to have in
A.

What should happen if you also have A, whose contents do not have
any relation to that old A, in today's code?

What should happen if you also used to have C, whose contents do not
have any relation to that old A or current C?

What happens if you added such random guessing and you were not so
familiar with the project history to know these unrelated A's and
C's that used to exist in the past?

Current Git _consistently_ behaves, even in the presense of anything
that can lead to confusing behaviour.  When you ask

    git blame OLD -- A

it does not matter if you have an unrelated A in the revision that
you happen to have checked out in your working tree (i.e. HEAD).
The above command line talks about the old revision OLD and A talks
about the path A in that old revision.

  reply	other threads:[~2015-04-13  5:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-06 12:12 Feature request: implement '--follow' option for `git blame` KES
2015-04-07 17:26 ` Fwd: " KES
2015-04-08  2:48 ` Junio C Hamano
2015-04-10  6:40   ` Re[2]: " Eugen Konkov
2015-04-13  5:32     ` Junio C Hamano [this message]
2015-04-13 19:07       ` Eugen Konkov

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=xmqqiod04mq6.fsf@gitster.dls.corp.google.com \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=kes-kes@yandex.ru \
    --cc=kes-kes@yandex.ua \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.