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

git range-diff picky about passed ranges

From
Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Date
Mar 6, 2020, 09:19 UTC
Message-ID
<20200306091933.mx2jmurmdnsjua4b@pengutronix.de>
Hello,

taking the Linux repository (with stable) as an example[1]. Commit 24906a41eecb73d51974ade0847c21e429beec60 was backported to stable/linux-5.3.y. Using git version 2.25.1 (as provided by Debian) and 2.26-rc0 (built from junio/master).

To compare these I'd like to use the rev^! syntax with git range-diff, but range-diff refuses:

	$ git range-diff dc5ae31afbae83038dfce8d2bd35bbe7ba05a536^!  24906a41eecb73d51974ade0847c21e429beec60^!
	fatal: no .. in range: 'dc5ae31afbae83038dfce8d2bd35bbe7ba05a536^!'
I would expect this command to give the same output as
	c1=dc5ae31afbae83038dfce8d2bd35bbe7ba05a536
	c2=24906a41eecb73d51974ade0847c21e429beec60
	git range-diff $c1^..$c1 $c2^..$c2

. After all, $c1^! is supposed to be equivalent to $c1^..$c1 (at least for commits with exactly on parent as is the case here).

Best regards Uwe

[1] so suitable remotes are:
	git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
	git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |
Message 1 of 1 in “git range-diff picky about passed ranges”
  1. Uwe Kleine-KönigMar 6, 2020

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.