From: Kees Cook <keescook@chromium.org>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: linux-next@vger.kernel.org
Subject: Re: change to Next/SHA1s ?
Date: Mon, 28 Feb 2022 15:05:54 -0800 [thread overview]
Message-ID: <202202281503.6D247902@keescook> (raw)
In-Reply-To: <20220301094644.58360917@canb.auug.org.au>
On Tue, Mar 01, 2022 at 09:46:44AM +1100, Stephen Rothwell wrote:
> Hi Kees,
>
> On Mon, 28 Feb 2022 10:43:37 -0800 Kees Cook <keescook@chromium.org> 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).
My use case is that I find myself with some frequency looking at "git
show next-YYYYMMDD" to see the trees to see what date a given tree is on
(some update frequently, some don't, etc).
> 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
Right, I can do it manually, but I was wondering if such a change would
be useful to others, or troublesome, etc. :) I can live without it, for
sure; I just thought I'd ask. :)
--
Kees Cook
prev parent reply other threads:[~2022-02-28 23:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-28 18:43 change to Next/SHA1s ? Kees Cook
2022-02-28 22:46 ` Stephen Rothwell
2022-02-28 23:05 ` Kees Cook [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202202281503.6D247902@keescook \
--to=keescook@chromium.org \
--cc=linux-next@vger.kernel.org \
--cc=sfr@canb.auug.org.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.