Skip to content

23.11.0

Compare
Choose a tag to compare
@github-actions github-actions released this 01 Nov 00:17
· 53 commits to main since this release
48e91da

Changes since 23.09.0:

  • checkout_branch: support "-" argument (#322)
    git natively supports `-` as an argument to `git switch` and `git
    checkout`. It is shorthand for `@{-1}`, which is a way to refer to the
    last branch you were on.
    forgit used to interpret `-` as a branch name, detect that it does not
    exist yet and create a new one with this name, which does not work.
    Add a check whether `-` is passed on the command line and do not create
    a new branch in this case
  • Fixed opening files in the editor when a path contains spaces or a file was renamed (#323)
    Fixed two issues that occurred when trying to open files in the editor (ctrl+e). In both cases the wrong files were opened.
    1. Files that have spaces in their path. I fixed this by properly escaping the variables used in _forgit_diff() and forgit_add().
    2. When a tracked file was renamed and added, trying to open it in the editor from the diff view, would open a file with a name that consists of both, the old and the new name. I added a separate sed command that can handle this special case.