public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: "Martin Liška" <mliska@suse.cz>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] Improve svn-rev to search for pattern at line beginning.
Date: Fri, 3 Apr 2020 11:22:19 +0200	[thread overview]
Message-ID: <20200403092219.GZ2212@tucnak> (raw)
In-Reply-To: <7d57ec61-8c76-99a9-d94b-52228ce7533f@suse.cz>

On Fri, Apr 03, 2020 at 11:13:17AM +0200, Martin Liška wrote:
> 2020-04-03  Martin Liska  <mliska@suse.cz>
> 
> 	* gcc-git-customization.sh: Search for the pattern
> 	at line beginning only.

Ok, thanks.

> diff --git a/contrib/gcc-git-customization.sh b/contrib/gcc-git-customization.sh
> index f3e48316ead..a932bf8c06a 100755
> --- a/contrib/gcc-git-customization.sh
> +++ b/contrib/gcc-git-customization.sh
> @@ -18,7 +18,7 @@ ask () {
>  }
>  
>  # Add a git command to find the git commit equivalent to legacy SVN revision NNN
> -git config alias.svn-rev '!f() { rev=$1; shift; git log --all --grep="From-SVN: r\\?$rev\\b" "${@}"; } ; f'
> +git config alias.svn-rev '!f() { rev=$1; shift; git log --all --grep="^From-SVN: r\\?$rev\\b" "${@}"; } ; f'
>  
>  # Add git commands to convert git commit to monotonically increasing revision number
>  # and vice versa
> 


	Jakub


  reply	other threads:[~2020-04-03  9:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-03  9:13 Martin Liška
2020-04-03  9:22 ` Jakub Jelinek [this message]
2020-04-03 18:13 ` Joseph Myers

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=20200403092219.GZ2212@tucnak \
    --to=jakub@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=mliska@suse.cz \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).