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

git log --follow --reverse ignores --follow

From
VSValentin Spreckels <valentin.spreckels@informatik.uni-oldenburg.de>
Date
Nov 5, 2012, 22:51 UTC
Message-ID
<50984302.4000807@Informatik.Uni-Oldenburg.DE>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I found something looking like a bug:

The following lines prepares a small exmaple: # create git repo git init # create file a and commit it touch a && git add a && git commit -m first # rename a to b and commit it git mv a b && git commit -m second

After this git log's behavior differs from my expectations, when run like this: git log --follow --reverse b

Expected result: A list of both commits starting with second or a error message if git log cannot run with --follow and --reverse combined.

Actual result: A list showing only the second commit.

It looks like git log silently ignores --follow when run with --reverse.
Observed with git versions 1.7.8.6 and 1.7.11.2
Valentin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iQIcBAEBAgAGBQJQmEL/AAoJEANdk65I57uzbE0P/i0p8mlBcGWI+WyPqU7dhAmO 3jHLMmqNV12bm9zeNKuKxQPDS5IzMWRwDpO6GXdn8BQauQtpwB0POLXBIWl9pP2g TOGJjIUL/Rd7+G4FF1vcSUxd9LESlPDQTL+J2F3B7+KRMRzxxsbNv/5826w7HQHg ck6XfrmkFxoIn6w6CH6pCncRFl6cb7EqrMZIhGclJvDqXKi4DHRa3XpPRCle/Xa1 2P65kb0va+LzX2nUdfKR/WeH0V0XPURyObr/NN0ecVIrLj3roV/0OZBg/AsQwu3Z Zw4CM5nL0DsgD81FEc8cToe5eJwi5/VH56+CbDyr+wcLj4BO4niS3eQqQKmyiJS7 2/Pny+IZOZmIJzh5+6d0puufKut877PIRoJTs0P8l+dXU9xIbzwVTTcWDpKQt5Mx Mzi6oSpCLDuvBo+WCjanqtF2oNoLnbfq9nD/KgmIH/XTLKsryL48PFXx1b+7vGuG hmzlcRies3Xpkx0cegzqSngl3/I1Rq8hEbJhcJA4SrJFS2sVj8lGALPgFQdhif2L N0c5DNUD9F5pH/U11a0YnOxtkFyB+LjXqE2zN9Mz+t0TZ69+y6qZMrxHbAoeNDMX Do22J9jgSc80VE3Cdn8Cwe/xVLoJCvc7wSUpBbTQjDhOZbv7Zbtjl1venS3/q4fk wcOSFLYb0Heqm8Qxwf+d =D+B2 -----END PGP SIGNATURE-----

Message 1 of 1 in “git log --follow --reverse ignores --follow”
  1. Valentin SpreckelsNov 5, 2012

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.