[PATCH v1 0/2] Incremental rewrite of git-submodules

2018-01-09 Thread Prathamesh Chavan
ranch: patch-series-2 Build #195 [1]: https://public-inbox.org/git/20170807211900.15001-6-pc44...@gmail.com/ [2]: https://public-inbox.org/git/20170807211900.15001-7-pc44...@gmail.com/ [3]: https://public-inbox.org/git/20171006132415.2876-4-pc44...@gmail.com/ Prathamesh Chavan (2): submodule:

[PATCH v1 1/2] submodule: port submodule subcommand 'sync' from shell to C

2018-01-09 Thread Prathamesh Chavan
c_submodule_cb() and print_default_remote(). The function print_default_remote() is introduced for getting the default remote as stdout. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 192 +

[PATCH v1 2/2] submodule: port submodule subcommand 'deinit' from shell to C

2018-01-09 Thread Prathamesh Chavan
: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 153 git-submodule.sh| 55 +--- 2 files changed, 154 insertions(+), 54 deletions(-) diff --git a/builtin/submodule

Re: [PATCH v1 2/2] submodule: port submodule subcommand 'deinit' from shell to C

2018-01-10 Thread Prathamesh Chavan
On Wed, Jan 10, 2018 at 2:54 AM, Junio C Hamano wrote: > Prathamesh Chavan writes: > >> The same mechanism is used even for porting this submodule >> subcommand, as used in the ported subcommands till now. >> The function cmd_deinit in split up after porting into four >

[PATCH v2 0/2] Incremental rewrite of git-submodules

2018-01-11 Thread Prathamesh Chavan
public-inbox.org/git/xmqq7esq4tf6@gitster.mtv.corp.google.com/ Prathamesh Chavan (2): submodule: port submodule subcommand 'sync' from shell to C submodule: port submodule subcommand 'deinit' from shell to C builtin/submodule--helper.c | 342 ++

[PATCH v2 1/2] submodule: port submodule subcommand 'sync' from shell to C

2018-01-11 Thread Prathamesh Chavan
c_submodule_cb() and print_default_remote(). The function print_default_remote() is introduced for getting the default remote as stdout. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 195 +

[PATCH v2 2/2] submodule: port submodule subcommand 'deinit' from shell to C

2018-01-11 Thread Prathamesh Chavan
: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 147 git-submodule.sh| 55 + 2 files changed, 148 insertions(+), 54 deletions(-) diff --git a/builtin/submodule

[PATCH v3 0/2] Incremental rewrite of git-submodules

2018-01-14 Thread Prathamesh Chavan
ad of die_errno. As before you can find this series at: https://github.com/pratham-pc/git/commits/patch-series-2 And its build report is available at: https://travis-ci.org/pratham-pc/git/builds/ Branch: patch-series-2 Build #197 Prathamesh Chavan (2): submodule: port submodule subcommand 's

[PATCH v3 2/2] submodule: port submodule subcommand 'deinit' from shell to C

2018-01-14 Thread Prathamesh Chavan
: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 147 git-submodule.sh| 55 + 2 files changed, 148 insertions(+), 54 deletions(-) diff --git a/builtin/submodule

[PATCH v3 1/2] submodule: port submodule subcommand 'sync' from shell to C

2018-01-14 Thread Prathamesh Chavan
c_submodule_cb() and print_default_remote(). The function print_default_remote() is introduced for getting the default remote as stdout. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 193 +

[GSoC][RFC/PATCH] submodule: port subcommand foreach from shell to C

2017-04-19 Thread Prathamesh Chavan
"--super-prefix displaypath", and other required arguments to the structure and then appending the input of submodule-foreach to the argument's array. Signed-off-by: Prathamesh Chavan --- The build report of this patch is available at: https://travis-ci.org/pratham-pc/git/build

[GSoC][RFC/PATCH v2] submodule: port subcommand foreach from shell to C

2017-04-22 Thread Prathamesh Chavan
uot;--super-prefix displaypath", to the args argv_array structure. Other required arguments and the input of submodule-foreach is also appended to this argv_array. Signed-off-by: Prathamesh Chavan --- In this new version of patch following changes have been added: module_list_compute is used

[GSoC] Project Selected: Incremental rewrite of git-submodules

2017-05-07 Thread Prathamesh Chavan
Hey everyone, I am Prathamesh Chavan, an undergraduate student from the department of Computer Science and Engineering, at Indian Institue of Technology, Kharagpur. I applied for Google Summer of Code 2017 and my project "Incremental rewrite of git-submodules" has been selected. This pr

[GSoC][RFC/PATCH v3 2/2] submodule: port subcommand foreach from shell to C

2017-05-12 Thread Prathamesh Chavan
are used in tests in t7407. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- In this new version of patch, following changes were added: foreach_submodule was renamed to runcommand_in_submodule We module_foreach into two parts, such that, module

[GSoC][RFC/PATCH v3 1/2] t7407: test "submodule foreach --recursive" from subdirectory added

2017-05-12 Thread Prathamesh Chavan
Additional test cases added to the submodule-foreach test suite to check the submodule foreach --recursive behavior from a subdirectory as this was missing from the test suite. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- t/t7407-submodule

[GSoC] Update: Week 0 (Community Bonding Period)

2017-05-15 Thread Prathamesh Chavan
SUMMARY OF MY PROJECT: Git submodule subcommands are currently implemented by using shell script 'git-submodule.sh'. There are several reasons why we'll prefer not to use the shell script. My project intends to convert the subcommands into C code, thus making them builtins. This will increase Git'

[GSoC][PATCH v1 1/2] submodule: port set_name_rev from shell to C

2017-05-21 Thread Prathamesh Chavan
ur child_process are introduced, each successive child process running only when previous has no stdout. The order of these four git-describe commands is maintained the same as it was in the function set_name_rev() before porting. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-b

[GSoC][PATCH v1 2/2] submodule: port submodule subcommand status

2017-05-21 Thread Prathamesh Chavan
a separate child_process and running it inside the submodule. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- A new function, get_submodule_displaypath is also introduced for getting the displaypath of the submodule while taking care of its prefix and s

[GSoC][PATCH v4 1/2] t7407: test "submodule foreach --recursive" from subdirectory added

2017-05-21 Thread Prathamesh Chavan
Additional test cases added to the submodule-foreach test suite to check the submodule foreach --recursive behavior from a subdirectory as this was missing from the test suite. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- It was observed that

[GSoC][PATCH v4 2/2] submodule: port subcommand foreach from shell to C

2017-05-21 Thread Prathamesh Chavan
both are used in tests in t7407. Helped-by: Brandon Williams Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- This series of patch is based on gitster/jk/bug-to-abort for untilizing its BUG() macro. In this new version of patch, a new function ge

[GSoC] Update: Week 1

2017-05-22 Thread Prathamesh Chavan
SUMMARY OF MY PROJECT: Git submodule subcommands are currently implemented by using shell script 'git-submodule.sh'. There are several reasons why we'll prefer not to use the shell script. My project intends to convert the subcommands into C code, thus making them builtins. This will increase Git'

[GSoC][PATCH v5 1/3] submodule: fix buggy $path and $sm_path variable's value

2017-05-26 Thread Prathamesh Chavan
ctory. This patch aims for its correction. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- This series of patch is based on gitster/jk/bug-to-abort for untilizing its BUG() macro. The observation made was as follows: For a project - super containin

[GSoC][PATCH v5 3/3] submodule: port subcommand foreach from shell to C

2017-05-26 Thread Prathamesh Chavan
both are used in tests in t7407. Helped-by: Brandon Williams Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- These series of patches passes the complete test suite. Its build report is available at: https://travis-ci.org/pratham-pc/git/builds Branch: s

[GSoC][PATCH v5 2/3] t7407: test "submodule foreach --recursive" from subdirectory added

2017-05-26 Thread Prathamesh Chavan
Additional test cases added to the submodule-foreach test suite to check the submodule foreach --recursive behavior from a subdirectory as this was missing from the test suite. Helped-by: Brandon Williams Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan

[GSoC] Update: Week 2

2017-05-29 Thread Prathamesh Chavan
SUMMARY OF MY PROJECT: Git submodule subcommands are currently implemented by using shell script 'git-submodule.sh'. There are several reasons why we'll prefer not to use the shell script. My project intends to convert the subcommands into C code, thus making them builtins. This will increase Git'

[GSoC][PATCH v6 2/2] submodule: port subcommand foreach from shell to C

2017-06-02 Thread Prathamesh Chavan
tored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- In this new version of, we avoid exporting the $path variable to the environment, but instead prefix the with it. In this way, we avoid the issue it creates with the env variable $PATH in windows. Other than that, additionally the case

[GSoC][PATCH v6 1/2] submodule: fix buggy $path and $sm_path variable's value

2017-06-02 Thread Prathamesh Chavan
ed-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- git-submodule.sh | 2 +- t/t7407-submodule-foreach.sh | 33 + 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/git-submodule.sh b/git-submodule.sh index c0d0e9a4c..ea6f56337 100755

Re: [GSoC][PATCH v6 2/2] submodule: port subcommand foreach from shell to C

2017-06-04 Thread Prathamesh Chavan
On Sat, Jun 3, 2017 at 7:43 AM, Stefan Beller wrote: > On Fri, Jun 2, 2017 at 4:24 AM, Prathamesh Chavan wrote: >> This aims to make git-submodule foreach a builtin. This is the very >> first step taken in this direction. Hence, 'foreach' is ported to >> submodule

[GSoC][PATCH v2 1/2] submodule: port set_name_rev from shell to C

2017-06-05 Thread Prathamesh Chavan
eller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 67 + git-submodule.sh| 16 ++- 2 files changed, 69 insertions(+), 14 deletions(-) diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c index 566a5b6

[GSoC][PATCH v2 2/2] submodule: port submodule subcommand status

2017-06-05 Thread Prathamesh Chavan
ve flag by creating a separate child_process and running it inside the submodule. The function print_status handles the printing of submodule's status. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- In this new version of patch, function print_statu

[GSoC] Update: Week 3

2017-06-05 Thread Prathamesh Chavan
org/git/20170602112428.11131-2-pc44...@gmail.com/ [4]: https://public-inbox.org/git/20170605202529.22959-1-pc44...@gmail.com/ [5]: https://public-inbox.org/git/20170605202529.22959-2-pc44...@gmail.com/ Thanks, Prathamesh Chavan

[PATCH v1] dir: create function count_slashes

2017-06-08 Thread Prathamesh Chavan
implementing it in dir.c to remove this code duplication. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Junio C Hamano Signed-off-by: Prathamesh Chavan --- In future, I intend to use this function in builtin/submodule--helper.c as well, hence this change was introduced

[GSoC] Update: Week 4

2017-06-12 Thread Prathamesh Chavan
n to debug them and discuss the patch for further improvisions this week. [1]: https://docs.google.com/document/d/1krxVLooWl--75Pot3dazhfygR3wCUUWZWzTXtK1L-xU/ Thanks, Prathamesh Chavan

[GSoC] Update: Week 5

2017-06-19 Thread Prathamesh Chavan
king on improvising this patch as it was recently debugged and posted for discussion. [1]: https://docs.google.com/document/d/1krxVLooWl--75Pot3dazhfygR3wCUUWZWzTXtK1L-xU/ Thanks, Prathamesh Chavan

[GSoC][PATCH 1/6] dir: create function count_slashes

2017-06-19 Thread Prathamesh Chavan
implementing it in dir.c to remove this code duplication. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Junio C Hamano Signed-off-by: Prathamesh Chavan Signed-off-by: Junio C Hamano --- The complete build report of this is available at: https://travis-ci.org/pratham-pc

[GSoC][PATCH 3/6] submodule: port set_name_rev from shell to C

2017-06-19 Thread Prathamesh Chavan
eller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 69 + git-submodule.sh| 16 ++- 2 files changed, 71 insertions(+), 14 deletions(-) diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c index f7adca9

[GSoC][PATCH 5/6] submodule: port submodule subcommand sync from shell to C

2017-06-19 Thread Prathamesh Chavan
e--helper subcommand for getting the default remote as stdout. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 180 git-submodule.sh| 56 +-

[GSoC][PATCH 4/6] submodule: port submodule subcommand status

2017-06-19 Thread Prathamesh Chavan
odule. print_status is also introduced for handling the output of the subcommand and also to reduce the code size. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 152 ++

[GSoC][PATCH 6/6] submodule: port submodule subcommand 'deinit' from shell to C

2017-06-19 Thread Prathamesh Chavan
: Stefan Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 140 git-submodule.sh| 55 + 2 files changed, 141 insertions(+), 54 deletions(-) diff --git a/builtin/submodule--helper.c b/builtin/submodule

[GSoC][PATCH 2/6] submodule--helper: introduce get_submodule_displaypath and for_each_submodule_list

2017-06-19 Thread Prathamesh Chavan
-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 69 - 1 file changed, 50 insertions(+), 19 deletions(-) diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c index 8cc648d85..f7adca95b 100644 --- a/builtin/submodule--helper.c

[GSoC] Update: Week 6

2017-06-26 Thread Prathamesh Chavan
still scope of improvision and discussion I'll also be focussing on improving this patch. [1]: https://docs.google.com/document/d/1krxVLooWl--75Pot3dazhfygR3wCUUWZWzTXtK1L-xU/ Thanks, Prathamesh Chavan

[GSoC][PATCH 2/6 v2] submodule: port subcommand foreach from shell to C

2017-06-26 Thread Prathamesh Chavan
of generating the value for path variable(as it was in the shell script) Helped-by: Brandon Williams Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- This patch suggestes the current status of the foreach patch. Work is still needed on this patch f

[GSoC][PATCH 6/6 v2] submodule: port submodule subcommand 'deinit' from shell to C

2017-06-26 Thread Prathamesh Chavan
: Stefan Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 140 git-submodule.sh| 55 + 2 files changed, 141 insertions(+), 54 deletions(-) diff --git a/builtin/submodule--helper.c b/builtin/submodule

[GSoC][PATCH 3/6 v2] submodule: port set_name_rev from shell to C

2017-06-26 Thread Prathamesh Chavan
eller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 69 + git-submodule.sh| 16 ++- 2 files changed, 71 insertions(+), 14 deletions(-) diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c index 5180659

[GSoC][PATCH 1/6 v2] submodule--helper: introduce for_each_submodule_list

2017-06-26 Thread Prathamesh Chavan
Introduce function for_each_submodule_list for using it in the later patches, related to porting submodule subcommands from shell to C. This new function is also used in ported submodule subcommand init. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan

[GSoC][PATCH 5/6 v2] submodule: port submodule subcommand sync from shell to C

2017-06-26 Thread Prathamesh Chavan
e--helper subcommand for getting the default remote as stdout. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 178 git-submodule.sh| 56 +-

[GSoC][PATCH 4/6 v2] submodule: port submodule subcommand status

2017-06-26 Thread Prathamesh Chavan
odule. print_status is also introduced for handling the output of the subcommand and also to reduce the code size. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 152 ++

Re: [GSoC] Update: Week 5

2017-06-26 Thread Prathamesh Chavan
On Tue, Jun 20, 2017 at 5:31 AM, Andrew Ardill wrote: > On 20 June 2017 at 07:41, Prathamesh Chavan wrote: > >>But as communicating between child_process is still an issue >>and so there was no simple was to current carry out the >>porting. And hence, a ha

Re: [GSoC][PATCH 1/6 v2] submodule--helper: introduce for_each_submodule_list

2017-06-29 Thread Prathamesh Chavan
flight and I applaud you for it if that is why > you based it on 'next'. But the right way to do it would be to > build your topic on 'master', and then in addition to testing the > topic by itself, also make a trial merge of your topic into 'next' > and test the result as well. > Thanks for making me aware about this as well. And will be following this before sending out the updated patch-series. Thanks, Prathamesh Chavan

[GSoC][PATCH 4/5 v3] submodule: port submodule subcommand 'status' from shell to C

2017-06-30 Thread Prathamesh Chavan
n its list. The function submodule_status() is responsible for generating the status each submodule it is called for, and then calls print_status(). Finally, the function print_status() handles the printing of submodule's status. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-b

[GSoC][PATCH 2/5 v3] submodule--helper: introduce for_each_submodule_list()

2017-06-30 Thread Prathamesh Chavan
Introduce function for_each_submodule_list() and replace a loop in module_init() with a call to it. The new function will also be used in other parts of the system in later patches. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- builtin

[GSoC][PATCH 5/5 v3] submodule: port submodule subcommand 'sync' from shell to C

2017-06-30 Thread Prathamesh Chavan
print_default_remote(). The function print_default_remote() is introduced for getting the default remote as stdout. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 177 ++

[GSoC][PATCH 3/5 v3] submodule: port set_name_rev() from shell to C

2017-06-30 Thread Prathamesh Chavan
Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 69 + git-submodule.sh| 16 ++- 2 files changed, 71 insertions(+), 14 deletions(-) diff --git a/builtin/submodule--helper.c b/builtin

[GSoC][PATCH 1/5 v3] submodule--helper: introduce get_submodule_displaypath()

2017-06-30 Thread Prathamesh Chavan
Beller Signed-off-by: Prathamesh Chavan --- The patch series is updated, and is based on 'master' branch. This patch series contains updates patches about Introduction of the function: get_submodule_displaypath() (This patch wasn't posted in the last update by mistake) Introduction

[GSoC] Update: Week 7

2017-07-03 Thread Prathamesh Chavan
Apart from this, there still lie two submodule subcommands: 'add' and 'update' unported. I'll try to completed as much as work related to porting but will also, focus on improving the code completed so that it becomes good for merging. [1]: https://docs.google.com/document/d/1krxVLooWl--75Pot3dazhfygR3wCUUWZWzTXtK1L-xU/ Thanks, Prathamesh Chavan

[GSoC][PATCH 2/5 v4] submodule--helper: introduce for_each_submodule_list()

2017-07-03 Thread Prathamesh Chavan
Introduce function for_each_submodule_list() and replace a loop in module_init() with a call to it. The new function will also be used in other parts of the system in later patches. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- builtin

[GSoC][PATCH 5/5 v4] submodule: port submodule subcommand 'sync' from shell to C

2017-07-03 Thread Prathamesh Chavan
print_default_remote(). The function print_default_remote() is introduced for getting the default remote as stdout. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 181 ++

[GSoC][PATCH 3/5 v4] submodule: port set_name_rev() from shell to C

2017-07-03 Thread Prathamesh Chavan
Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- As suggested the unnecessary enum present was removed. builtin/submodule--helper.c | 63 + git-submodule.sh| 16 ++-- 2 files changed, 65 insertions(+), 14 deletions

[GSoC][PATCH 4/5 v4] submodule: port submodule subcommand 'status' from shell to C

2017-07-03 Thread Prathamesh Chavan
n its list. The function submodule_status() is responsible for generating the status each submodule it is called for, and then calls print_status(). Finally, the function print_status() handles the printing of submodule's status. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-b

[GSoC][PATCH 1/5 v4] submodule--helper: introduce get_submodule_displaypath()

2017-07-03 Thread Prathamesh Chavan
Beller Signed-off-by: Prathamesh Chavan --- This series of patches are build over the 'mater' branch. Complete build report is available at: https://travis-ci.org/pratham-pc/git/builds Branch: setnamerev Build #119 builtin/submodule--helper.c | 33 ++--- 1 fi

[GSoC] Update: Week 8

2017-07-10 Thread Prathamesh Chavan
t any hacks. [1]: https://docs.google.com/document/d/1krxVLooWl--75Pot3dazhfygR3wCUUWZWzTXtK1L-xU/ Thanks, Prathamesh Chavan

[GSoC][PATCH 1/8] submodule--helper: introduce get_submodule_displaypath()

2017-07-10 Thread Prathamesh Chavan
Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 33 ++--- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c index 6abdad329..7af4de09b 100644 --- a/builtin/submodule

[GSoC][PATCH 2/8] submodule--helper: introduce for_each_submodule_list()

2017-07-10 Thread Prathamesh Chavan
Introduce function for_each_submodule_list() and replace a loop in module_init() with a call to it. The new function will also be used in other parts of the system in later patches. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- builtin

[GSoC][PATCH 4/8] submodule: port submodule subcommand 'status' from shell to C

2017-07-10 Thread Prathamesh Chavan
n its list. The function submodule_status() is responsible for generating the status each submodule it is called for, and then calls print_status(). Finally, the function print_status() handles the printing of submodule's status. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-b

[GSoC][PATCH 8/8] submodule: port submodule subcommand 'summary' from shell to C

2017-07-10 Thread Prathamesh Chavan
alling the print_submodule_summary() function. Finally, the print_submodule_summary() takes care of generating and printing the summary for each submodule. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- This is the first version of submodule-summary posted on t

[GSoC][PATCH 6/8] submodule: port submodule subcommand 'deinit' from shell to C

2017-07-10 Thread Prathamesh Chavan
: Stefan Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 143 git-submodule.sh| 55 + 2 files changed, 144 insertions(+), 54 deletions(-) diff --git a/builtin/submodule--helper.c b/builtin

[GSoC][PATCH 7/8] diff: change scope of the function count_lines()

2017-07-10 Thread Prathamesh Chavan
Change the scope of function count_lines for allowing the function to be reused in other parts of the code as well. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- diff.c | 2 +- diff.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff

[GSoC][PATCH 5/8] submodule: port submodule subcommand 'sync' from shell to C

2017-07-10 Thread Prathamesh Chavan
print_default_remote(). The function print_default_remote() is introduced for getting the default remote as stdout. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 181 ++

[GSoC][PATCH 3/8] submodule: port set_name_rev() from shell to C

2017-07-10 Thread Prathamesh Chavan
Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 63 + git-submodule.sh| 16 ++-- 2 files changed, 65 insertions(+), 14 deletions(-) diff --git a/builtin/submodule--helper.c b/builtin

[GSoC][PATCH 2/5 v4] submodule--helper: introduce for_each_submodule_list()

2017-07-13 Thread Prathamesh Chavan
Introduce function for_each_submodule_list() and replace a loop in module_init() with a call to it. The new function will also be used in other parts of the system in later patches. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- builtin

[GSoC][PATCH 1/5 v4] submodule--helper: introduce get_submodule_displaypath()

2017-07-13 Thread Prathamesh Chavan
Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 33 ++--- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c index 6abdad329..7af4de09b 100644 --- a/builtin/submodule

[GSoC][PATCH 3/5 v4] submodule: port set_name_rev() from shell to C

2017-07-13 Thread Prathamesh Chavan
Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 63 + git-submodule.sh| 16 ++-- 2 files changed, 65 insertions(+), 14 deletions(-) diff --git a/builtin/submodule--helper.c b/builtin

[GSoC][PATCH 4/5 v4] submodule: port submodule subcommand 'status' from shell to C

2017-07-13 Thread Prathamesh Chavan
n its list. The function submodule_status() is responsible for generating the status each submodule it is called for, and then calls print_status(). Finally, the function print_status() handles the printing of submodule's status. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-b

[GSoC][PATCH 5/5 v4] submodule: port submodule subcommand 'sync' from shell to C

2017-07-13 Thread Prathamesh Chavan
print_default_remote(). The function print_default_remote() is introduced for getting the default remote as stdout. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 179 ++

[PATCH v1 1/5] submodule foreach: correct '$path' in nested submodules from a subdirectory

2018-01-29 Thread Prathamesh Chavan
task. With a human on the keyboard the feedback loop is short and the changed behavior can be adapted to quickly unlike some automation that can break silently. Discussed-with: Ramsay Jones Signed-off-by: Prathamesh Chavan Signed-off-by: Stefan Beller --- git-submodule.sh | 1 -

[PATCH v1 2/5] submodule foreach: document '$sm_path' instead of '$path'

2018-01-29 Thread Prathamesh Chavan
make the 'path' variable available and document it as a deprecated synonym of 'sm_path'. Discussed-with: Ramsay Jones Signed-off-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- Documentation/git-submodule.txt | 10 ++ 1 file changed, 6 insertions(+), 4 deletions

[PATCH v1 3/5] submodule foreach: clarify the '$toplevel' variable documentation

2018-01-29 Thread Prathamesh Chavan
It does not contain the topmost superproject as the author assumed, but the direct superproject, such that $toplevel/$sm_path is the actual absolute path of the submodule. Discussed-with: Ramsay Jones Signed-off-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- Documentation/git

[PATCH v1 4/5] submodule foreach: document variable '$displaypath'

2018-01-29 Thread Prathamesh Chavan
It was observed that the variable '$displaypath' was accessible but undocumented. Hence, document it. Discussed-with: Ramsay Jones Signed-off-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- Documentation/git-submodule.txt | 6 -- t/t7407-submodule-foreach.

[PATCH v1 5/5] submodule: port submodule subcommand 'foreach' from shell to C

2018-01-29 Thread Prathamesh Chavan
uot;--super-prefix displaypath", to the args argv_array structure. Other required arguments and the input of submodule-foreach is also appended to this argv_array. Helped-by: Brandon Williams Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- buil

[PATCH v1 0/5] Incremental rewrite of git-submodules: git-foreach

2018-01-29 Thread Prathamesh Chavan
ies-3 Build #202 Prathamesh Chavan (5): submodule foreach: correct '$path' in nested submodules from a subdirectory submodule foreach: document '$sm_path' instead of '$path' submodule foreach: clarify the '$toplevel' variable documentation submo

[PATCH v1 1/5] submodule foreach: correct '$path' in nested submodules from a subdirectory

2018-02-01 Thread Prathamesh Chavan
task. With a human on the keyboard the feedback loop is short and the changed behavior can be adapted to quickly unlike some automation that can break silently. Discussed-with: Ramsay Jones Signed-off-by: Prathamesh Chavan Signed-off-by: Stefan Beller --- git-submodule.sh | 1 -

[PATCH v1 4/5] submodule foreach: document variable '$displaypath'

2018-02-01 Thread Prathamesh Chavan
It was observed that the variable '$displaypath' was accessible but undocumented. Hence, document it. Discussed-with: Ramsay Jones Signed-off-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- Documentation/git-submodule.txt | 6 -- t/t7407-submodule-foreach.

[PATCH v1 3/5] submodule foreach: clarify the '$toplevel' variable documentation

2018-02-01 Thread Prathamesh Chavan
It does not contain the topmost superproject as the author assumed, but the direct superproject, such that $toplevel/$sm_path is the actual absolute path of the submodule. Discussed-with: Ramsay Jones Signed-off-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- Documentation/git

[PATCH v1 0/5] Incremental rewrite of git-submodules

2018-02-01 Thread Prathamesh Chavan
ies-3 Build #202 Prathamesh Chavan (5): submodule foreach: correct '$path' in nested submodules from a subdirectory submodule foreach: document '$sm_path' instead of '$path' submodule foreach: clarify the '$toplevel' variable documentation submo

[PATCH v1 2/5] submodule foreach: document '$sm_path' instead of '$path'

2018-02-01 Thread Prathamesh Chavan
make the 'path' variable available and document it as a deprecated synonym of 'sm_path'. Discussed-with: Ramsay Jones Signed-off-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- Documentation/git-submodule.txt | 10 ++ 1 file changed, 6 insertions(+), 4 deletions

[PATCH v1 5/5] submodule: port submodule subcommand 'foreach' from shell to C

2018-02-01 Thread Prathamesh Chavan
uot;--super-prefix displaypath", to the args argv_array structure. Other required arguments and the input of submodule-foreach is also appended to this argv_array. Helped-by: Brandon Williams Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- buil

Re: [PATCH v1 0/5] Incremental rewrite of git-submodules: git-foreach

2018-02-01 Thread Prathamesh Chavan
Since due to some reason, the previous patch-series list was unavailable on the mailing list, I have re-posted the series. It is available at: https://public-inbox.org/git/20180202045745.5076-1-pc44...@gmail.com/ Thanks, Prathamesh Chavan

Re: Reg : GSoC 2017 Microproject

2017-03-07 Thread Prathamesh Chavan
On Tue, Mar 7, 2017 at 3:52 PM, Vedant Bassi wrote: > Hi, > > I would like to participate in GSoC 2017 and I have chosen the Use > unsigned integral type for collection of bits , idea from the Micro > projects list. > > I request the help of the community for clarifying a few questions that I > h

[PATCH] t*: avoid using pipes

2017-03-07 Thread Prathamesh Chavan
Hi, I'm Prathamesh Chavan. As a part of my micropraoject I have been working on "Avoid pipes for git related commands in test suites". I tried sending the patch, but it got blocked since the mail contained more than 100 000 characters. Hence I'll like to attach the link to m

[PATCH] t*: avoid using pipes

2017-03-07 Thread Prathamesh Chavan
Hi, I'm Prathamesh Chavan. As a part of my micropraoject I have been working on "Avoid pipes for git related commands in test suites". I tried sending the patch, but it got blocked since the mail contained more than 100 000 characters. Hence, I have made the required changes in bra

Re: [PATCH] t*: avoid using pipes

2017-03-08 Thread Prathamesh Chavan
On Wed, Mar 8, 2017 at 11:33 AM, Jeff King wrote: > On Tue, Mar 07, 2017 at 12:52:49PM -0800, Stefan Beller wrote: > >> On Tue, Mar 7, 2017 at 12:39 PM, Johannes Sixt wrote: >> >> > Welcome to the Git community! >> >> > >> > Actually, being a *micro* project, it should stay so. Not doing all of t

[PATCH] t2027: avoid using pipes

2017-03-08 Thread Prathamesh Chavan
The exit code of the upstream of a pipe is ignored thus we should avoid using it. By writing out the output of the git command to a file, we can test the exit codes of both the commands. Signed-off-by: Prathamesh --- t/t2027-worktree-list.sh | 14 +++--- 1 file changed, 7 insertions(+),

Re: [PATCH] t2027: avoid using pipes

2017-03-08 Thread Prathamesh Chavan
But when I read the function carefully, it only removes the trash files created when test_failure is equal to zero. But as far as I know, I can see the files being removed even when a test_failure is non-zero for some test script. On Thu, Mar 9, 2017 at 3:08 AM, Prathamesh Chavan wrote

Re: [PATCH] t2027: avoid using pipes

2017-03-08 Thread Prathamesh Chavan
PM, Jon Loeliger wrote: > So, like, Prathamesh Chavan said: >> The exit code of the upstream of a pipe is ignored thus we should avoid >> using it. By writing out the output of the git command to a file, we >> can test the exit codes of both the commands. >> &

Re: [PATCH] t*: avoid using pipes

2017-03-08 Thread Prathamesh Chavan
, Prathamesh Chavan wrote: > On Wed, Mar 8, 2017 at 11:33 AM, Jeff King wrote: >> On Tue, Mar 07, 2017 at 12:52:49PM -0800, Stefan Beller wrote: >> >>> On Tue, Mar 7, 2017 at 12:39 PM, Johannes Sixt wrote: >>> >>> > Welcome to the Git community! >>> &g

Re: [PATCH] t2027: avoid using pipes

2017-03-09 Thread Prathamesh Chavan
On Thu, Mar 9, 2017 at 1:38 PM, Christian Couder wrote: > On Wed, Mar 8, 2017 at 4:13 PM, Prathamesh Chavan wrote: >> The exit code of the upstream of a pipe is ignored thus we should avoid >> using it. > > You might want to say more specifically that we should avoid piping

[PATCH v2] t2027: avoid using pipes

2017-03-09 Thread Prathamesh Chavan
The exit code of the upstream of a pipe is ignored thus we should avoid using it. By writing out the output of the git command to a file, we can test the exit codes of both the commands. Signed-off-by: Prathamesh --- t/t2027-worktree-list.sh | 14 +++--- 1 file changed, 7 insertions(+),

[PATCH v2] t2027: avoid using pipes

2017-03-09 Thread Prathamesh Chavan
Whenever a git command is present in the upstream of a pipe, its failure gets masked by piping and hence it should be avoided for testing the upstream git command. By writing out the output of the git command to a file, we can test the exit codes of both the commands as a failure exit code in any c

[PATCH] t2027: avoid using pipes

2017-03-09 Thread Prathamesh Chavan
From: Prathamesh Whenever a git command is present in the upstream of a pipe, its failure gets masked by piping and hence it should be avoided for testing the upstream git command. By writing out the output of the git command to a file, we can test the exit codes of both the commands as a failure

[PATCH] t2027: avoid using pipes

2017-03-09 Thread Prathamesh Chavan
From: Prathamesh Whenever a git command is present in the upstream of a pipe, its failure gets masked by piping and hence it should be avoided for testing the upstream git command. By writing out the output of the git command to a file, we can test the exit codes of both the commands as a failure

  1   2   3   >