stak-git 1.0.2 → 1.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stak-git",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Minimal stacked changes for git - build big features as small branches",
5
5
  "bin": {
6
6
  "stak": "./stak"
@@ -2,7 +2,7 @@
2
2
  # Maintainer: memorypasta <memorypasta@gmail.com>
3
3
 
4
4
  pkgname=stak
5
- pkgver=1.0.2
5
+ pkgver=1.0.3
6
6
  pkgrel=1
7
7
  pkgdesc="Minimal stacked changes for git - build big features as small branches"
8
8
  arch=('any')
@@ -11,7 +11,7 @@ license=('MIT')
11
11
  depends=('git' 'bash')
12
12
  optdepends=('fzf: interactive branch selection')
13
13
  source=("$pkgname-$pkgver.tar.gz::https://github.com/memorypasta/stak/archive/refs/tags/v$pkgver.tar.gz")
14
- sha256sums=('3e9393389c725fedd0129944f6b1d8abc8ba8fa9172fba373ff24d4497a39e31')
14
+ sha256sums=('1f2b8380010b75d50ee4087186e7db744d00908e28b90629ff592123714da2e7')
15
15
 
16
16
  package() {
17
17
  cd "$srcdir/stak-$pkgver"
package/pyproject.toml CHANGED
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "stak-git"
7
- version = "1.0.2"
7
+ version = "1.0.3"
8
8
  description = "Minimal stacked changes for git - build big features as small branches"
9
9
  readme = "README.md"
10
10
  license = "MIT"
package/stak CHANGED
@@ -85,6 +85,7 @@ validate_stack_name() {
85
85
  if [[ "$name" =~ [^a-zA-Z0-9_-] ]]; then
86
86
  die "invalid stack name: use only letters, numbers, underscore, hyphen"
87
87
  fi
88
+ return 0
88
89
  }
89
90
 
90
91
  validate_branch_name() {
@@ -96,6 +97,7 @@ validate_branch_name() {
96
97
  [[ "$name" == *":"* ]] && die "invalid branch name: cannot contain ':'"
97
98
  [[ "$name" == *"\\"* ]] && die "invalid branch name: cannot contain '\\'"
98
99
  [[ "$name" == *" "* ]] && die "invalid branch name: cannot contain spaces"
100
+ return 0
99
101
  }
100
102
 
101
103
  is_rebasing() {
package/stak_git/stak CHANGED
@@ -85,6 +85,7 @@ validate_stack_name() {
85
85
  if [[ "$name" =~ [^a-zA-Z0-9_-] ]]; then
86
86
  die "invalid stack name: use only letters, numbers, underscore, hyphen"
87
87
  fi
88
+ return 0
88
89
  }
89
90
 
90
91
  validate_branch_name() {
@@ -96,6 +97,7 @@ validate_branch_name() {
96
97
  [[ "$name" == *":"* ]] && die "invalid branch name: cannot contain ':'"
97
98
  [[ "$name" == *"\\"* ]] && die "invalid branch name: cannot contain '\\'"
98
99
  [[ "$name" == *" "* ]] && die "invalid branch name: cannot contain spaces"
100
+ return 0
99
101
  }
100
102
 
101
103
  is_rebasing() {