Skip to content

feat(stash): use haiku names for stash patch backups#655

Merged
jdx merged 1 commit intomainfrom
feat/haiku-stash-names
Jan 31, 2026
Merged

feat(stash): use haiku names for stash patch backups#655
jdx merged 1 commit intomainfrom
feat/haiku-stash-names

Conversation

@jdx
Copy link
Copy Markdown
Owner

@jdx jdx commented Jan 31, 2026

Summary

  • Replace git commit hashes with haiku-style names for stash patch backup filenames
  • Makes patches more memorable and human-friendly when browsing backup files
  • Uses xx::rand::haiku() with 1 word + 2 digits for concise names like "forest-42"

Example filename change:

  • Before: hk-20260131-143022-a1b2c3d4.patch
  • After: hk-20260131-143022-forest-42.patch

Test plan

  • Build passes
  • All unit tests pass
  • hk check --all passes
  • Manually trigger stash backup and verify filename format

🤖 Generated with Claude Code


Note

Low Risk
Low risk: only changes patch-backup filenames from commit-hash-based to haiku-based and updates the test expectation; patch contents/rotation behavior are unchanged.

Overview
Stash patch backup filenames now use a short xx::rand::haiku() token (1 word + 2 digits) instead of the stash commit short hash, making backups more human-readable.

Updates patch_backup.bats to assert the new {repo}-{timestamp}-{haiku}.patch naming pattern.

Written by Cursor Bugbot for commit 59acaa1. This will update automatically on new commits. Configure here.

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@jdx jdx force-pushed the feat/haiku-stash-names branch from 18b7b42 to 23bb1a5 Compare January 31, 2026 19:32
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is ON, but a Cloud Agent failed to start.

Comment thread src/git.rs
@jdx jdx enabled auto-merge (squash) January 31, 2026 19:36
Replace git commit hashes with haiku-style names (e.g., "silent-forest-42")
for stash patch backup filenames. This makes them more memorable and
human-friendly when you need to find a specific patch later.

Example filename change:
- Before: hk-20260131-143022-a1b2c3d4.patch
- After:  hk-20260131-143022-silent-forest-42.patch

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@jdx jdx force-pushed the feat/haiku-stash-names branch from 23bb1a5 to 59acaa1 Compare January 31, 2026 19:45
@jdx jdx merged commit 6c154b7 into main Jan 31, 2026
19 checks passed
@jdx jdx deleted the feat/haiku-stash-names branch January 31, 2026 19:58
@jdx jdx mentioned this pull request Jan 31, 2026
jdx added a commit that referenced this pull request Feb 1, 2026
### 🚀 Features

- **(init)** add auto-detection and interactive mode by
[@jdx](https://github.com/jdx) in
[#656](#656)
- **(stash)** use haiku names for stash patch backups by
[@jdx](https://github.com/jdx) in
[#655](#655)
- add git worktree support by [@jdx](https://github.com/jdx) in
[#651](#651)
- add "did you mean?" suggestions for typos by
[@jdx](https://github.com/jdx) in
[#654](#654)

### 🚜 Refactor

- use xx utilities and drop unused dependencies by
[@jdx](https://github.com/jdx) in
[#653](#653)

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Low risk release bookkeeping: mainly version string/package URL
updates and regenerated CLI docs, with no substantive runtime logic
changes.
> 
> **Overview**
> Releases **v1.35.0** by updating crate versions
(`Cargo.toml`/`Cargo.lock`) and adding the `1.35.0` entry to
`CHANGELOG.md`.
> 
> Regenerates documentation and examples to reference `v1.35.0` package
URLs and CLI version metadata, and updates `hk init` docs/usage to
include the new `--interactive` flag.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
46c426e. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

Co-authored-by: mise-en-dev <123107610+mise-en-dev@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant