wtcode 0.1.0__tar.gz → 0.1.1__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wtcode
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Launch your favorite code tool in a git worktree
5
5
  Author-email: Jaeho Shin <netj@sparcs.org>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "wtcode"
7
- version = "0.1.0"
7
+ version = "0.1.1"
8
8
  description = "Launch your favorite code tool in a git worktree"
9
9
  license = "MIT"
10
10
  readme = "README.md"
@@ -1,3 +1,3 @@
1
1
  """wtcode -- launch your favorite code tool in a git worktree."""
2
2
 
3
- __version__ = "0.1.0"
3
+ __version__ = "0.1.1"
@@ -9,7 +9,7 @@ ${WTCODE_DEBUG:+set -x}
9
9
 
10
10
  --msg() { echo "wtcode: $*" >&2; }
11
11
 
12
- WTCODE_VERSION=0.1.0
12
+ WTCODE_VERSION=0.1.1
13
13
  --version() { echo "wtcode $WTCODE_VERSION"; }
14
14
  --help() {
15
15
  cat <<USAGE
@@ -108,7 +108,10 @@ WTCODE_CMDS_TO_TRY=(
108
108
  branch_name=${1:?Need a worktree/branch name as first argument}; shift
109
109
  fi
110
110
 
111
- : ${branch_name:?non-empty worktree/branch name required}
111
+ if [[ -z ${branch_name-} ]]; then
112
+ --msg "no branch selected"
113
+ exit 1
114
+ fi
112
115
 
113
116
  # check if branch name starts with ':' to force new branch creation
114
117
  # supports multiple colons (e.g., :::my-branch) to avoid fzf matching
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wtcode
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Launch your favorite code tool in a git worktree
5
5
  Author-email: Jaeho Shin <netj@sparcs.org>
6
6
  License-Expression: MIT
File without changes
File without changes
File without changes
File without changes