Zsh completion learns stg commit --allow-empty
[stgit.git] / CHANGELOG.md
blobf66271f047734f210aa6318a83fed374719d0fa3
1 # Changelog
3 ## [Unreleased]
5 ### Removed
6 - Python 3.5, which became EOL 2020-09-13, support is deprecated and
7   will be removed in a future StGit release
8 - Python 3.6, which will be EOL 2021-12-23, support is deprecated and
9   will be removed in a future StGit release
11 ### Added
12 - The new `stg import --message-id` option causes the Message-ID from
13   imported emails to be included as the Message-Id trailer in the patch
14   description (#42)
15 - The new 'stgit.import.message-id' config option also enables the
16   Message-Id trailer (#42)
18 ### Changed
19 - `stg import` no longer creates "Message-Id" trailer by default when
20   importing patches from email (#42)
21 - StGit works with Python 3.10
22 - `stg version` prints a more abbreviated Python version
24 ### Fixed
25 - Repair stack upgrade with `stg branch --list` (#155)
26 - Repair crash in `stg squash` with out of order patches and no name
27   specified (#157)
28 - Zsh completions learn `stg float --noapply` option
31 ## [1.3] 2021-09-26
33 ### Removed
35 ### Added
37 ### Changed
39 ### Fixed
40 - Repair crash regression when using `stgit.autosign`
42 ## [1.2] 2021-09-26
44 ### Removed
46 ### Deprecated
47 - Python 3.5, which became EOL 2020-09-13, support is deprecated and
48   will be removed in a future StGit release
49 - Python 3.6, which will be EOL 2021-12-23, support is deprecated and
50   will be removed in a future StGit release
52 ### Added
53 - `stg rebase ` learns `--interactive`; easily re-order, edit, squash,
54   fixup, or delete patches via your editor
55 - `stg rebase` learns `--autostash`; stash changes before the rebase and
56   apply them after. Also configurable with the `stgit.autostash`
57   configuration option
58 - `stg edit` can now rename patches (#119)
59 - `stg edit` gains helpful instructions (#138)
60 - `stg new` learns `--verbose`, which includes a diff in the editor
61   window (similar to `git commit --verbose`). This behavior is also
62   configurable with the `stgit.new.verbose` configuration option
63 - `stg push` and `stg float` learn `--noapply` option; allows patches
64   to be reordered without updating worktree and deferring merge conflict
65   resolution (#144)
66 - `stg edit`, `stg refresh`, and `stg new` learn the `--sign-by`,
67   `--ack-by`, and `--review-by` options which allow those respective
68   trailers' values to be specified by the user on the command line (#92)
70 ### Changed
71 - Stack metadata version 5; stack metadata is moved from
72   `refs/heads/<branch>.stgit` to `refs/stacks/<branch>` and the stack
73   metadata file now uses a JSON format instead of the prior custom
74   format; the stack metadata will be upgraded to v5 on first use of
75   this version of StGit; like all stack metadata upgrades, **this is a
76   one-way auto-upgrade for existing stacks** (#65)
77 - Use setuptools instead of distutils for packaging
78 - No git or python version checks in setup.py
79 - Use different dynamic versioning system
80 - Install `stg` executable as console_script entry point
81 - More sophisticated search for bash.exe on Windows when running hooks
82 - The editor window text for `stg squash` has been modified to mirror
83   git's behavior -- the squash edit message now includes all commits
84   (#71)
85 - Binary diffs are no longer shown when with `stg edit -d`
86 - Multiple trailers can now be added at once; this is now allowed, for
87   example: `stg edit --sign --review --ack`
88 - Update zsh completion for `stg rebase` to show local and remote heads
89   (#102)
90 - Zsh completions for commands with patch arguments now comprehend the
91   effect of `-b/--branch` and `-B/--ref-branch`
92 - Zsh completions now guard patch names--one less TAB press to complete
93   patch names in certain contexts
94 - `stg import` now extracts the `Message-ID` email header into the patch
95   message (#42)
97 ### Fixed
98 - Repair crash when attempting to export empty patch (#112)
99 - Exact command name matches are unambiguous (#110)
100 - Exiting with an empty `stg edit` editor will now abort the edit;
101   previously it would delete your commit message. (#138)
102 - Repair completions when stg.series.description is enabled in config
103 - Workaround child process reaping race on Windows (#78)
104 - Repair crash with `stg float --series` when bad patch name in series
105 - Repair zsh completion for `stg float` to accept multiple patch names
106 - Repair zsh completion for changed files, affecting `stg refresh` and
107   `stg diff`
109 ### Internal
110 - Add link to coverage.io project to CONTRIBUTING.md
111 - Set smart `exclude_lines` default for 'coverage'
112 - Expanded test suite for `stg edit`
113 - Add pkgtest.py script to help test StGit packaging
114 - Cleanup .gitignore files
117 ## [1.1] 2021-04-30
119 ### Removed
121 ### Added
122 - StGit GPG-signs patches when `commit.gpgsign` is set (#12)
123 - Support `core.hooksPath` in git config
124 - Add `-C` option for `stg import` and `stg fold` (#18)
126 ### Changed
127 - Allow importing mail and series from urls (#94)
128 - `stg refresh --edit` may also use `--diff` and `--diff-opts` (#98)
129 - `stg goto` allows sha1 of a patch instead of patch name (#93)
131 ### Fixed
132 - Repair hang in `stg pull -m`, `stg goto -m`, and `stg push -m`
133 - Repair `stg mail` to show diffstat of whole series (#104)
134 - Repair MANIFEST.in to include AUTHORS.md and README.md files
137 ## [1.0] 2021-02-07
139 ### Removed
140 - Drop support for Python < 3.5
141 - Remove previously deprecated `stg publish` command
142 - Removed contrib scripts: `stg-swallow`, `stg-fold-files-from`,
143   `stg-dispatch`, `stg-whatchanged`, and `stg-show-old`
145 ### Added
146 - The pre-commit hook is now run for `stg refresh`
147 - New `--spill` option for `stg refresh`
148 - Add stgit.series.description config option (#88)
149 - Official support for Python versions up to 3.9
151 ### Changed
152 - Stack metadata format 4. All metadata now kept in Git objects; no more
153   stack state files in .git/patches. **A one-way auto-upgrade to format
154   version 4 will occur when StGit commands are run on an existing StGit
155   branch.**
156 - Use `python3` in shebangs instead of `python`
157 - `contrib/stgbashprompt.sh` is no longer executable
158 - Internal docstrings now use reStructuredText instead of Epytext
160 ### Fixed
161 - Importing large patches is much, much faster (#66)
162 - Other performance improvements when dealing with large patches
163 - Repair diffstat when outside work tree root (#62)
164 - Use encoded (string) environment variables on Windows (#79)
165 - Fix `stg pull` when no upstream is configured (#83)
166 - Fix `refresh` crash with path limiting and files added to index (#85)
167 - Repair `new` with patchdescr.template crash (#87)
168 - Repair `log` from worktree subdir with patches specified
169 - Repair `import` allowing/generating duplicate patch names (#64)
170 - Repair `mail --auto` to strip comments after addrs (#91)
173 ## [0.23] 2020-06-12
175 ### Removed
176 - Drop support for Python 3.3; Python 2 (2.6 and 2.7) remain
177   deprecated, but supported for one last release
178 - Tutorial is removed; it now exists as part of the website
180 ### Deprecated
181 - Python 2.x support is deprecated and will be removed in a future
182   release
184 ### Added
185 - Support html5 output of docs from asciidoc
186 - Add `--expose` option for `stg pick` to allow picked commit message to
187   be customized
189 ### Changed
190 - Limit mail diffstat to 72 columns
191 - Added pyproject.toml file for black configuration
192 - Minimum Git version is 2.2.0
193 - Quote stg and subcommand in man page synopsis
194 - Replaced RELEASENOTES with this CHANGELOG.md
195 - Replaces Documentation/SubmittingPatches with CONTRIBUTING.md
197 ### Fixed
198 - Repair MANIFEST.in and generated source dist
199 - Repair importing mail with ": " (colon space) in subject
200 - Fix mail cover letter shortlog
201 - Fix mail cover letter diffstat
202 - `stg series` now only outputs colors when `isatty()`
203 - Repair mail SSL check (#57)
204 - Repair `stg mail` with both `-a` and `-e` options (#58)
205 - Remove empty short-opt for `--no-submodules` of `stg refresh`
206 - Repair build.py for Python 2 with explicit `flush()`
207 - `stgit.refreshsubmodules` added to sample gitconfig
209 ### Internal
210 - Update docs build system from upstream Git docs
211 - Use coverage contexts to map commands to covered lines
212 - Improve mail tests
213 - Use GitHub Actions instead of TravisCI
214 - Format StGit source using black formatter
216 ## [0.22] - 2020-03-02
218 ### Removed
219 - Remove debian packaging; downstream Debian uses its own anyway
221 ### Deprecated
222 - Python 2.x support is deprecated and will be removed in the next StGit
223   release
224 - `stg publish` is deprecated and will be removed in the next StGit
225   release
227 ### Added
228 - `stg import` has new --keep-cr option, like `git mailsplit`
230 ### Changed
231 - `stg new` now includes patch name in log message
232 - `stg branch --rename` can now rename the current branch
233 - `stg branch --create` now works even if the workspace is dirty,
234   consistent with `git checkout`
235 - `stg branch --description` now works on both regular and stgit
236   branches
237 - `stg edit --diff` now implies `--edit`
238 - `stg refresh` and `stg edit` now reset the committer information,
239   consistent with `stg push`
240 - git notes are now preserved when patches are modified
241 - Tutorial improvements
242 - Many additional tests and test improvements
243 - All stgit commands now use "new" git library infrastructure
245 ### Fixed
246 - `stg branch --create` inherits remote correctly from parent commitish
247 - Patch names are checked earlier to avoid inconsistent stack states
248 - Improved commit data parsing and handling of non-UTF8 encodings
249 - Repair git error messages when checking stgit version from outside a
250   git repo
253 ## [0.21] - 2019-10-28
255 ### Changed
256 - Faster handling of large patches (#44)
258 ### Fixed
259 - Build reproducibility repairs (Thanks reproducible-builds.org team!)
260 - Python can now be run with optimizations (`python -O`)
261 - `stg log` now prints trailing newline
262 - Improved command line option parsing for `stg log`
265 ## [0.20] - 2019-10-04
267 ### Added
268 - `stg patches -d` can now output colored diffs.
269 - `stg publish --overwrite` allows branch to be overwritten instead of
270   creating new commits.
271 - `stg log --clear` deletes the stack's log history. Use with caution.
272 - Fish shell completions for stg.
273 - Zsh completions for stg.
274 - `stg mail --domain` option overrides the host's domain in the message
275   ID.
277 ### Changed
278 - Branch protection metadata now captured in config instead of
279   .git/patches/<branch>protect file. This updates stgit's metadata
280   format from v2 to v3.
281 - `stg diff` no longer shows binary diffs by default. Use `-O--binary`
282   or add `--binary` to stgit.diff-opts in config.
283 - Diagnostic output is now routed to stderr instead of stdout.
284   Diagnostic output is also now sent to stderr unconditionally, i.e. no
285   more isatty() test (#35).
286 - Converted to "new" lib infrastructure: `show`, `patches`, `diff`,
287   `pick`, `pull`, `rebase`, and `fold`.
289 ### Fixed
290 - `stg show` detects conflicting --applied and --unapplied options.
291 - `stg show --stat` now shows commit headers.
292 - `stg patches --diff` now shows proper diff instead of `b'...'` repr of
293   diff.
294 - `stg diff --range` detects some invalid values (e.g. `-r ..`).
295 - Date parsing is now more portable, only use platform specific `date`
296   as last parsing option. Affects, e.g., `stg refresh --authdate`.
297 - Repaired seach path for templates to avoid looking in Python
298   site-packages directory.
299 - Ensure stdout and stderr are flushed. Rarely affected `stg diff`.
300 - `stg repair` will now fail if extra command line arguments are
301   provided.
302 - Bash completions are now generated in a reproducible manner.
303 - `stg edit --diff` on an empty patch no longer crashes.
304 - `stg pick` no longer fails when picked commit has empty message (#39).
305 - `stg rebase` no longer crashes when there are conflicts (#34).
306 - `stg pick` no longer crashes if --name is not provided when picking a
307   regular commit object.
308 - Improved test coverage for: branch, diff, pick, sync,
309 - New tests for: files, patches, fold, series
310 - Portable use of iconv, sort, and sed in tests.
311 - Linting using flake8 and isort.
312 - All Python code now conforms to PEP-8.
313 - Updated test infrastructure from git 2.20.
314 - Parallel tests with coverage (`make -j4 coverage`) now works.
315 - Documentation build is not included in code coverage.
316 - Repaired log end messages when using `STGIT_SUBPROCESS_LOG=debug`.
317 - Renamed "dunder" instance attributes to improve debugging.
318 - Fail faster when patch name has slash ('/') (#24).
321 ## [0.19] 2018-11-05
323 ### Changed
324 - Python 3 support. StGit supports Python 2.6, 2.7, 3.3, 3.4, 3.5, 3.6,
325   and 3.7. PyPy interpreters are also supported.
326 - Submodules are now ignored when checking if working tree is clean.
327   Submodules are also not included by default when refreshing a patch.
328 - Config booleans are now parsed similarly to git-config.
329 - `contrib/stgit.el` is now licenced with GPLv2.
330 - Add continuous integration (travis-ci) and code coverage (coveralls)
331   support.
332 - Many new test cases were added.
334 ### Fixed
335 - Repair handling of emails with utf-8 bodies containing latin-1
336   characters. Also correctly decode email headers containing quoted
337   encoded words.
338 - StGit's version is now correct/available in the release archive.
341 ## [0.18] 2017-08-14
343 ### Added
344 - `commit-msg` hook support for easier integration with Gerrit, allowing
345   a Change-Id line to be inserted in the commit message
346 - `stg mail` improvements for 'Suggested-by:' tag and auto generation of
347   Cc for the cover letter based on all tags in the series
348 - `stg mail` bash completion for the --to, --cc and --bcc options based
349   on the content of the [mail "alias"] section of Git configuration
350 - `stg edit --review` option to add a 'Reviewed-by:' tag
351 - `stg pop --spill` functionality to allow popping a patch from the
352   stack while keeping its modification in the tree
354 ### Changed
355 - Project page details updated (gna.org has been shut down)
357 ### Fixed
358 - Various fixes and test coverage improvements
361 ## [0.17.1] 2013-09-30
363 ### Changed
364 - Test suite improvements.
365 - Print tracebacks to stderr.
366 - Run test suite in parallel.
368 ### Fixed
369 - Fix dirty index errors when resolving conflicts.
370 - Fix --authdate date parsing.
373 ## [0.17] 2013-06-27
375 ### Added
376 - `stg delete --top` option for deleting the top patch.
377 - `stg branch --merge` option for merging the work tree changes into the
378   other branch.
379 - Support for sending patches both as attachment and inline.
381 ### Changed
382 - `stg mail` no longer filters explicitly added `--cc` sender address.
383 - `stg refresh` warns when index is dirty.
385 ### Fixed
386 - Fix for parsing the commit header correctly.
387 - Several `stgit.el` (Emacs mode) improvements.
388 - Fix `stg status --reset` error messages.
389 - HTML documentation fix.
390 - Email template fixes.
393 ## [0.16] 2012-01-09
395 ### Added
396 - UI adjustments to better match the Git commands.
397   - `stg status` is an alias for `git status`.
398   - `stg reset --hard` behaves similarly to the corresponding git
399     command and option.
400 - `stg branch --cleanup` option to remove the StGit metadata for a
401   given branch.
402 - `stg mail` can use `git send-email` directly.
403 - Vim syntax highlighting for StGit commit messages.
405 ### Fixed
406 - Several improvements to the Emacs mode (stgit.el).
407 - Many bug-fixes.
410 ## [0.15] 2009-10-24
412 ### Removed
413 - The commands "stg add", "stg rm", "stg cp", and "stg resolved" were
414   removed, since there are corresponding Git equivalents.
416 ### Added
417 - New core infrastructure for repository operations, including:
418   - Infinite undo/redo operations and corresponding commands.
419   - Automatic rollback of changes following a failed operation (using
420     transactions)---this ensures that StGit commands either succeed or
421     do nothing. Previously, every commands had its own ad hoc
422     implementation of this.
423 - Some commands were added, including
424   - `stg squash`, for combining two or more patches into one.
425   - `stg publish`, for maintaining merge-friendly branches (which are
426     not rebased).
427   - `stg prev/next` for printing the name of the previous or next patch
428     in the series.
429 - The `stg import` and `stg fold` commands support the `-p N` option for
430   stripping leading slashes from diff paths.
431 - The `stg import` and `stg fold` commands support the `--reject` option
432   for leaving rejected hunks in corresponding `*.rej` files.
433 - New patch identification syntax: `<branch>:<patch>` (see documentation
434   for the "stg id" command).
435 - Autosigning of imported patches when `sign.autosign` configuration
436   option is set.
437 - A powerful Emacs mode for StGit was added to the "contrib" directory.
438   It displays the patch stack in an Emacs buffer, and can handle all
439   common StGit tasks.
440 - Man pages and an improved tutorial.
442 ### Changed
443 - Improved bash tab-completion, automatically generated from the stg
444   command definitions.
447 ## [0.14.3] 2008-06-08
448 ## [0.14.2] 2008-13-24
449 ## [0.14.1] 2007-12-11
450 ## [0.14] 2007-12-09
451 ## [0.13] 2007-07-26
452 ## [0.12] 2007-02-06
453 ## [0.11] 2006-10-21
454 ## [0.10] 2006-06-11
455 ## [0.9] 2006-04-07
456 ## [0.8] 2005-12-23
457 ## [0.7] 2005-10-02
458 ## [0.6] 2005-08-21
459 ## [0.5] 2005-07-30
460 ## [0.4] 2005-07-10