git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Git log: filtering by date and by lines do not work together
@ 2020-07-03 14:14 Мария Долгополова
  2020-07-04 12:56 ` René Scharfe
  2020-07-04 12:56 ` [PATCH] revision: disable min_age optimization with line-log René Scharfe
  0 siblings, 2 replies; 4+ messages in thread
From: Мария Долгополова @ 2020-07-03 14:14 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 1200 bytes --]

Hi! I would like to report the bug.

I want to get commits that change specific lines in a specific file
and were made before a specific date.

Steps:
1) I apply filtering by date: --before="2016-11-18"
Result is in the picture FilteringByDate.png. Commit
570778797effd69bd4536c51125b7d2e8f654c08 is presented.

2) I apply filtering by lines:
-L33,34:src/main/java/org/toradocu/translator/Subject.java
Result is in the picture FilteringByLines.png . Commit
570778797effd69bd4536c51125b7d2e8f654c08 is presented.

3) Finally, I apply filtering by lines and by date:
--before="2016-11-18"
-L33,34:src/main/java/org/toradocu/translator/Subject.java
Result is in the picture FilteringByDatesAndLines.png . Commit
570778797effd69bd4536c51125b7d2e8f654c08 is NOT presented.

Expected Result: the commit is presented in filter 1 and in filter 2,
so it must be presented in filter “1 AND 2”

Actual Result: the commit is NOT presented in filter “1 AND 2”

Environment: git version 2.27.0.windows.1

 I beg you to provide me with a workaround. I am doing research work
on analyzing commits in open source projects. Therefore, this
functionality is very important to me.

[-- Attachment #2: FilteringByDate.png --]
[-- Type: image/png, Size: 43821 bytes --]

[-- Attachment #3: FilteringByDatesAndLines.png --]
[-- Type: image/png, Size: 13292 bytes --]

[-- Attachment #4: FilteringByLines.png --]
[-- Type: image/png, Size: 63551 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-07-07  1:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-03 14:14 Git log: filtering by date and by lines do not work together Мария Долгополова
2020-07-04 12:56 ` René Scharfe
2020-07-04 12:56 ` [PATCH] revision: disable min_age optimization with line-log René Scharfe
2020-07-07  1:37   ` Junio C Hamano

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