Skip to content

Releases: torbiak/git-autofixup

v0.004007

13 Nov 05:07
Compare
Choose a tag to compare
  • Use the --no-prefix option for calls to git diff so that git-autofixup works regardless the configured values of the relatively new diff.srcPrefix and diff.dstPrefix variables, added in Git 2.45.0, as well as the older diff.noPrefix and diff.mnemonicPrefix.
  • Stop using FATAL => 'all' with use warnings. While it can be useful to fatalize warnings during development and in tests, we don't want git-autofixup to refuse to run over a warning.
  • Check that test files use strict and use warnings.

v0.004005

24 Oct 20:52
Compare
Choose a tag to compare

Since v0.004003:

  • fix --help: pod2usage() wasn't being called correctly
  • fix some issues when running tests on Windows or with old versions of Git

v0.004003

18 Oct 20:12
Compare
Choose a tag to compare

The previous release created on GitHub was v0.003001. Significant changes since then:

  • Automatically choose an upstream revision if one isn't supplied, based on the upstream/tracking branch.
  • Support Git for Windows. (Load Pod::Usage at runtime since Git for Windows doesn't include it.)
  • Support quoted filenames in diff output. git-autofixup now works with filenames containing non-ASCII characters.
  • Speed up creation of the temporary git index by copying the existing one and subtracting recent changes.
  • Speed up git-blame by only considering commits since the given revision.
  • Improve error messages and handling. For git commands that are expected to fail, their stderr is captured, annotated with the command, and printed, to clarify the cause of errors.
  • Suppress Git warning about implicit default branch.
  • Deprecate --gitopt|-g in favor of using the GIT_CONFIG_{COUNT,KEY,VALUE} environment variables.

Many thanks to Johannes Altmanninger for his continued work maintaining and improving git-autofixup. Also, thanks to Walter Smuts for his help in choosing the default value for the upstream revision.

v0.003001

25 Nov 07:48
Compare
Choose a tag to compare

Fix bug where the index would be left out-of-sync with HEAD after autofixing unstaged hunks due to a temporary index being used. If you're running v0.003000 and hit this, git restore --staged can be used to read the new HEAD's tree into the index. Thanks to Johannes Altmanninger for finding and fixing this.

0.003000

23 Nov 06:38
Compare
Choose a tag to compare

The most important change to the interface is that now, if there are any hunks staged in the index, only those hunks will be considered for assigning to fixup commits. A temporary git index is used to make any created fixup commits, so any staged hunks that don't get assigned will remain staged. Thanks to Jonas Bernoulli and Max Odnoletkov for their help with this.

  • Add --gitopt to allow working around git settings issues
  • Add --exit-code option, which gives more granular status about what subset of hunks were assigned to commits

Bug fixes:

  • Fix diff commands so that the diff.noprefix, diff.mnemonicPrefix, and diff.external settings don't result in us getting unexpected input. Thanks to Paolo Giarrusso and Ryan Campbell for help with this.
  • Fix bug where multiple hunks assigned to the same commit would result in copies of the same fixup commit, resulting in "patch does not apply" errors. Thanks to Johannes Altmanninger for identifying and fixing this.