Releases: wfxr/forgit
Releases · wfxr/forgit
25.11.0
Changes since 25.09.0:
- Refactor: Move global code into a main function (#464)
This is a prequisite for being able to source the script in order to
implement unit tests for individual functions. - Chore: Do not execute any code when forgit is sourced (#464)
In order to run unit tests for individual functions we have to be able
to source the script without triggering the main execution flow. - Refactor: extract function to remove status from diff line (#464)
25.10.0
Changes since 25.09.0:
- Refactor: Move global code into a main function (#464)
This is a prequisite for being able to source the script in order to
implement unit tests for individual functions. - Chore: Do not execute any code when forgit is sourced (#464)
In order to run unit tests for individual functions we have to be able
to source the script without triggering the main execution flow. - Refactor: extract function to remove status from diff line (#464)
25.09.0
Changes since 25.08.0:
- Chore(deps): Bump actions/download-artifact from 4 to 5 (#462)
Bumps actions/download-artifact from 4 to 5.
updated-dependencies:- dependency-name: actions/download-artifact
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- dependency-name: actions/download-artifact
25.08.0
Changes since 25.07.0:
- Feat: allow passing arguments to git add (#452)
- Feate: allow passing arguments to git checkout file (#451)
- Feat: Use forgit show in stash_show enter (#450)
Instead of using `git stash show` in the `enter` binding of the
`stash_show` command, use `forgit show`. This allows forgit to show the
stash in the same interactive way it shows other commits (e.g. on
`forgit log`), with the same context and formatting options. - Refactor: Remove unnecessary xargs in git show commands
- Fix: remove explicit -u flag in git status command in _forgit_add (#455)
git status includes untracked files by default, so passing the flag
explicitly is not necessary. This allows overriding forgits behavior
by setting showUntrackedFiles = no in the .gitconfig. - Fix: bash completions for reword
- Feat: use git log completions for fixup commands
- Fix: early out with non-file arguments in checkout file (#456)
- Fix: files in untracked directories are not shown in git add
Pass the value of git config status.showUntrackedFiles to the git status
command we run in _forgit_add, defaulting to 'all' when unset.
Additionally correctly handle directories in _forgit_add_preview for the
case when status.showUntracked is explicitly set to 'normal'. - Fix: use github/gitignore for ignore files (#461)
The repo we originally used has gone away
25.07.0
Changes since 25.06.0:
- Refactor: do not disable shellcheck 2230
It is optional with ubuntu 24.04 and disabled by default. - Docs: improve completion docs and move them to the top
- Fix: allow filtering by files in fixup, squash and reword (#448)
This reverts commit 3f694f6 and adds the same filtering option to reword.
25.06.0
Changes since 25.05.0:
- Fix: use FORGIT_SHOW_FZF_OPTS in _forgit_show (#437)
- Fix: prefix all commands in forgit.plugin.zsh (#439)
* Fix: prefix all commands in forgit.plugin.zsh
This prevents the wrong commands getting executed in case a user added a
shell alias with the same name.
* Fix: prefix built-ins - Feature: add interactive squash selector (#440)
- Refactor: Do not pass files to fixup and squash (#442)
Similar to 09f17c9, this removes the option to pass files to the fixup
and squash functions. There is no need to do so. - Feature: add interactive reword selector (#443)
25.05.0
25.03.0
Changes since 25.02.0:
- Refactor: Remove _forgit_ignore_clean (#421)
- Refactor: Make functions interacting with repositories reusable
- Feature: Add interactive git attributes generator
- Allow passing arguments to git rebase (#422)
If non-option arguments are passed to `git forgit rebase`, pass them
through directly to `git rebase`, without launching the interactive
selector, just like we do for other forgit commands.
Along with this, remove possibility to pass files to rebase, as there is
no need for that. I assume this was a copy-paste error when the
rebase function was introduced in the first place. - Update README.md (#425)
Adding sheldon.cli configuration for zsh as an example.
25.02.0
Changes since 25.01.0:
- Feature: add forgit show command (#417)
Introducingshowas a new subcommand offorgit, an interactive
version ofgit show. The configured default alias isgso.
Alt-T can be used to toggle between showing the diff and the commit
message in the fzf preview window.
The new command is used instead offorgit diffwhen pressing enter
inforgit log. This fixes the display of diffs for merge commits.
Note: we have a requirement for thefzfversion now. The minimum
requiredfzfversion is 0.49.0. If the installed version is lower,
forgit will exit with an error message.
Fixes #416.
25.01.0
Changes since 24.12.0:
- chore: rename default branch (#410)
- fix: fix edit file key binding (alt-e) in diff and add (#415)
The key binding for editing a file in diff and add was not working
properly on recent versions of fzf. As its documentation suggests, we
should replace `execute-silent` with `execute` since we need to switch
to a new screen and handle both input and output.fzf switches to the alternate screen when executing a command.
However, if the command is expected to complete quickly, and you are
not interested in its output, you might want to use execute-silent
instead, which silently executes the command without the switching.