Skip to content

Commit

Permalink
Move implementation to standalone forgit
Browse files Browse the repository at this point in the history
Previously we had two different forgit implementations: one for zsh/bash
and one for fish. In this commit we move the bash implementation of the
forgit functions to the git-forgit script in order to have them in the
form of an executable script. This makes using forgit possible without
any shell plugin at all and furthermore removes the need to maintain a
separate implementation for the fish shell.

The simplest way of using forgit from now on is to put git-forgit
somewhere in your PATH and call it via "git forgit", without the need
for any other files.

We keep the shell plugins, though, and maintain backwards compatibility
by retaining the plugin functions as simple wrappers around the
git-forgit script, making the plugins mainly a collection of aliases
only.
  • Loading branch information
carlfriedrich committed Nov 14, 2022
1 parent 2872548 commit 4995c61
Show file tree
Hide file tree
Showing 5 changed files with 572 additions and 1,033 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
fish --version; echo
- name: Shellcheck
run: shellcheck forgit.plugin.sh
run: shellcheck forgit.plugin.sh bin/git-forgit

- name: Test bash
run: bash forgit.plugin.sh
Expand Down

0 comments on commit 4995c61

Please sign in to comment.