<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-submodule.sh, branch gitk-resize-error</title>
<subtitle>Fork of git SCM with my patches.</subtitle>
<id>http://git.kilabit.info/git/atom?h=gitk-resize-error</id>
<link rel='self' href='http://git.kilabit.info/git/atom?h=gitk-resize-error'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/'/>
<updated>2021-09-23T20:44:47Z</updated>
<entry>
<title>Merge branch 'ab/unused-script-helpers'</title>
<updated>2021-09-23T20:44:47Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-09-23T20:44:47Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=57e4a7b633d00f274051d436edcec14ad98969c3'/>
<id>urn:sha1:57e4a7b633d00f274051d436edcec14ad98969c3</id>
<content type='text'>
Code clean-up.

* ab/unused-script-helpers:
  test-lib: remove unused $_x40 and $_z40 variables
  git-bisect: remove unused SHA-1 $x40 shell variable
  git-sh-setup: remove unused "pull with rebase" message
  git-submodule: remove unused is_zero_oid() function
</content>
</entry>
<entry>
<title>Merge branch 'ar/submodule-run-update-procedure'</title>
<updated>2021-09-20T22:20:44Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-09-20T22:20:44Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=e78db9d3037eba812591857e7b44e69b97b329f4'/>
<id>urn:sha1:e78db9d3037eba812591857e7b44e69b97b329f4</id>
<content type='text'>
Reimplementation of parts of "git submodule" in C continues.

* ar/submodule-run-update-procedure:
  submodule--helper: run update procedures from C
</content>
</entry>
<entry>
<title>git-submodule: remove unused is_zero_oid() function</title>
<updated>2021-09-12T23:21:51Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-09-11T11:17:48Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=162410f8a020dc039ead88c0ec5337ed808b7019'/>
<id>urn:sha1:162410f8a020dc039ead88c0ec5337ed808b7019</id>
<content type='text'>
The is_zero_oid() function in git-submodule.sh has not been used since
e83e3333b57 (submodule: port submodule subcommand 'summary' from shell
to C, 2020-08-13), so we can remove it.

This was the last user of the sane_egrep() function in
git-sh-setup.sh. I'm not removing it in case some out-of-tree user
relied on it. Per the discussion that can be found upthread of [1].

1. https://lore.kernel.org/git/87tuiwjfvi.fsf@evledraar.gmail.com/

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>submodule--helper: run update procedures from C</title>
<updated>2021-08-24T21:03:58Z</updated>
<author>
<name>Atharva Raykar</name>
<email>raykar.ath@gmail.com</email>
</author>
<published>2021-08-24T14:06:09Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=c51f8f94e5b3d6a8d190d9901ea0c5b83e30c3aa'/>
<id>urn:sha1:c51f8f94e5b3d6a8d190d9901ea0c5b83e30c3aa</id>
<content type='text'>
Add a new submodule--helper subcommand `run-update-procedure` that runs
the update procedure if the SHA1 of the submodule does not match what
the superproject expects.

This is an intermediate change that works towards total conversion of
`submodule update` from shell to C.

Specific error codes are returned so that the shell script calling the
subcommand can take a decision on the control flow, and preserve the
error messages across subsequent recursive calls of `cmd_update`.

This change is more focused on doing a faithful conversion, so for now we
are not too concerned with trying to reduce subprocess spawns.

Mentored-by: Christian Couder &lt;christian.couder@gmail.com&gt;
Mentored-by: Shourya Shukla &lt;periperidip@gmail.com&gt;
Signed-off-by: Atharva Raykar &lt;raykar.ath@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>submodule--helper: convert the bulk of cmd_add() to C</title>
<updated>2021-08-10T18:45:11Z</updated>
<author>
<name>Atharva Raykar</name>
<email>raykar.ath@gmail.com</email>
</author>
<published>2021-08-10T11:46:37Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=a6226fd772b1dfff87fa8dc040d97efa75a3721c'/>
<id>urn:sha1:a6226fd772b1dfff87fa8dc040d97efa75a3721c</id>
<content type='text'>
Introduce the 'add' subcommand to `submodule--helper.c` that does all
the work 'submodule add' past the parsing of flags.

We also remove the constness of the sm_path field of the `add_data`
struct. This is needed so that it can be modified by
normalize_path_copy().

As with the previous conversions, this is meant to be a faithful
conversion with no modification to the behaviour of `submodule add`.

Signed-off-by: Atharva Raykar &lt;raykar.ath@gmail.com&gt;
Mentored-by: Christian Couder &lt;christian.couder@gmail.com&gt;
Helped-by: Kaartic Sivaraam &lt;kaartic.sivaraam@gmail.com&gt;
Mentored-by: Shourya Shukla &lt;periperidip@gmail.com&gt;
Based-on-patch-by: Shourya Shukla &lt;periperidip@gmail.com&gt;
Based-on-patch-by: Prathamesh Chavan &lt;pc44800@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ar/submodule-add-config' into ar/submodule-add</title>
<updated>2021-08-10T18:01:19Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-08-10T18:01:19Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=59dcbb810c30967139ff1784f42c85f50a81b31c'/>
<id>urn:sha1:59dcbb810c30967139ff1784f42c85f50a81b31c</id>
<content type='text'>
* ar/submodule-add-config:
  submodule--helper: introduce add-config subcommand
</content>
</entry>
<entry>
<title>submodule--helper: introduce add-config subcommand</title>
<updated>2021-08-10T17:57:57Z</updated>
<author>
<name>Atharva Raykar</name>
<email>raykar.ath@gmail.com</email>
</author>
<published>2021-08-06T14:04:31Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=a452128a36cb73f5366c23eabe93c7edfa227866'/>
<id>urn:sha1:a452128a36cb73f5366c23eabe93c7edfa227866</id>
<content type='text'>
Add a new "add-config" subcommand to `git submodule--helper` with the
goal of converting part of the shell code in git-submodule.sh related to
`git submodule add` into C code. This new subcommand sets the
configuration variables of a newly added submodule, by registering the
url in local git config, as well as the submodule name and path in the
.gitmodules file. It also sets 'submodule.&lt;name&gt;.active' to "true" if
the submodule path has not already been covered by any pathspec
specified in 'submodule.active'.

This is meant to be a faithful conversion from shell to C, although we
add comments to areas that could be improved in future patches, after
the conversion has settled.

Signed-off-by: Atharva Raykar &lt;raykar.ath@gmail.com&gt;
Mentored-by: Christian Couder &lt;christian.couder@gmail.com&gt;
Mentored-by: Shourya Shukla &lt;periperidip@gmail.com&gt;
Based-on-patch-by: Shourya Shukla &lt;periperidip@gmail.com&gt;
Based-on-patch-by: Prathamesh Chavan &lt;pc44800@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ar/submodule-add'</title>
<updated>2021-08-04T20:28:52Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-08-04T20:28:52Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=10f57e0eb9070bf00c45def2980a47eacbae8316'/>
<id>urn:sha1:10f57e0eb9070bf00c45def2980a47eacbae8316</id>
<content type='text'>
Rewrite of "git submodule" in C continues.

* ar/submodule-add:
  submodule: drop unused sm_name parameter from show_fetch_remotes()
  submodule--helper: introduce add-clone subcommand
  submodule--helper: refactor module_clone()
  submodule: prefix die messages with 'fatal'
  t7400: test failure to add submodule in tracked path
</content>
</entry>
<entry>
<title>submodule--helper: introduce add-clone subcommand</title>
<updated>2021-07-12T19:06:21Z</updated>
<author>
<name>Atharva Raykar</name>
<email>raykar.ath@gmail.com</email>
</author>
<published>2021-07-10T07:48:01Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=8c8195e9c3e21922673575828977845b613c3491'/>
<id>urn:sha1:8c8195e9c3e21922673575828977845b613c3491</id>
<content type='text'>
Let's add a new "add-clone" subcommand to `git submodule--helper` with
the goal of converting part of the shell code in git-submodule.sh
related to `git submodule add` into C code. This new subcommand clones
the repository that is to be added, and checks out to the appropriate
branch.

This is meant to be a faithful conversion that leaves the behaviour of
'cmd_add()' script unchanged.

Signed-off-by: Atharva Raykar &lt;raykar.ath@gmail.com&gt;
Mentored-by: Christian Couder &lt;christian.couder@gmail.com&gt;
Mentored-by: Shourya Shukla &lt;periperidip@gmail.com&gt;
Based-on-patch-by: Shourya Shukla &lt;periperidip@gmail.com&gt;
Based-on-patch-by: Prathamesh Chavan &lt;pc44800@gmail.com&gt;
Helped-by: Đoàn Trần Công Danh &lt;congdanhqx@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>submodule: prefix die messages with 'fatal'</title>
<updated>2021-07-12T19:06:21Z</updated>
<author>
<name>Atharva Raykar</name>
<email>raykar.ath@gmail.com</email>
</author>
<published>2021-07-10T07:47:59Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=0008d12284ef916b53341c2aadccdc017ff07c7a'/>
<id>urn:sha1:0008d12284ef916b53341c2aadccdc017ff07c7a</id>
<content type='text'>
The standard `die()` function that is used in C code prefixes all the
messages passed to it with 'fatal: '. This does not happen with the
`die` used in 'git-submodule.sh'.

Let's prefix each of the shell die messages with 'fatal: ' so that when
they are converted to C code, the error messages stay the same as before
the conversion.

Note that the shell version of `die` exits with error code 1, while the
C version exits with error code 128. In practice, this does not change
any behaviour, as no functionality in 'submodule add' and 'submodule
update' relies on the value of the exit code.

Signed-off-by: Atharva Raykar &lt;raykar.ath@gmail.com&gt;
Mentored-by: Christian Couder &lt;christian.couder@gmail.com&gt;
Mentored-by: Shourya Shukla &lt;periperidip@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
