On Mon, Mar 22, 2021 at 5:01 PM Jason Ekstrand <jason@xxxxxxxxxxxxxx> wrote: > > On Mon, Mar 22, 2021 at 7:01 AM Jani Nikula <jani.nikula@xxxxxxxxxxxxxxx> wrote: > > > > On Sat, 20 Mar 2021, Jason Ekstrand <jason@xxxxxxxxxxxxxx> wrote: > > > This reverts commit 88be76cdafc7e60e2e4ed883bfe7e8dd7f35fa3a. This API > > > > Small nit, I think it would be useful to reference commits with the > > citation style: > > > > 88be76cdafc7 ("drm/i915: Allow userspace to specify ringsize on construction") > > Done. > > > > > I use this monster in my .gitconfig: > > > > [alias] > > cite = "!f() { git log -1 '--pretty=format:%H (\"%s\")%n' $1 | sed -e 's/\\([0-f]\\{12\\}\\)[0-f]*/\\1/'; }; f" > > Thanks for the tip! dim script from maintainer-tools has a bunch of these helpers (andother one is dim fixes for generating Cc: lists) which should work even without commit rights and all that set up: https://gitlab.freedesktop.org/drm/maintainer-tools/-/blob/master/dim Cheers, Daniel > > > With that, 'git cite <committish>' will give you the nice reference with > > 12 chars of sha1 regardless of core.abbrev config. > > > > > > BR, > > Jani. > > > > -- > > Jani Nikula, Intel Open Source Graphics Center > _______________________________________________ > dri-devel mailing list > dri-devel@xxxxxxxxxxxxxxxxxxxxx > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel