mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Jonas Rebmann <jre@pengutronix.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>, barebox@lists.infradead.org
Subject: Re: [PATCH v2] scripts: add helper for generating Origin-URL references
Date: Tue, 20 Jan 2026 10:42:13 +0100	[thread overview]
Message-ID: <d3f6a49e-f029-4612-bc46-a801eee762f6@pengutronix.de> (raw)
In-Reply-To: <20251218151807.691382-1-a.fatoum@pengutronix.de>

On 2025-12-18 16:18, Ahmad Fatoum wrote:
> To improve tracking where code originated from, e.g. when porting from
> Linux or U-Boot, some recent commits have started using Origin-URL
> comments. Add a script that can generate them with the assumption that
> the origin project is checked out at exactly the version the code was
> copied from.
> 
> Examples in Vim:
> 
>    # add into highlight URL pointing at specified file
>    V:!git origin-url ../linux/lib/ucs2_string.c
> 
>    # as above, but consult buffer extension for comment style
>    V:!git origin-url ../linux/lib/ucs2_string.c %
> 
>    # generate in snippet syntax
>    V:!git origin-url -s ../linux/lib/ucs2_string.c
> 
> This is mostly useful for new code that's being ported. It does have no
> support to find out similarity between the files specified.
> 
> Cc: Jonas Rebmann <jre@pengutronix.de>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>

Reviewed-by: Jonas Rebmann <jre@pengutronix.de>




      reply	other threads:[~2026-01-20  9:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-18 15:18 Ahmad Fatoum
2026-01-20  9:42 ` Jonas Rebmann [this message]

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=d3f6a49e-f029-4612-bc46-a801eee762f6@pengutronix.de \
    --to=jre@pengutronix.de \
    --cc=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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