Thread (183 messages) 183 messages, 7 authors, 2022-01-31

Re: [PATCH 5.10 167/167] xhci: add xhci_get_virt_ep() helper

From: Pavel Machek <hidden>
Date: 2021-07-28 10:10:44
Also in: lkml

Hi!
From: Mathias Nyman <redacted>

[commit b1adc42d440df3233255e313a45ab7e9b2b74096 upstream]
This is yet another variation in upstream commit making. So far I was
using these:

                ma = re.match(".*Upstream commit ([0-9a-f]*) .*", l)
                if ma:
                    m.upstream = ma.group(1)
                ma = re.match("[Cc]ommit ([0-9a-f]*) upstream[.]*", l)
		if ma:
                    m.upstream = ma.group(1)
                ma = re.match("[Cc]ommit: ([0-9a-f]*)", l)
                if ma:
                    m.upstream = ma.group(1)

I guess I could update second regexp to search anywhere in the
line.... but at that point it will also match stuff like "commit 1234
upstream is broken".

Do you have suggestion how to extract upstream sha1 automatically?

Best regards,
								Pavel
-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help