forked from jwiegley/git-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b01da5
commit 9a2edb0
Showing
10 changed files
with
24 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ for dir in "$@"; do | |
SUBDIR=$(abspath "$dir") | ||
SUBDIR=$(echo $SUBDIR | sed s/$PROJ_RE//) | ||
|
||
repo=$(echo $(grep "url = " "$dir/.git/config") | \ | ||
repo=$(grep "url = " "$dir/.git/config" | \ | ||
sed 's/.*url = //' | \ | ||
sed 's/[email protected]:\([^\/]*\)\//git:\/\/github.com\/\1\//' ) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
DIRS="." | ||
dirs="." | ||
if [[ "$1" == --dir ]]; then | ||
shift 1 | ||
DIRS="$1" | ||
shift 1 | ||
dirs="$2" | ||
shift 2 | ||
fi | ||
|
||
exec find $DIRS \( -path '*/.git/config' -o \ | ||
exec find $dirs \( -path '*/.git/config' -o \ | ||
-regex '.*/.git/.*/config' \) -type f -print0 \ | ||
| parallel -0 --bar -j0 --delay 1 -k "git --git-dir={//} $@" | ||
| parallel -0 --bar -j0 --delay 1 -k "git --git-dir={//} $*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/usr/bin/env bash | ||
git subtree pull --prefix $1 ext/$(basename $1) master --squash | ||
git subtree pull --prefix "$1" "ext/$(basename "$1")" master --squash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/usr/bin/env bash | ||
git subtree push --prefix $1 fork/$(basename $1) master | ||
git subtree push --prefix "$1" "fork/$(basename "$1")" master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters