[PATCH v3 2/4] rebase: refactor common shell functions into their own file

2018-07-06 Thread Pratik Karki
in the following commits. Signed-off-by: Pratik Karki --- .gitignore| 1 + Makefile | 1 + git-legacy-rebase.sh | 62 +-- git-rebase--common.sh | 61 ++ 4 files changed, 64 insertions(+), 61

[GSoC] [PATCH v3 0/4] rebase: rewrite rebase in C

2018-07-06 Thread Pratik Karki
()` which would be visible by spawned process from rebase backends as this is not safe. Pratik Karki (4): rebase: start implementing it as a builtin rebase: refactor common shell functions into their own file sequencer: refactor the code to detach HEAD to checkout.c builtin/rebase: support

[PATCH v2 4/4] builtin/rebase: support running "git rebase "

2018-07-02 Thread Pratik Karki
checkout.c introduced by a previous commit to perform initial checkout. Signed-off-by: Pratik Karki --- builtin/rebase.c | 229 ++- 1 file changed, 228 insertions(+), 1 deletion(-) diff --git a/builtin/rebase.c b/builtin/rebase.c index c0c9d6cd2

[GSoC] [PATCH v2 0/4] rebase: rewrite rebase in C

2018-07-02 Thread Pratik Karki
in `builtin/rebase: support running "git-rebase ". Pratik Karki (4): rebase: start implementing it as a builtin rebase: refactor common shell functions into their own file sequencer: refactor the code to detach HEAD to checkout.c builtin/rebase: support running &

[PATCH v2 3/4] sequencer: refactor the code to detach HEAD to checkout.c

2018-07-02 Thread Pratik Karki
. Signed-off-by: Pratik Karki --- checkout.c | 64 + checkout.h | 3 +++ sequencer.c | 58 +--- 3 files changed, 72 insertions(+), 53 deletions(-) diff --git a/checkout.c b/checkout.c index

[PATCH v2 2/4] rebase: refactor common shell functions into their own file

2018-07-02 Thread Pratik Karki
functions *directly* from C, bypassing `git-rebase.sh`. Therefore those functions need to live in a separate file: we need to be able to call `. git-rebase--common` in that script snippet so that those functions are defined. Signed-off-by: Pratik Karki --- .gitignore| 1 + Makefile

[PATCH v2 1/4] rebase: start implementing it as a builtin

2018-07-02 Thread Pratik Karki
-c rebase.useBuiltin=true rebase ...` Signed-off-by: Pratik Karki --- .gitignore| 1 + Makefile | 3 +- builtin.h | 1 + builtin/rebase.c | 55 +++ git-rebase.sh

Re: [PATCH 1/5] Start TODO-rebase.sh

2018-06-28 Thread Pratik Karki
Hi, This is a patch I keep in wip-rebase branch[1][2]. It shouldn't be applied to `pu`. This main objective of this file in the branch is to keep track of the converted shell scripts of `git-rebase.sh` and plan on the conversion of other remaining parts. [1]:

[PATCH 4/5] sequencer: refactor the code to detach HEAD to checkout.c

2018-06-28 Thread Pratik Karki
. Signed-off-by: Pratik Karki --- checkout.c | 64 + checkout.h | 3 +++ sequencer.c | 58 +--- 3 files changed, 72 insertions(+), 53 deletions(-) diff --git a/checkout.c b/checkout.c index

[PATCH 2/5] rebase: start implementing it as a builtin

2018-06-28 Thread Pratik Karki
-c rebase.useBuiltin=true rebase ...` Signed-off-by: Pratik Karki --- .gitignore| 1 + Makefile | 3 +- builtin.h | 1 + builtin/rebase.c | 55 +++ git-rebase.sh

[PATCH 1/5] Start TODO-rebase.sh

2018-06-28 Thread Pratik Karki
This is a verbatim copy of `git-rebase.sh`. This acts as a tracker for components to be converted and to find the progress of current conversion of `git-rebase.sh` to `builtin/rebase.c`. The commented parts denote the converted parts. Signed-off-by: Pratik Karki --- TODO-rebase.sh | 738

[PATCH 3/5] rebase: refactor common shell functions into their own file

2018-06-28 Thread Pratik Karki
functions *directly* from C, bypassing `git-rebase.sh`. Therefore those functions need to live in a separate file: we need to be able to call `.git-rebase--common` in that script snippet so that those functions are defined. Signed-off-by: Pratik Karki --- .gitignore| 1 + Makefile

[PATCH 5/5] builtin/rebase: support running "git rebase "

2018-06-28 Thread Pratik Karki
by a previous commit to perform initial checkout. Signed-off-by: Pratik Karki --- builtin/rebase.c | 231 ++- 1 file changed, 229 insertions(+), 2 deletions(-) diff --git a/builtin/rebase.c b/builtin/rebase.c index 1152b7229..2f90389c2 100644

[GSoC] [PATCH 0/5] rebase: rewrite rebase in C

2018-06-28 Thread Pratik Karki
a minimal builtin rebase which supports running `git rebase ` and also serves to ask for reviews. Pratik Karki (5): Start TODO-rebase.sh rebase: start implementing it as a builtin rebase: refactor common shell functions into their own file sequencer: refactor the code to detach HEAD to checkout.c

Re: [GSoC][PATCH v3 2/3] rebase -i: rewrite setup_reflog_action() in C

2018-06-26 Thread Pratik Karki
Hi, On Tue, Jun 26, 2018 at 3:00 AM Johannes Schindelin wrote: > Pratik refactored some code from sequencer.c into checkout.c/checkout.h > today to do exactly that. It is not polished yet, but probably will be > tomorrow. It provides a function `int detach_head_to(struct object_oid > *oid,

Re: [GSoC] GSoC with git, week 7

2018-06-20 Thread Pratik Karki
On Tue, Jun 19, 2018 at 12:33 AM, Paul-Sebastian Ungureanu wrote: > Hello! > > > On 18.06.2018 20:34, Alban Gruin wrote: >> >> Hi, >> >> I published a new blog post here: >> >>https://blog.pa1ch.fr/posts/2018/06/18/en/gsoc2018-week-7.html >> >> It’s shorter than the last one, but feel free to

Re: [GSoC] GSoC with git, week 6

2018-06-11 Thread Pratik Karki
Hi, My blog post is also up. https://prertik.github.io/post/week-06 And nice blog post, Alban. :-) Cheers, Pratik

Re: [GSoC] Info: Week 02 Blog Post

2018-05-10 Thread Pratik Karki
On Thu, May 10, 2018 at 11:35 PM, Stefan Beller <sbel...@google.com> wrote: > Hi Pratik, Hi Stefan, > On Wed, May 9, 2018 at 8:07 PM, Pratik Karki <predatoram...@gmail.com> wrote: >> Hi, >> >> The week 02 blog post[1] is live. This post is part I out of II

[GSoC] Info: Week 02 Blog Post

2018-05-09 Thread Pratik Karki
://prertik.github.io/categories/git/ Cheers, Pratik Karki

Re: [GSoC] Yet another blog series about the GSoC

2018-05-07 Thread Pratik Karki
On Tue, May 8, 2018 at 12:20 AM, Stefan Beller <sbel...@google.com> wrote: > Hi Pratik, Hi Stefan, > On Sat, May 5, 2018 at 5:24 AM, Pratik Karki <predatoram...@gmail.com> wrote: >> On Sat, May 5, 2018 at 5:11 PM, Alban Gruin <alban.gr...@gmail.com> wrote: >>

Re: [GSoC] Yet another blog series about the GSoC

2018-05-05 Thread Pratik Karki
ly if needed. > > Any feedback is welcome! > > [1] https://blog.pa1ch.fr/posts/2018/05/05/en/gsoc2018-week-1.html > > Cheers, > Alban Gruin Nice post. Great job, Alban. Just a little typo I found out there: hazardous -> hasardous. Cheers, Pratik Karki

Re: [GSoC] Info: new blog series of my work on Git GSoC '18

2018-05-02 Thread Pratik Karki
On Thu, May 3, 2018 at 6:31 AM, Andrew Ardill <andrew.ard...@gmail.com> wrote: > On 2 May 2018 at 17:12, Johannes Schindelin <johannes.schinde...@gmx.de> > wrote: >> Hi Pratik, >> >> On Wed, 2 May 2018, Pratik Karki wrote: >> >>> As promised in m

[GSoC] Info: new blog series of my work on Git GSoC '18

2018-05-01 Thread Pratik Karki
://prertik.github.io/categories/git/ Cheers, Pratik Karki

Re: GSoC students and mentors in 2018

2018-04-25 Thread Pratik Karki
mentored by DScho, wants to convert git-stash > into a builtin. > > Alban Gruin and Pratik Karki want to convert parts of git-rebase into > a builtin. Both are mentored by Christian and myself. > > The slots were just announced today, please join me in welcoming them > to the Git

[GSoC][PATCH v5] test: avoid pipes in git related commands for test

2018-03-27 Thread Pratik Karki
ile and apply the downstream command(s) to that file. Signed-off-by: Pratik Karki <predatoram...@gmail.com> --- t/t5300-pack-object.sh | 8 ++--- t/t5510-fetch.sh | 8 ++--- t/t7001-mv.sh | 22 ++--- t/t70

[GSoC] Re: Info: git log --oneline improvements

2018-03-24 Thread Pratik Karki
previous proposal[1] and make it more worthy. Can you review it and explain what I might be lacking there? Thank you for your time. [1]: https://public-inbox.org/git/20180321061605.27814-1-predatoram...@gmail.com/ Cheers, Pratik Karki

[GSoC] Info: git log --oneline improvements

2018-03-23 Thread Pratik Karki
n my proposal. [1]: https://public-inbox.org/git/20180321061605.27814-1-predatoram...@gmail.com/ Cheers, Pratik Karki

[GSoC][PATCH v4] test: avoid pipes in git related commands for test

2018-03-23 Thread Pratik Karki
wed, thus potentially hiding failure of those commands. Instead, capture Git command output to a file and apply the downstream command(s) to that file. Signed-off-by: Pratik Karki <predatoram...@gmail.com> --- t/t5300-pack-object.sh | 8 ++--- t/t5510

[GSoC][PATCH v3] test: avoid pipes in git related commands for test

2018-03-21 Thread Pratik Karki
[2]: https://github.com/git/git/blob/master/Documentation/SubmittingPatches - >8 Avoid using pipes downstream of Git commands since the exit codes of commands upstream of pipes get swallowed, thus potentially hiding failu

Re: [RFC] [GSoC] Project proposal: convert scripts to builtins

2018-03-21 Thread Pratik Karki
with git-stash. Thank you for directing me to the un-merged matches. Now, I can find the points where the patch couldn't be effective and work towards completing those effective things. Please provide feedback for this updated proposal. Cheers, Pratik Karki Convert Scripts to builtins

Re: [RFC] [GSoC] Project proposal: convert scripts to builtins

2018-03-20 Thread Pratik Karki
Hi, This is my draft for my proposal on "Convert Scripts to builtins" for GSoC. Please review and provide feedback. Cheers, Pratik Karki Convert Scripts to builtins === Abstract Many components of Git are still in the form of shell and Perl scripts

[RFC] [GSoC] Project proposal: convert scripts to builtins

2018-03-20 Thread Pratik Karki
Hi, This is my draft for my proposal on "Convert Scripts to builtin" for GSoC. Please review and provide feedbacks. https://gist.github.com/prertik/daaa73a39d3ce30811d9a208043dc235 Cheers, Pratik Karki

[GSoC][PATCH] test: avoid pipes in git related commands for test suite

2018-03-19 Thread Pratik Karki
up with my university stuffs. Please do review this patch as before. I will correct it if needed. Cheers, Pratik Karki Avoid using pipes downstream of Git commands since the exit codes of commands upstream of pipes get swallowed, thus potentially hiding failure of those commands. Instead, capture G

[GSoC] [PATCH] test: avoid pipes in git related commands for test suite

2018-03-13 Thread Pratik Karki
by pipe. Signed-off-by: Pratik Karki <predatoram...@gmail.com> --- t/t7001-mv.sh| 24 t/t9104-git-svn-follow-parent.sh | 4 ++-- t/t9110-git-svn-use-svm-props.sh | 36 ++-- t/t9111-git-svn-use-svnsync-props.s

<    1   2