From: Chris Torek Date: Fri, 19 Dec 2025 15:02:50 GMT Subject: Re: [PATCH] diff: add --no-indicators option Message-ID: In-Reply-To: <20251219145447.22234-1-haraldnordgren@gmail.com> On Fri, Dec 19, 2025 at 6:54 AM Harald Nordgren wrote: > Hi Chris! > > Thanks for the idea, but that doesn't seem fast at all 😅 It's terrifically easy to script. Instead of: git show $rev -- $path you need: git show ${rev}^:$path >$path.old git show ${rev}:$path >$path.new which in sh/bash is (you can fancy this up some): rev=$(git rev-parse "$1") || exit path=$2 followed by the two "git show" commands. Using ${rev}^ gets you the raw hash ID of the specified revision followed by the caret / hat suffix, which means "parent of the given rev", so all you need to specify to the mini-script is the same rev you'd pass to "git show" and the path name. (I don't need this often enough to bother with the script, I just type in the commands.) Chris