From: "Steinar H. Gunderson" <steinar+git@gunderson.no>
To: git@vger.kernel.org
Subject: git log --follow wrongly includes delete commit
Date: Thu, 26 Jan 2023 14:05:09 +0100 [thread overview]
Message-ID: <20230126130509.ovii7ji7hi5wm7qx@sesse.net> (raw)
Hi,
I'm in the Chromium repository; it can be checked out at
https://chromium.googlesource.com/chromium/src.git (you don't need the
sub-repostiories). HEAD is pointing to 4e0db738b37c. git 2.39.1.
When I run
git log --raw --follow base/third_party/xdg_user_dirs/xdg_user_dir_lookup.h
this is the first commit that it lists (snipped):
commit 5d4451ebf298d9d71f716cc0135f465cec41fcd0
[...]
:100644 000000 9e81e1b53029f 0000000000000 D base/third_party/xdg_user_dirs/xdg_user_dir_lookup.h
This indicates that the last thing that happened to the file is a delete.
However, the file isn't deleted; it's alive and well. git log without
--follow does not list this commit at all.
So either git log --follow is listing a delete commit that doesn't make
sense, or it's missing whatever commit put it back into place afterwards.
/* Steinar */
--
Homepage: http://www.sesse.net/
next reply other threads:[~2023-01-26 13:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-26 13:05 Steinar H. Gunderson [this message]
2023-01-26 16:38 ` git log --follow wrongly includes delete commit Derrick Stolee
2023-01-26 17:18 ` Steinar H. Gunderson
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230126130509.ovii7ji7hi5wm7qx@sesse.net \
--to=steinar+git@gunderson.no \
--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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).