Subject: Re: change to Next/SHA1s ?

From: Stephen Rothwell <[email-masked]>
Date: Tue, 1 Mar 2022 09:46:44 +1100

Hi Kees,

On Mon, 28 Feb 2022 10:43:37 -0800 Kees Cook <[email-masked]> wrote:
>
> I was curious if it might be possible to emit the commit date along with
> the tree/SHA1 map in Next/SHA1s? That would let people trivially scan
> the file for relative age of trees, etc.

Of course it is possible :-)  Just wondering what the use case is?  It
does make it a bit harder to read (wider lines).

while read tree sha; do
	if [ "$tree" = 'Name' ] || [ "$tree" = '----' ]; then
		printf '%s\t%s\n' "$tree" "$sha"
	else
		git log -1 --date=iso-strict-local --pretty="$tree	$sha %cd" "$sha"
	fi
done <Next/SHA1s

-- 
Cheers,
Stephen Rothwell