<div dir="ltr">I took a quick look at the code. Doesn't seem too hard to implement, since there's already regexp match code in lib.c. Just need to backtrack after we print @@ until we find a matching line.<div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>-- James<br></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 27, 2022 at 2:22 PM enh <<a href="mailto:enh@google.com">enh@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><a href="https://android.googlesource.com/platform/build/soong/+/master/java/droidstubs.go#763" target="_blank">https://android.googlesource.com/platform/build/soong/+/master/java/droidstubs.go#763</a> is a place where `diff -F` is used in the AOSP build (found by +jamesfarrell). i've added to my canonical [internal] "toybox for AOSP hermetic builds" doc, but what's your preference for such things? separate bug for any given thing? doc somewhere? section in roadmap.md? random mailing list posts like this?<br><div><br></div><div>(i'll start with the latter since that certainly seems to be your default preference, but migrating my doc to roadmap.md doesn't sound like a terrible idea? happy to send you a patch if you want...)</div></div>
</blockquote></div>