Re: [PATCH] mailinfo: support Unicode scissors

2019-04-01 Thread Andrei Rybak
On Mon, 1 Apr 2019 16:27:02 +0700, Duy Nguyen wrote: > On Mon, Apr 1, 2019 at 5:03 AM Andrei Rybak wrote: >> Support UTF-8 encoding of '✂' in function is_scissors_line, for 'git am >> --scissors' to be able to cut at Unicode perforation lines in emails. >> Note, that Unicode character '✂' is three

Re: [PATCH] mailinfo: support Unicode scissors

2019-04-01 Thread Jeff King
On Mon, Apr 01, 2019 at 01:09:47AM +0200, SZEDER Gábor wrote: > On Mon, Apr 01, 2019 at 12:01:04AM +0200, Andrei Rybak wrote: > > diff --git a/mailinfo.c b/mailinfo.c > > index b395adbdf2..4ef6cdee85 100644 > > --- a/mailinfo.c > > +++ b/mailinfo.c > > @@ -701,6 +701,13 @@ static int is_scissors_l

Re: [PATCH] mailinfo: support Unicode scissors

2019-04-01 Thread Duy Nguyen
On Mon, Apr 1, 2019 at 5:03 AM Andrei Rybak wrote: > > 'git am --scissors' allows cutting a patch from an email at a scissors > line. Such a line should contain perforation, i.e. hyphens, and a > scissors symbol. Only ASCII graphics scissors '8<' '>8' '%<' '>%' are > recognized by 'git am --scis

Re: [PATCH] mailinfo: support Unicode scissors

2019-04-01 Thread Junio C Hamano
SZEDER Gábor writes: > On Mon, Apr 01, 2019 at 12:01:04AM +0200, Andrei Rybak wrote: >> diff --git a/mailinfo.c b/mailinfo.c >> index b395adbdf2..4ef6cdee85 100644 >> --- a/mailinfo.c >> +++ b/mailinfo.c >> @@ -701,6 +701,13 @@ static int is_scissors_line(const char *line) >>

Re: [PATCH] mailinfo: support Unicode scissors

2019-03-31 Thread SZEDER Gábor
On Mon, Apr 01, 2019 at 12:01:04AM +0200, Andrei Rybak wrote: > diff --git a/mailinfo.c b/mailinfo.c > index b395adbdf2..4ef6cdee85 100644 > --- a/mailinfo.c > +++ b/mailinfo.c > @@ -701,6 +701,13 @@ static int is_scissors_line(const char *line) > c++; >

[PATCH] mailinfo: support Unicode scissors

2019-03-31 Thread Andrei Rybak
'git am --scissors' allows cutting a patch from an email at a scissors line. Such a line should contain perforation, i.e. hyphens, and a scissors symbol. Only ASCII graphics scissors '8<' '>8' '%<' '>%' are recognized by 'git am --scissors' command at the moment. Unicode character 'BLACK SCISSOR