The git behavior within forgit can now be customized with a dedicated
variable for each forgit command, e.g. `FORGIT_ADD_GIT_OPTS` is passed
to the `git add` call within `ga`.
Also renaming `FORGIT_STASH_PUSH_OPTS` to `FORGIT_STASH_PUSH_FZF_OPTS`
and `FORGIT_REVERT_COMMIT_OPTS` to `FORGIT_REVERT_COMMIT_FZF_OPTS`
for consistency.
When using forgit via the shell plugin, source 'git-forgit.bash'
explicitly after 'forgit.plugin.zsh' to enable tab completion for forgit
shell functions and aliases.
When using forgit as a subcommand of git, put 'git-forgit.bash' in one
of the following places and it will be loaded automatically on tab
completion of 'git forgit' or any configured git aliases of it:
- /usr/share/bash-completion/completions
- ~/.local/share/bash-completion/completions
A message can be passed via named argument (-m or --message). All other
arguments (e.g. file paths) will cause git stash push to be run directly without
invoking fzf.
The gcp (git cherry pick) command was the only command which did not
have a variable to set command-specific fzf options. Add the according
variable to source code and documentation.
* Adding support for git branch delete method in fish
* Add new doc to README
* Added options like gcb
* refactor: remove `--all` flag from gbd
* feat: sync forgit::branch::delete to bash and zsh
Co-authored-by: Wenxuan Zhang <wenxuangm@gmail.com>
* Add fixup function
Signed-off-by: Ariel Davidov <arik.davidov@gmail.com>
* refactor: more accurate editor
* refactor: support to fixup the first commit
Co-authored-by: Wenxuan Zhang <wenxuangm@gmail.com>
I added `gcb` which is used to list all the branches and checkout into
one of your choice. I believe this is a useful functionality especially
when a repo has too many branches to rememmber and lookup.
The preview shows the log graph from the selected branch.
I have removed keybinding for copy commit hash on gcb alias
Signed-off-by: b10n1k <jbonatakis@gmail.com>
Fix typo in function name and add some function descriptions
Update fish ci job
Update README
Update README for fish manual installation, revert shortlink
Merge all the files back to 1 like before
refactor: use symbol link
docs: simplify changes
* added FORGIT_BAT_OPTION to add optional options to bat
* fixed arguments
* removed curly brace in for fish
* BAT_OPTION to BAT_OPTS
* BAT_OPTION to BAT_OPTS in readme
* changed BAT_OPTS TO BAT_PAGER which is directly the command used to output
* update readme for FORGIT_IGNORE_PAGER