Skip to content

Update: Week-11

Prathamesh Chavan git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13submodule--helper: introduce get_submodule_displaypath()builtin/submodule--helper.c+22 -110 replies
2/13submodule--helper: introduce for_each_submodule_list()builtin/submodule--helper.c+29 -100 replies
3/13submodule: port set_name_rev() from shell to Cbuiltin/submodule--helper.c git-submodule.sh+66 -140 replies
4/13submodule: port submodule subcommand 'status' from shell to Cbuiltin/submodule--helper.c git-submodule.sh+155 -482 replies
5/13submodule: port submodule subcommand 'sync' from shell to Cbuiltin/submodule--helper.c git-submodule.sh+183 -551 reply
6/13submodule: port submodule subcommand 'deinit' from shell to Cbuiltin/submodule--helper.c git-submodule.sh+145 -542 replies
7/13diff: change scope of the function count_lines()diff.c diff.h+2 -10 replies
8/13submodule: port submodule subcommand 'summary' from shell to Cbuiltin/submodule--helper.c git-submodule.sh+426 -1815 replies
9/13submodule foreach: correct '$path' in nested submodules from a subdirectorygit-submodule.sh t/t7407-submodule-foreach.sh+34 -30 replies
10/13submodule foreach: document '$sm_path' instead of '$path'Documentation/git-submodule.txt+6 -40 replies
11/13submodule foreach: clarify the '$toplevel' variable documentationDocumentation/git-submodule.txt+2 -10 replies
12/13submodule foreach: document variable '$displaypath'Documentation/git-submodule.txt t/t7407-submodule-foreach.sh+15 -130 replies
13/13submodule: port submodule subcommand 'foreach' from shell to Cbuiltin/submodule--helper.c git-submodule.sh+137 -381 reply

Reviews trailers per patch

None of the 13 patches has a Reviewed-by or Acked-by.

PatchChristian CouderStefan BellerBrandon Williams
1/13Mentored-by Mentored-by
2/13Mentored-by Mentored-by
3/13Mentored-by Mentored-by
4/13Mentored-by Mentored-by
5/13Mentored-by Mentored-by
6/13Mentored-by Mentored-by
7/13Mentored-by Mentored-by
8/13Mentored-by Mentored-by
9/13
10/13
11/13
12/13
13/13Mentored-by Mentored-by Helped-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [GSoC][PATCH 00/13] Update: Week-11

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's portability and hence the efficiency of working with the git-submodule commands. Link to the complete proposal: [1]

Mentors:
Stefan Beller <[email protected]>
Christian Couder <[email protected]>

UPDATES:

Following are the updates about my ongoing project:

* Following patches were updated after the previous reviews:
- set_name_rev()
submodule subcommands:
- status
- sync
- deinit
- summary
- foreach

* Reviews from both Christian Couder <[email protected]> and Brandon Williams <[email protected]> helped in improvising these patches and their suggestions were implemented.

* Porting of submodule subcommand add is still underway. Its progess can be viewed at [2].

PLAN FOR WEEK-12 (1 August 2017 to 7 August 2017):

* summary: One of the problems pointed out by Brandon this week was that the function print_submodule_summary() was too big to keep track of all the things that are happening. Hence, I will be splitting the function into smaller functions.

* displaypath: There is some confusion produced with the way the value of displaypath is being generated, using super-prefix. [3] Via having discussion on this, I'll try to resolve the issues regarding it. In the patches following the update, I have addressed this issue as well.

* add: Porting of this subcommand is still underway and will be working on to completely port this subcommand.

A complete build report of these series of patches is available at: [4]. Build #145
Branch: week-11

The work is push on github and is available at: [5].

[1]: https://docs.google.com/document/d/1krxVLooWl--75Pot3dazhfygR3wCUUWZWzTXtK1 L-xU/
[2]: https://github.com/pratham-pc/git/commits/sub-add
[3]: https://public-inbox.org/git/[email protected]/
[4]: https://travis-ci.org/pratham-pc/git/builds/
[5]: https://github.com/pratham-pc/git/commits/week-11

submodule--helper: introduce get_submodule_displaypath()
submodule--helper: introduce for_each_submodule_list()
submodule: port set_name_rev() from shell to C
submodule: port submodule subcommand 'status' from shell to C
submodule: port submodule subcommand 'sync' from shell to C
submodule: port submodule subcommand 'deinit' from shell to C
diff: change scope of the function count_lines()
submodule: port submodule subcommand 'summary' from shell to C 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 submodule foreach: document variable '$displaypath'
submodule: port submodule subcommand 'foreach' from shell to C

 Documentation/git-submodule.txt |   15 +-
 builtin/submodule--helper.c     | 1175 ++++++++++++++++++++++++++++++++++++++-
 diff.c                          |    2 +-
 diff.h                          |    1 +
 git-submodule.sh                |  394 +------------
 t/t7407-submodule-foreach.sh    |   38 +-
 6 files changed, 1207 insertions(+), 418 deletions(-)
Signature · 1 line
2.13.0