bug: git log --follow does not honour --author option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

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.

Best,
Jaap


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 <myself@xxxxxxxxxxx>"
git mv foo bar
git commit -m "Let's rename this." --author "Random other person <random@xxxxxxxxxxx>"
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]



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux