list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
* bug: git log --follow does not honour --author option
@ 2022-01-13 11:58 Jaap Eldering
  0 siblings, 0 replies; only message in thread
From: Jaap Eldering @ 2022-01-13 11:58 UTC (permalink / raw)
  To: git


I ran into this issue, see the output from git bugreport below. I first found it in version 2.30.2 from Debian Bullseye, but was able reproduce it also with a build from the next branch.


What did you do before the bug happened? (Steps to reproduce your issue)

A minimal working example reproducing the bug:

git init test-log-follow-author
cd test-log-follow-author
echo "Some contents." > foo
git add foo
git commit -m "Initial commit." --author "Myself <>"
git mv foo bar
git commit -m "Let's rename this." --author "Random other person <>"
git log --follow --author myself -- bar

What did you expect to happen? (Expected behavior)

I expected the last git log command to show the initial commit made
by myself.

What happened instead? (Actual behavior)

No commits show up.

What's different between what you expected and what actually happened?

The --author option doesn't seem to find commits across renames when
using --follow, except for when searching the author who renamed the
file: these are found, and all commits also show up as expected when
no --author argument is used.

Anything else you want to add:

[System Info]
git version:
git version 2.35.0.rc0.227.g00780c9af4
cpu: x86_64
built from commit: 00780c9af44409a68481c82f63a97bd18bb2593e
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
uname: Linux 5.10.0-10-amd64 #1 SMP Debian 5.10.84-1 (2021-12-08) x86_64
compiler info: gnuc: 10.2
libc info: glibc: 2.31
$SHELL (typically, interactive shell): /bin/bash

[Enabled Hooks]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-13 12:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-13 11:58 bug: git log --follow does not honour --author option Jaap Eldering

Code repositories for project(s) associated with this inbox:

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).