@jswork/ushell-module-git 1.0.21 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.sh +2 -0
- package/modules/08-mvg.sh +2 -2
- package/package.json +3 -2
package/index.sh
CHANGED
|
@@ -85,6 +85,8 @@ alias github-cache='ssh-add ~/.ssh/id_rsa.github.com >/dev/null 2>/dev/null;';
|
|
|
85
85
|
## move subdirs to root:
|
|
86
86
|
alias mvg="${ROOT_PATH}/modules/08-mvg.sh";
|
|
87
87
|
|
|
88
|
+
# oprr
|
|
89
|
+
alias oprr="open https://github.com/applyai-dev/applyai-frontend/compare/dev...$(git branch --show-current)?expand=1";
|
|
88
90
|
# git-url-cli
|
|
89
91
|
# alias guc='git-url-cli'
|
|
90
92
|
|
package/modules/08-mvg.sh
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
|
-
# 1.from
|
|
4
|
-
subdir=$
|
|
3
|
+
# 1.from folder name: ls -d */ | awk '{printf $1}'
|
|
4
|
+
subdir=$(ls -d */ | awk '{printf $1}')
|
|
5
5
|
# 2. remove .git directory
|
|
6
6
|
cd $subdir && rm -rf .git && cd ..
|
|
7
7
|
# 3. move all files to parent directory
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jswork/ushell-module-git",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.23",
|
|
4
4
|
"description": "Unix like shell module for git.",
|
|
5
5
|
"main": "index.sh",
|
|
6
6
|
"repository": {
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"private",
|
|
25
25
|
"git-flow",
|
|
26
26
|
"ushell",
|
|
27
|
-
"unix"
|
|
27
|
+
"unix",
|
|
28
|
+
"gcd"
|
|
28
29
|
],
|
|
29
30
|
"scripts": {
|
|
30
31
|
"release": "release-it"
|