Skip to content

Commit 5bfdee2

Browse files
committed
sdk: learn about the git-extra project
Now contributors can start contributing to the Git for Windows project by calling sdk cd git-extra ... which will initialize the repository and make the git-extra/ subdirectory the current directory... Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 0dff1a7 commit 5bfdee2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

git-extra/git-sdk.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ sdk () {
3030
Windows SDK Bash.
3131
3232
cd <project>: initialize/update a worktree and cd into it. Known projects
33-
are: build-extra, git, MINGW-packages, MSYS2-packages.
33+
are: git, git-extra, build-extra, MINGW-packages, MSYS2-packages.
3434
3535
init <project>: initialize and/or update a worktree. Known projects
3636
are the same as for the 'cd' command.
@@ -75,6 +75,7 @@ sdk () {
7575
case "$2" in
7676
build-extra|git|MINGW-packages|MSYS2-packages)
7777
src_dir=/usr/src/"$2"
78+
src_cdup_dir="$src_dir"
7879
test -d "$src_dir"/.git && return
7980
mkdir -p "$src_dir" &&
8081
git -C "$src_dir" init &&
@@ -83,6 +84,11 @@ sdk () {
8384
https://github.com/git-for-windows/"$2" ||
8485
sdk die "Could not initialize $src_dir"
8586
;;
87+
git-extra)
88+
sdk init-lazy build-extra &&
89+
src_dir="$src_dir/$2" ||
90+
return 1
91+
;;
8692
*)
8793
sdk die "Unhandled repository: $2" >&2
8894
;;
@@ -95,7 +101,7 @@ sdk () {
95101
;;
96102
init)
97103
sdk init-lazy "$2" &&
98-
git -C "$src_dir" pull origin master
104+
git -C "$src_cdup_dir" pull origin master
99105
;;
100106
build)
101107
case "$2" in

0 commit comments

Comments
 (0)