easy-worktree 0.1.3__py3-none-any.whl → 0.1.4__py3-none-any.whl

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.
easy_worktree/__init__.py CHANGED
@@ -340,7 +340,7 @@ def create_hook_template(base_dir: Path):
340
340
  # .gitignore
341
341
  gitignore_file = wt_dir / ".gitignore"
342
342
 
343
- ignores = ["post-add.local", "config.local.toml"]
343
+ ignores = ["post-add.local", "config.local.toml", "last_selection"]
344
344
 
345
345
  if not gitignore_file.exists():
346
346
  gitignore_content = "\n".join(ignores) + "\n"
@@ -1415,7 +1415,8 @@ def cmd_select(args: list[str]):
1415
1415
  sys.exit(1)
1416
1416
 
1417
1417
  wt_dir = base_dir / ".wt"
1418
- wt_dir.mkdir(exist_ok=True)
1418
+ # Ensure .wt directory and its management files (.gitignore etc) exist
1419
+ create_hook_template(base_dir)
1419
1420
  last_sel_file = wt_dir / "last_selection"
1420
1421
 
1421
1422
  # Get current selection name based on CWD or environment
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: easy-worktree
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Git worktree を簡単に管理するための CLI ツール
5
5
  Project-URL: Homepage, https://github.com/igtm/easy-worktree
6
6
  Project-URL: Repository, https://github.com/igtm/easy-worktree
@@ -0,0 +1,6 @@
1
+ easy_worktree/__init__.py,sha256=iK93RMds8Tpg_PO9fdO3o7qWb8krXFUOyocevfdvRfQ,64802
2
+ easy_worktree-0.1.4.dist-info/METADATA,sha256=_odaKmNmF_w4c-oULH4xghSSYCFfGy9vb_By_x7G8tU,6520
3
+ easy_worktree-0.1.4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
4
+ easy_worktree-0.1.4.dist-info/entry_points.txt,sha256=Mf6MYDS2obZLvIJJFl-BbU8-SL0QGu5UWcC0FWnqtbg,42
5
+ easy_worktree-0.1.4.dist-info/licenses/LICENSE,sha256=7MGvWFDxXPqW2nrr9D7KHT0vWFiGwIUL5SQCj0IiAPc,1061
6
+ easy_worktree-0.1.4.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- easy_worktree/__init__.py,sha256=xVb2Da8saCuveeBOGt-mtycpxxdi-C_XoA8-D6nI7rU,64706
2
- easy_worktree-0.1.3.dist-info/METADATA,sha256=kiKuXfa6l30h-ssl1pribwvZ89xOTPBYvAzLaBur8G4,6520
3
- easy_worktree-0.1.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
4
- easy_worktree-0.1.3.dist-info/entry_points.txt,sha256=Mf6MYDS2obZLvIJJFl-BbU8-SL0QGu5UWcC0FWnqtbg,42
5
- easy_worktree-0.1.3.dist-info/licenses/LICENSE,sha256=7MGvWFDxXPqW2nrr9D7KHT0vWFiGwIUL5SQCj0IiAPc,1061
6
- easy_worktree-0.1.3.dist-info/RECORD,,