git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[BUG?] git log with --follow and --skip

From
Christian Couder <christian.couder@gmail.com>
Date
Oct 6, 2016, 20:24 UTC
Message-ID
<CAP8UFD30HNTzF8grvPYjkafF6B=iw3R1t2S3swf4HUmPU5iuVQ@mail.gmail.com>
Hi,

At GitLab, we are annoyed by the fact that `git log` doesn't seem to work well when using it with both --follow and --skip.

For example:
> git log --oneline -6 README.md

a299e3a README.md: format CLI commands with code syntax c9a014e README.md: don't take 'commandname' literally a217f07 README.md: move down historical explanation about the name 28513c4 README.md: don't call git stupid in the title d9b297d README.md: move the link to git-scm.com up 6164972 README.md: add hyperlinks on filenames

> git log --skip 2 --oneline -6 README.md

a217f07 README.md: move down historical explanation about the name 28513c4 README.md: don't call git stupid in the title d9b297d README.md: move the link to git-scm.com up 6164972 README.md: add hyperlinks on filenames 4ad21f5 README: use markdown syntax

The above 2 commands seem to work well, but:
> git log --follow --skip 2 --oneline -6 README.md

a299e3a README.md: format CLI commands with code syntax c9a014e README.md: don't take 'commandname' literally a217f07 README.md: move down historical explanation about the name 28513c4 README.md: don't call git stupid in the title d9b297d README.md: move the link to git-scm.com up 6164972 README.md: add hyperlinks on filenames

So with --follow it looks like the top 2 commits are not skipped any more.

Thanks, Christian.

Message 1 of 1 in “[BUG?] git log with --follow and --skip”
  1. Christian CouderOct 6, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.