Releases: abhinav/git-spice
Releases · abhinav/git-spice
v0.4.0
This release adds support for configuring the behavior of git-spice
with use of the git config
command.
See https://abhinav.github.io/git-spice/cli/config/ for details.
Added
- cli: Support custom shorthands with the
spice.shorthand.*
configuration option. - submit: Support opting out or reducing navigation comment frequency with the --nav-comment flag.
The accompanyingspice.submit.navigationComment
configuration option may also be used instead. - log: Add a
spice.log.all
configuration option to default to--all
forgs ls
andgs ll
. - GitHub Enterprise: Allow setting the GitHub URL and API URL with the
spice.forge.github.url
andspice.forge.github.apiUrl
configuration options.
Changed
- GitHub Enterprise:
GITHUB_API_URL
is now optional. If not set, we'll guess it from the GitHub URL.
v0.3.1
Fixed
- branch submit: Fail if Git editor is explicitly unset and there's no fallback.
- branch create: Ensure auto-generated branch names are unique.
- branch create: Don't lose data if the branch cannot be created for any reason.
- Fix messages instructing use of 'gs branch restack' to use correct arguments.
v0.3.0
Added
- Authentication: If a secure storage is not available, fall back to plain text, but warn the user about it.
- gs branch submit: Add short form
-c
for the--fill
flag.
Removed
- branch delete: Drop short form
-f
for the--force
flag.
Fixed
- commit split: Fix bug where canceling the split would fail to revert to original state.
v0.2.0
Added
- Publish pre-built Linux ARM binaries.
- {branch, stack, upstack, downstack} submit: Add --force flag. This acts like 'git push --force'.
Changed
- cli: Show --help when run without arguments
Fixed
- branch submit: Fix incorrect warning about current branch not being tracked when --no-publish is used.
- branch submit: Fix bug where updating an open PR would overwrite changes pushed to it by others. Use --force to overwrite these changes.
- branch submit: Use the same editor used by Git for commit messages to author the PR body.
- branch submit: Allow Git editor to be a shell command, not just an executable name.
- {downstack, stack} edit: Use Git editor to edit list of branches.
v0.1.0
Announcing git-spice, a tool to stack Git branches with ease.
This is the first public release of the tool after being in a private beta for several months.
Added
- commit amend: Add -a/--all flag to stage changes to tracked files before committing.
- {branch, downstack, upstack, stack} submit: Post a comment to PRs visualizing the stack and the PR's position in it.
Changed
- all: Adjust terminology in messaging to refer to Change Requests consistently.
Removed
- As promised in release notes for v0.1.0-beta5, drop support for old storage format for branch metadata.
Fixed
- branch split: Fix panicking prompt when there are only two commits in the branch.
- branch submit: Fix --draft/--no-draft API failures for existing PRs.
- branch submit: Fix inability to submit if a directory name in root matches the branch name.
- branch delete: Focus on current branch by default even if it's not tracked.
- {upstack, downstack, stack} submit: Drop a few redundant calls to GitHub API.
v0.1.0-rc2
Added
- Add 'upstack submit' to submit a branch and those above it. Best used after restacking the middle of an already-submitted stack.
- Add 'commit split' command to split the topmost commit into two commits.
- {stack, upstack, downstack} submit: Add --draft/--no-draft flags for changing the reviewability status of a PR.
- {stack, upstack, downstack} submit: Add --no-publish to push stack branches without posting PRs for them.
- branch create: Add -a/--all flag that behaves like 'git add -a'
- auth login: Add support back for logging in with GitHub CLI.
Changed
- branch submit: If a submission fails, recover previously-filled metadata automatically in subsequent submit attempts.
- Branch prompt now presents a tree-style view where possible. This includes 'branch checkout', 'branch onto', 'up', and more.
Fixed
- branch submit: Improve error message when trying to submit trunk.
v0.1.0-rc1
Added
- Add 'gs auth login', 'gs auth logout', and 'gs auth status' commands to log in, log out, and check the authentication status. Supports OAuth, GitHub App, and Personal Access Token. Authentication tokens are stored in the system keychain.
Removed
- (Breaking) git-spice no longer shells out to the GitHub CLI for authentication. Use the new 'gs auth' command to log in.
v0.1.0-beta6
Added
- Add 'stack edit' command to edit an entire stack, similarly to 'downstack edit'.
- Add 'branch split' command to split an existing branch with multiple commits into one or more new branches.
Changed
- upstack restack: Rename --no-base to --skip-start.
- upstack restack: Target branch name is now a --branch flag.
- downstack submit: Optional positional branch argument is now --branch flag.
- downstack edit: Optional positional branch argument is now a --branch flag.
- branch fold: The optional branch name argument is now a flag.
- branch restack: The optional positional argument is now a --branch flag.
- branch submit: Optional branch positional argument is now the --branch flag.
Fixed
- branch submit: If there's a PR template but no commit body, don't add extraneous newlines at the start of the default PR description.
- upstack restack: Fix --no-base ignored when there's only one branch.
- commit {create, amend}: Fix unintended restacking of current branch when there's only one branch in the stack.
- branch onto: Move the upstack of the target branch before the brach itself. This makes the operation better able to recover from conflicts.
v0.1.0-beta5
Added
- branch create: Add -b/--base flag to specify a different base branch for the new branch.
- branch submit: Add --no-publish to push or update a branch without publishing a pull request.
- upstack restack: Accept name of base branch as an argument. Defaults to current branch.
- upstack restack: Add --no-base flag to skip restacking the starting base branch.
- {up, down, top, bottom}: Add -n/--dry-run flag. This will print the target branch name without checking it out. Output may be piped to other commands.
- branch submit: If a repository has multiple templates, allow picking between them in the submission prompt.
- Add 'gs log long' (alias 'gs ll') to list branches and their commits.
Changed
- shell completion: Make shell argument optional and guess shell based on environment.
- Prompts are now posted to stderr instead of stdout.
- branch delete: Prompt to force delete unmerged branches instead of just letting Git fail.
- Format for how PR information is stored was changed. The format will be upgraded automatically when you run
gs branch submit
with this release. Support for the old format will be dropped in the release after this one. - log short: Make branch labels more visually distinct with an icon next to them.
Fixed
- Fix name for Linux AMD64 release tarball to match
uname -m
for easier fetching from scripts. - commit {create, amend}: Don't restack the current branch on commit. Only the upstacks will be restacked.
- shell completion: Better handling of quoted strings while predicting.
v0.1.0-beta4
Added
- repo sync: Detect PRs for local branches created and merged externally.
- Add 'log short' command (alias 'ls') to print the current stack. Use with
--all
to print all tracked branches.
Changed
- (Breaking) Rename
completion
toshell completion
. Other shell helpers are expected in the future. - branch submit: Delay fetching PR templates until necessary. This should result in an apparent speed-up in the submission prompt.
- branch submit: Make fewer requests to GitHub for PR templates by caching them locally.
Fixed
- branch delete: When prompting for branch selection, select current branch by default.
- {branch, upstack} onto: When prompting for a new base, default to current base.
- Fix bug in state management attempting to write files with empty names to state.
- shell completion: Command aliases can now be completed.