@jswork/ushell-module-git 1.0.28 → 1.0.30

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 CHANGED
@@ -2,7 +2,8 @@
2
2
  ## path:
3
3
  ROOT_PATH=$(dirname $BASH_SOURCE);
4
4
 
5
- source $ROOT_PATH/modules/02-git-flow.sh;
5
+ # 这个与我的命令 github-flow 冲突,所以暂时不用了
6
+ # source $ROOT_PATH/modules/02-git-flow.sh;
6
7
  source $ROOT_PATH/modules/07-git-rebase.sh;
7
8
 
8
9
  ## git base:
package/modules/10-opc.sh CHANGED
@@ -9,5 +9,7 @@ REPO_PATH=$(echo "$GIT_URL" | awk -F'[:/]' '{print $(NF-1)"/"$NF}' | cut -d '.'
9
9
  # 获取当前分支名称
10
10
  CURRENT_BRANCH=$(git branch --show-current)
11
11
 
12
+ BRANCH=${1:-$CURRENT_BRANCH}
13
+
12
14
  # 打开 GitHub 对比页面
13
- open "https://github.com/$REPO_PATH/commits/$CURRENT_BRANCH"
15
+ open "https://github.com/$REPO_PATH/commits/$BRANCH"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jswork/ushell-module-git",
3
- "version": "1.0.28",
3
+ "version": "1.0.30",
4
4
  "description": "Unix like shell module for git.",
5
5
  "main": "index.sh",
6
6
  "repository": {