From: Laszlo Ersek <lersek@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: Fam Zheng <famz@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
Stefan Hajnoczi <stefanha@gmail.com>,
qemu devel list <qemu-devel@nongnu.org>,
John Snow <jsnow@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] scripts: add "git.orderfile" for ordering diff hunks by pathname patterns
Date: Fri, 2 Dec 2016 13:11:24 +0100 [thread overview]
Message-ID: <4e40e7be-ee7f-42d6-5a35-263a28201f67@redhat.com> (raw)
In-Reply-To: <1480676373.13905.4.camel@redhat.com>
On 12/02/16 11:59, Gerd Hoffmann wrote:
>> git config diff.orderFile scripts/git.orderfile
>
>> diff --git a/scripts/git.orderfile b/scripts/git.orderfile
>> new file mode 100644
>> index 000000000000..600a2e4fc540
>> --- /dev/null
>> +++ b/scripts/git.orderfile
>> @@ -0,0 +1,15 @@
>
> Is it possible to have comments in here? So we can place the git config
> command above into into this file too?
The documentation is silent on this, and I didn't want to experiment, so
I checked the git source code. Yes, comments seem to be supported, see
the prepare_order() function in "diffcore-order.c":
/* cp to ep has one line */
if (*cp == '\n' || *cp == '#')
; /* comment */
How about the following comment:
# Apply this diff order to your git configuration with the command
#
# git config diff.orderFile scripts/git.orderfile
?
Thanks
Laszlo
>> +*.txt
>> +configure
>> +GNUmakefile
>> +makefile
>> +Makefile
>
> We also have Makefile.objs and Makefile.target, so "Makefile*" (like the
> first version had IIRC) should work better.
>
>> +*.mak
>> +qapi-schema*.json
>> +qapi/*.json
>> +include/qapi/visitor.h
>> +include/qapi/visitor-impl.h
>> +scripts/qapi.py
>> +scripts/*.py
>> +*.h
>> +qapi/qapi-visit-core.c
>
> I guess there is more which could be placed here (i.e. files holding
> infrastructure which makes sense to see first). But we can easily
> refine that incrementally. That is the point to have this file in the
> repo in the first place ;)
>
> cheers,
> Gerd
>
>
next prev parent reply other threads:[~2016-12-02 12:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-02 10:40 [Qemu-devel] [PATCH] scripts: add "git.orderfile" for ordering diff hunks by pathname patterns Laszlo Ersek
2016-12-02 10:59 ` Gerd Hoffmann
2016-12-02 12:11 ` Laszlo Ersek [this message]
2016-12-02 12:32 ` Gerd Hoffmann
2016-12-02 14:33 ` Max Reitz
2016-12-02 14:41 ` Fam Zheng
2016-12-02 16:39 ` Eric Blake
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=4e40e7be-ee7f-42d6-5a35-263a28201f67@redhat.com \
--to=lersek@redhat.com \
--cc=famz@redhat.com \
--cc=jsnow@redhat.com \
--cc=kraxel@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).