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

[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

[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 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 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 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 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 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 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 +

[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 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 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 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 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 ++

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 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

[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 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 v7 1/3] submodule--helper: introduce get_submodule_displaypath()

2017-10-06 Thread Prathamesh Chavan
Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 35 +++ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c index 06ed02f99..56c1c52e2 100644 --- a/builtin/submodule

[PATCH v7 0/3] Incremental rewrite of git-submodules

2017-10-06 Thread Prathamesh Chavan
189 The above changes are also push on github and are available at: https://github.com/pratham-pc/git/commits/patch-series-1-next Prathamesh Chavan (3): submodule--helper: introduce get_submodule_displaypath() submodule--helper: introduce for_each_listed_submodule() submodule: port submodule

[PATCH v7 2/3] submodule--helper: introduce for_each_listed_submodule()

2017-10-06 Thread Prathamesh Chavan
Introduce function for_each_listed_submodule() 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

[PATCH v7 3/3] submodule: port submodule subcommand 'status' from shell to C

2017-10-06 Thread Prathamesh Chavan
tefan Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 198 git-submodule.sh| 61 +- 2 files changed, 199 insertions(+), 60 deletions(-) diff --git a/builtin/submodule--helper.c b/builtin/submodule--help

[PATCH v6 3/3] submodule: port submodule subcommand 'status' from shell to C

2017-09-29 Thread Prathamesh Chavan
tefan Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 207 git-submodule.sh| 61 + 2 files changed, 208 insertions(+), 60 deletions(-) diff --git a/builtin/submodule--helper.c b/builtin/submodule--help

[PATCH v6 1/3] submodule--helper: introduce get_submodule_displaypath()

2017-09-29 Thread Prathamesh Chavan
Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 35 +++ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c index 818fe74f0..cdae54426 100644 --- a/builtin/submodule

[PATCH v6 2/3] submodule--helper: introduce for_each_listed_submodule()

2017-09-29 Thread Prathamesh Chavan
Introduce function for_each_listed_submodule() 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

[PATCH v6 0/3] Incremental rewrite of git-submodules

2017-09-29 Thread Prathamesh Chavan
re you can find this series at: https://github.com/pratham-pc/git/commits/patch-series-1 And its build report is available at: https://travis-ci.org/pratham-pc/git/builds/ Branch: patch-series-1 Build #184 Prathamesh Chavan (3): submodule--helper: introduce get_submodule_displaypath() su

[PATCH v5 2/4] submodule--helper: introduce for_each_listed_submodule()

2017-09-24 Thread Prathamesh Chavan
Introduce function for_each_listed_submodule() 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

[PATCH v5 1/4] submodule--helper: introduce get_submodule_displaypath()

2017-09-24 Thread Prathamesh Chavan
Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 38 ++ 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c index 818fe74f0..d24ac9028 100644 --- a/builtin/submodule

[PATCH v5 3/4] submodule: port set_name_rev() from shell to C

2017-09-24 Thread Prathamesh Chavan
printing. Mentored-by: Christian 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

[PATCH v5 0/4] Incremental rewrite of git-submodules

2017-09-24 Thread Prathamesh Chavan
ds/ Branch: patch-series-1 Build #179 Thanks, Han-Wen Nienhuys for reviewing the previous patch series. Prathamesh Chavan (4): submodule--helper: introduce get_submodule_displaypath() submodule--helper: introduce for_each_listed_submodule() submodule: port set_name_rev() from shell to C

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

2017-09-24 Thread Prathamesh Chavan
bcommand as it is no longer used. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 162 +++- git-submodule.sh| 49 +- 2 files changed, 147 insertions(+), 6

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

2017-08-28 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 Signe

[GSoC][PATCH v4 2/4] submodule--helper: introduce for_each_listed_submodule()

2017-08-28 Thread Prathamesh Chavan
Introduce function for_each_listed_submodule() 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 v4 1/4] submodule--helper: introduce get_submodule_displaypath()

2017-08-28 Thread Prathamesh Chavan
Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 37 + 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c index 818fe74f0..e25854371 100644 --- a/builtin/submodule

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

2017-08-28 Thread Prathamesh Chavan
printing. Mentored-by: Christian 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

[GSoC][PATCH v4 0/4] Incremental rewrite of git-submodules

2017-08-28 Thread Prathamesh Chavan
h-series-1-next Prathamesh Chavan (4): submodule--helper: introduce get_submodule_displaypath() submodule--helper: introduce for_each_listed_submodule() submodule: port set_name_rev() from shell to C submodule: port submodule subcommand 'status' from shell to C builtin/

Re: [GSoC][PATCH v3 0/4] Incremental rewrite of git-submodules

2017-08-27 Thread Prathamesh Chavan
7;ll see the dirty merges and will resend the whole series after reviewing the dirty merge and sending a new one with/without changes as required. Thanks, Prathamesh Chavan

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

2017-08-24 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 Signe

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

2017-08-24 Thread Prathamesh Chavan
printing. Mentored-by: Christian 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

[GSoC][PATCH v3 2/4] submodule--helper: introduce for_each_listed_submodule()

2017-08-24 Thread Prathamesh Chavan
Introduce function for_each_listed_submodule() 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 v3 1/4] submodule--helper: introduce get_submodule_displaypath()

2017-08-24 Thread Prathamesh Chavan
Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 38 +- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c index 84562ec83..e666f84ba 100644 --- a/builtin/submodule

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

2017-08-24 Thread Prathamesh Chavan
series at: https://github.com/pratham-pc/git/commits/week-14-1 And its build report is available at: https://travis-ci.org/pratham-pc/git/builds/ Branch: week-14-1 Build #164 Prathamesh Chavan (4): submodule--helper: introduce get_submodule_displaypath() submodule--helper: introduce

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

2017-08-23 Thread Prathamesh Chavan
t. 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 v2 3/4] submodule: port set_name_rev() from shell to C

2017-08-23 Thread Prathamesh Chavan
printing. Mentored-by: Christian 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

[GSoC][PATCH v2 2/4] submodule--helper: introduce for_each_submodule()

2017-08-23 Thread Prathamesh Chavan
Introduce function for_each_submodule() 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/submodule

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

2017-08-23 Thread Prathamesh Chavan
Beller Signed-off-by: Prathamesh Chavan --- builtin/submodule--helper.c | 38 +- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c index 84562ec83..e666f84ba 100644 --- a/builtin/submodule

[GSoC][PATCH v2 0/4] submodule: Incremental rewrite of git-submodules

2017-08-23 Thread Prathamesh Chavan
/week-14-1 And the build report is available at: https://travis-ci.org/pratham-pc/git/builds/ Branch: week-14-1 Build #163 Prathamesh Chavan (4): submodule--helper: introduce get_submodule_displaypath() submodule--helper: introduce for_each_submodule() submodule: port set_name_rev() from she

[GSoC] Update: Week 14

2017-08-21 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'

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

2017-08-21 Thread Prathamesh Chavan
On Mon, Aug 21, 2017 at 10:17 PM, Heiko Voigt wrote: > On Mon, Aug 21, 2017 at 09:45:14PM +0530, Prathamesh Chavan wrote: >> Function set_name_rev() is ported from git-submodule to the >> submodule--helper builtin. The function get_name_rev() generates the >> value of

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

2017-08-21 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/4] submodule--helper: introduce get_submodule_displaypath()

2017-08-21 Thread Prathamesh Chavan
Beller Signed-off-by: Prathamesh Chavan --- As said in the previous update, a short patch series is floated for the maintainer's review, and is consisting of the following changes: * introduce function get_submodule_displaypath() * introduce function for_each_submodule_list() * port fun

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

2017-08-21 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/4] submodule--helper: introduce for_each_submodule_list()

2017-08-21 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] Update: Week-13

2017-08-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 13/13] submodule: port submodule subcommand 'foreach' from shell to C

2017-08-07 Thread Prathamesh Chavan
tored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- In this new version, the following changes have been made: * A comment was added to clarify why the env variables were made available only for the case of argc == 1. builtin/submodule--helper.c | 142 ++

[GSoC][PATCH 12/13] submodule foreach: document variable '$displaypath'

2017-08-07 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.

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

2017-08-07 Thread Prathamesh Chavan
eventually calling the generate_submodule_summary() function. The function generate_submodule_summary() takes care of generating the summary for each submodule and then calls the function print_summary() for printing it. Mentored-by: Christian Couder Mentored-by: Stefan Beller Signed-off-by: Pratham

[GSoC][PATCH 10/13] submodule foreach: document '$sm_path' instead of '$path'

2017-08-07 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

[GSoC][PATCH 11/13] submodule foreach: clarify the '$toplevel' variable documentation

2017-08-07 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

[GSoC][PATCH 09/13] submodule foreach: correct '$path' in nested submodules from a subdirectory

2017-08-07 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 -

[GSoC][PATCH 07/13] diff: change scope of the function count_lines()

2017-08-07 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 04/13] submodule: port submodule subcommand 'status' from shell to C

2017-08-07 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 05/13] submodule: port submodule subcommand 'sync' from shell to C

2017-08-07 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 | 183 ++

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

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

[GSoC][PATCH 01/13] submodule--helper: introduce get_submodule_displaypath()

2017-08-07 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 00/13] Update: Week-12

2017-08-07 Thread Prathamesh Chavan
inbox.org/git/CAGZ79kbyyR54me_+wQDZRrikqKTp_a98yozVfr8P85QHfyyy=q...@mail.gmail.com/ [5]: https://travis-ci.org/pratham-pc/git/builds/ [6]: https://github.com/pratham-pc/git/commits/week-12 Prathamesh Chavan (13): submodule--helper: introduce get_submodule_displaypath() submodule--helper: introduce for_each_subm

[GSoC][PATCH 02/13] submodule--helper: introduce for_each_submodule_list()

2017-08-07 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 03/13] submodule: port set_name_rev() from shell to C

2017-08-07 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

Re: [GSoC][PATCH 08/13] submodule: port submodule subcommand 'summary' from shell to C

2017-08-05 Thread Prathamesh Chavan
On Sat, Aug 5, 2017 at 10:25 PM, Christian Couder wrote: > On Sat, Aug 5, 2017 at 12:28 PM, Prathamesh Chavan wrote: >> On Tue, Aug 1, 2017 at 4:57 AM, Christian Couder >> wrote: >>> On Mon, Jul 31, 2017 at 10:56 PM, Prathamesh Chavan >>> wrote: >>

Re: [GSoC][PATCH 08/13] submodule: port submodule subcommand 'summary' from shell to C

2017-08-05 Thread Prathamesh Chavan
On Tue, Aug 1, 2017 at 4:57 AM, Christian Couder wrote: > On Mon, Jul 31, 2017 at 10:56 PM, Prathamesh Chavan wrote: > >> * variable head was no longer used in module_summary() and instead the strbuf >> was utilized. > > Good but there might be a few problems in the w

Re: [GSoC][PATCH 06/13] submodule: port submodule subcommand 'deinit' from shell to C

2017-08-01 Thread Prathamesh Chavan
On Tue, Aug 1, 2017 at 3:12 AM, Stefan Beller wrote: > On Mon, Jul 31, 2017 at 1:56 PM, Prathamesh Chavan wrote: >> 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

Re: [GSoC][PATCH 04/13] submodule: port submodule subcommand 'status' from shell to C

2017-08-01 Thread Prathamesh Chavan
On Tue, Aug 1, 2017 at 2:42 AM, Stefan Beller wrote: > On Mon, Jul 31, 2017 at 1:56 PM, Prathamesh Chavan wrote: >> This aims to make git-submodule 'status' a built-in. Hence, the function >> cmd_status() is ported from shell to C. This is done by introducing >>

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

2017-07-31 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 --- In this new version, the following changes have

[GSoC][PATCH 11/13] submodule foreach: clarify the '$toplevel' variable documentation

2017-07-31 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

[GSoC][PATCH 05/13] submodule: port submodule subcommand 'sync' from shell to C

2017-07-31 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 --- In this new version, the following changes have been made: * There was no good reas

[GSoC][PATCH 07/13] diff: change scope of the function count_lines()

2017-07-31 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 10/13] submodule foreach: document '$sm_path' instead of '$path'

2017-07-31 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 --- This patch is same as its previous version. Although here I'll like to add a point that

[GSoC][PATCH 12/13] submodule foreach: document variable '$displaypath'

2017-07-31 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 --- In this new version, the following changes have been made: * Spelling mistake in

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

2017-07-31 Thread Prathamesh Chavan
: Stefan Beller Signed-off-by: Prathamesh Chavan --- In this new version, the following changes have been made: * In the function deinit_submodule, since the test is_git_directory() adds an additional condition, instead is_directory() is used to check if "sm_path/.git" is a directory

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

2017-07-31 Thread Prathamesh Chavan
tored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- In this new version, the following changes have been made: * Comment style is improved in the function runcommand_in_submodule() * Comment in added about why the variable "path" was exposed via args argv_array instead of expos

[GSoC][PATCH 09/13] submodule foreach: correct '$path' in nested submodules from a subdirectory

2017-07-31 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 -

[GSoC][PATCH 04/13] submodule: port submodule subcommand 'status' from shell to C

2017-07-31 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 03/13] submodule: port set_name_rev() from shell to C

2017-07-31 Thread Prathamesh Chavan
Couder Mentored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- In this new version, the following changes have been made: * The variable namerev from print_name_rev is now freed at the end of the function. builtin/submodule--helper.c | 64 + git

[GSoC][PATCH 02/13] submodule--helper: introduce for_each_submodule_list()

2017-07-31 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 01/13] submodule--helper: introduce get_submodule_displaypath()

2017-07-31 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 00/13] Update: Week-11

2017-07-31 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'

Re: [GSoC][PATCH v2 08/13] submodule: port submodule subcommand 'summary' from shell to C

2017-07-29 Thread Prathamesh Chavan
On Sun, Jul 30, 2017 at 10:58 AM, Christian Couder wrote: > On Sun, Jul 30, 2017 at 12:23 AM, Prathamesh Chavan wrote: > >> +static int module_summary(int argc, const char **argv, const char *prefix) >> +{ >> + struct summary_cb info = SUMMARY_CB_INIT; &

[GSoC][PATCH v2 12/13] submodule foreach: document variable '$displaypath'

2017-07-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 --- In this new version, the following changes have been made: * Spelling mistake in

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

2017-07-29 Thread Prathamesh Chavan
tored-by: Stefan Beller Signed-off-by: Prathamesh Chavan --- In this new version, the following changes have been made: * Comment style is improved in the function runcommand_in_submodule() * Comment in added about why the variable "path" was exposed via args argv_array instead of expos

[GSoC][PATCH v2 10/13] submodule foreach: document '$sm_path' instead of '$path'

2017-07-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 --- This patch is same as its previous version. Although here I'll like to add a point that

[GSoC][PATCH v2 11/13] submodule foreach: clarify the '$toplevel' variable documentation

2017-07-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

[GSoC][PATCH v2 09/13] submodule foreach: correct '$path' in nested submodules from a subdirectory

2017-07-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 -

[GSoC][PATCH v2 08/13] submodule: port submodule subcommand 'summary' from shell to C

2017-07-29 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 --- In this new version, the following changes have

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

2017-07-29 Thread Prathamesh Chavan
: Stefan Beller Signed-off-by: Prathamesh Chavan --- In this new version, the following changes have been made: * In the function deinit_submodule, since the test is_git_directory() adds an additional condition, instead is_directory() is used to check if "sm_path/.git" is a directory

[GSoC][PATCH v2 04/13] submodule: port submodule subcommand 'status' from shell to C

2017-07-29 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

  1   2   3   >