* 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>
Use LC_ALL=C to avoid potential ordering issues related to the user's
locale configuration. Additionally, add the --stable option to ensure
that just the range defined with --key is used.
Arguments to fzf are passed via the FZF_DEFAULT_OPTS environment
variable, which can be overridden by a dedicated FORGIT_<cmd>_FZF_OPTS
variable for each command separately. The '--preview' argument, however,
was excluded from this mechanism and hard-coded to the fzf call, so that
there was no chance overriding it.
This patch moves the passing of this argument to the FZF_DEFAULT_OPTS
variable for all commands, so that it can be overridden as well.
Fixes#185
Show an arrow instead of just blank spaces when a file has been moved
or renamed:
[R100] foo.txt -> bar.txt
The arrow is added as a replacement for the second tabspace of the "git
diff --name-status" command. For the preview command it is replaced by a
single space again.
For "git diff" to display a move/rename action correctly, it has to be
passed both the old and the new file name. Change the gd preview command
accordingly: instead of constructing a path out of the repo directory
and the file name (which would not work with multiple file names), cd to
the repo directory and use the file names as direct arguments to "git
diff" instead.
Change the regex used to parse the "git diff --name-status" output so
that it supports the "Rxxx" syntax for moved/renamed files.
Use tabs instead of hardcoded number of spaces along with "expand" to
have file names horizontally aligned.
Fixeswfxr/forgit#188
* first attempt at fish gfu
* small tweak for test
* First commit
* Second commit
* fixup! First commit
* fixup! First commit
* removing test files
* Fixing typo after testing
* fixup! First commit
* Fix bug in original implementation
* fixup! First commit
* removing test file
* Commit 1 test
* Commit 2 test
* Finished fish implementation
* 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