[PATCH v2] userdiff: add build-in pattern for shell

2017-03-30 Thread Ivan Tham
Shell are widely used but comes with lots of different patterns. The build-in pattern aim for POSIX-like shells with some additions: - Notably ${g//re/s} and ${g#cut} - Bashisms such as "function" Signed-off-by: Ivan Tham <pickf...@riseup.net> --- Documentation/gitattribute

Re: [PATCH] userdiff: add build-in pattern for shell

2017-03-30 Thread Ivan Tham
On Wed, Mar 29, 2017 at 11:25:15PM -0700, Junio C Hamano wrote: Pickfire writes: > +- `sh` suitable for source code in POSIX-compatible shells. The new test you added seems to show that this is not limited to POSIX shells but also understands bashisms like ${x//x/x}.

[PATCH] userdiff: add build-in pattern for shell

2017-03-29 Thread Ivan Tham
Shell are widely used but comes with lots of different patterns. The build-in pattern aim for POSIX-compatible shells with some additions: - Notably ${g//re/s} and ${g#cut} - "function" from bash Signed-off-by: Ivan Tham <pickf...@riseup.net> --- Documentation/gitattributes.txt

Re: Re: GSoC Project | Convert interactive rebase to C

2017-03-21 Thread Ivan Tham
Stefan Beller <sbel...@google.com> wrote: > On Mon, Mar 20, 2017 at 9:41 AM, Ivan Tham <pickf...@riseup.net> wrote: > > I am Ivan Tham. Currently studying in Computer Science in APIIT Malaysia. I > > am > > interested particapate in Google Summer of Code 20

GSoC Project | Convert interactive rebase to C

2017-03-20 Thread Ivan Tham
Hi everyone, I am Ivan Tham. Currently studying in Computer Science in APIIT Malaysia. I am interested particapate in Google Summer of Code 2017 under git organization. I would like to attempt "Add more builtin patterns for userdiff" particularly for shell for my microproject. I am

Re: [GSOC] Microproject "Move ~/.git-credential-cache to ~/.config/git"

2016-03-14 Thread Ivan Tham
On 15/03/2016 10:59, 惠轶群 wrote: Well, In my opinion: 1. $XDG_CACHE_HOME is more meaningful than $XDG_CONFIG_HOME, while $XDG_RUNTIME_DIR is more meaningful than $XDG_CACHE_HOME. However, I feel that I should value suggestions of who have more experience about this project than me. 2.