From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sa-prd-fep-045.btinternet.com (mailomta12-sa.btinternet.com [213.120.69.18]) by sourceware.org (Postfix) with ESMTPS id 81B603872209 for ; Sun, 11 Dec 2022 13:54:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 81B603872209 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dronecode.org.uk Authentication-Results: sourceware.org; spf=none smtp.mailfrom=dronecode.org.uk Received: from sa-prd-rgout-001.btmx-prd.synchronoss.net ([10.2.38.4]) by sa-prd-fep-045.btinternet.com with ESMTP id <20221211135403.ZNQK5235.sa-prd-fep-045.btinternet.com@sa-prd-rgout-001.btmx-prd.synchronoss.net>; Sun, 11 Dec 2022 13:54:03 +0000 Authentication-Results: btinternet.com; auth=pass (PLAIN) smtp.auth=jonturney@btinternet.com; bimi=skipped X-SNCR-Rigid: 62E573CC14A98969 X-Originating-IP: [81.153.98.246] X-OWM-Source-IP: 81.153.98.246 (GB) X-OWM-Env-Sender: jonturney@btinternet.com X-VadeSecure-score: verdict=clean score=0/300, class=clean X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvhedrvdeigdegjecutefuodetggdotefrodftvfcurfhrohhfihhlvgemuceutffkvffkuffjvffgnffgvefqofdpqfgfvfenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeflohhnucfvuhhrnhgvhicuoehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkqeenucggtffrrghtthgvrhhnpeekjeekheefjefgffegheevffeiledtleejfefhtefhffevkefgueeiieeihfejheenucffohhmrghinhepghhithdqshgtmhdrtghomhenucfkphepkedurdduheefrdelkedrvdegieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopegludelvddrudeikedruddruddtiegnpdhinhgvthepkedurdduheefrdelkedrvdegiedpmhgrihhlfhhrohhmpehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkpdhnsggprhgtphhtthhopedvpdhrtghpthhtoheplfhohhgrnhhnvghsrdfutghhihhnuggvlhhinhesghhmgidruggvpdhrtghpthhtoheptgihghifihhnqdhprghttghhvghssegthihgfihinhdrtghomh X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean Received: from [192.168.1.106] (81.153.98.246) by sa-prd-rgout-001.btmx-prd.synchronoss.net (5.8.716.04) (authenticated as jonturney@btinternet.com) id 62E573CC14A98969; Sun, 11 Dec 2022 13:54:03 +0000 Message-ID: <9ae73a17-051e-b577-ccfc-a33c96076390@dronecode.org.uk> Date: Sun, 11 Dec 2022 13:54:02 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH] Cygwin: Improve FAQ on early breakpoint for ASLR Content-Language: en-GB To: Johannes Schindelin Cc: cygwin-patches@cygwin.com Newsgroups: gmane.os.cygwin.patches References: <20221103170430.4448-1-jon.turney@dronecode.org.uk> <4ccbb5e1-ee4f-8944-ed44-4af7fa79f048@dronecode.org.uk> <8a0287ed-6f20-4a05-b584-966bfded6833@dronecode.org.uk> <5spqn8n0-q9r4-48r5-qo91-0o4qs27358s1@tzk.qr> From: Jon Turney In-Reply-To: <5spqn8n0-q9r4-48r5-qo91-0o4qs27358s1@tzk.qr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1191.8 required=5.0 tests=BAYES_00,FORGED_SPF_HELO,KAM_DMARC_STATUS,KAM_LAZY_DOMAIN_SECURITY,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_NONE,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 05/12/2022 15:23, Johannes Schindelin wrote: > On Mon, 28 Nov 2022, Corinna Vinschen wrote: >> On Nov 28 13:00, Jon Turney wrote: >>> On 15/11/2022 10:46, Corinna Vinschen wrote: >>>> >>>> It would be great if we could get used to using the same syntax as the >>>> Linux kernel project to document stuff. I'm trying to follow their lead >>>> for a while. For fixes to former commits, it looks like this in the >>>> kernel, at the end of the commit message: >>>> >>>> Fixes: 123456789012 ("title of commit 123456789012") >>>> >>>> Yeah, core.abbrev is 12 digits. I'm using this setting for quite some >>>> time locally. >>> >>> Sounds good. Is there some script to automate generating this kind of >>> comment from a commit-id? >> >> I don't think so, at least I don't see anything like that in git docs... > > It's note _quite_ what you asked for, but `git show --pretty=reference -s > ` (https://git-scm.com/docs/git-show#_pretty_formats) gives you > _almost_ what you are looking for. > > But you can always call `git show -s --format='%h ("%s")' `, and > even configure an alias for this: > > git config --global alias.pretty-print-commit \ > "-c core.abbrev=12 show -s --format='%h (\"%s\")'" > Thanks! I added '-c core.pager=', but this is what I was looking for, to save a bit of copying and pasting and editing.