Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: git/git
base: 67fc02be54bc8f5e8abf381456f297e32440b88a
Choose a base ref
...
head repository: git/git
compare: a452128a36cb73f5366c23eabe93c7edfa227866
Choose a head ref
  • 1 commit
  • 3 files changed
  • 1 contributor

Commits on Aug 10, 2021

  1. submodule--helper: introduce add-config subcommand

    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.<name>.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 <raykar.ath@gmail.com>
    Mentored-by: Christian Couder <christian.couder@gmail.com>
    Mentored-by: Shourya Shukla <periperidip@gmail.com>
    Based-on-patch-by: Shourya Shukla <periperidip@gmail.com>
    Based-on-patch-by: Prathamesh Chavan <pc44800@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
    tfidfwastaken authored and gitster committed Aug 10, 2021
    Copy the full SHA
    a452128 View commit details
    Browse the repository at this point in the history