Re: change to Next/SHA1s ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Kees,

On Mon, 28 Feb 2022 10:43:37 -0800 Kees Cook <keescook@xxxxxxxxxxxx> 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

Attachment: pgpnGszqu5jXy.pgp
Description: OpenPGP digital signature


[Index of Archives]     [Linux Kernel]     [Linux USB Development]     [Yosemite News]     [Linux SCSI]

  Powered by Linux