Commit graph

363 commits

Author SHA1 Message Date
Chris Apple fa9fd62439
Merge pull request #197 from petertriho/master
fix: `forgit::rebase` not working in fish
2022-04-10 07:23:36 -07:00
Peter Tri Ho 33ad0ea71e fix: forgit::rebase not working in fish 2022-04-10 15:31:00 +10:00
Wenxuan eed197948c
Merge pull request #193 from sandr01d/grc
Fixed: grc fails when commit is preceded by anything else than '* '
2022-04-02 09:33:10 +08:00
sandroid 6a9c0e3f82
Refactored grc 2022-04-01 23:41:00 +02:00
sandroid e4874bf763
Replaced eval in grc 2022-04-01 22:01:37 +02:00
sandroid 1f90f50d26
Fixed: grc fails when commit is preceded by anything else than '* ' 2022-03-27 19:18:32 +02:00
Chris Apple eddeea869d
Added rename support for fish with gd --staged
Added rename support for fish with gd --staged
2022-03-22 10:14:27 -07:00
Christopher Apple 701e3f3a4a Added rename support for fish 2022-03-22 09:06:52 -07:00
Chris Apple d0b3cfca33
Catching fish up on a bunch of new features
Checked in a bunch of things that were only for bash #189 #186 #185 #190 #188
2022-03-21 09:57:40 -07:00
Christopher Apple b61df0c206 Added support for FORGIT_GLO_FORMAT 2022-03-21 09:49:00 -07:00
Christopher Apple c096f2bbda Added multi diff support for gd 2022-03-21 09:36:11 -07:00
Christopher Apple b98722008c Revert "Added multi diff support for gd"
This reverts commit 5b31faf7e2.
2022-03-21 09:35:51 -07:00
Christopher Apple 5b31faf7e2 Added multi diff support for gd 2022-03-21 09:33:55 -07:00
Christopher Apple f8514beb26 Adding grc 2022-03-21 08:31:40 -07:00
Christopher Apple 2fc1436d1b Revert "Bad test commit to be reverted"
This reverts commit e89f9f195e.
2022-03-21 08:30:59 -07:00
Christopher Apple 687710f2cd Revert "Revert "Bad test commit to be reverted""
This reverts commit bdb04ecb84.
2022-03-21 08:30:57 -07:00
Christopher Apple 63fdf99956 Revert "Revert "Revert "Bad test commit to be reverted"""
This reverts commit 37731d4da3.
2022-03-21 08:30:53 -07:00
Christopher Apple fc9d031608 Revert "Revert "Revert "Revert "Bad test commit to be reverted""""
This reverts commit 0cde6852bc.
2022-03-21 08:30:50 -07:00
Christopher Apple 0cde6852bc Revert "Revert "Revert "Bad test commit to be reverted"""
This reverts commit 37731d4da3.
2022-03-21 08:29:44 -07:00
Christopher Apple 37731d4da3 Revert "Revert "Bad test commit to be reverted""
This reverts commit bdb04ecb84.
2022-03-21 08:22:15 -07:00
Christopher Apple bdb04ecb84 Revert "Bad test commit to be reverted"
This reverts commit e89f9f195e.
2022-03-21 08:09:39 -07:00
Christopher Apple e89f9f195e Bad test commit to be reverted 2022-03-21 08:05:39 -07:00
Christopher Apple 4027bee420 Apparently working preview update 2022-03-21 07:52:58 -07:00
Wenxuan 495ac3cba6
Merge pull request #186 from carlfriedrich/make-preview-argument-overridable
Make fzf '--preview' argument overridable in environment
2022-03-21 19:15:50 +08:00
carlfriedrich 76663aaf19 Make fzf '--preview' argument overridable in environment
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
2022-03-21 10:04:12 +01:00
Wenxuan c9185dda1a
Merge pull request #190 from sandr01d/grc
Implemented git revert commit
2022-03-21 08:43:56 +08:00
Wenxuan fca195a925
Merge pull request #189 from carlfriedrich/improve-forgit-diff
Improve forgit diff
2022-03-21 08:29:04 +08:00
Wenxuan 2d7e6103fe
Merge pull request #183 from wallace11/master
Add missing support for `FORGIT_GLO_FORMAT`
2022-03-21 08:23:46 +08:00
sandroid 45cab4df9b
Added grc 2022-03-19 20:11:58 +01:00
carlfriedrich 2e5f06e789 gd: improve visualization for move/rename
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.
2022-03-11 19:18:13 +01:00
carlfriedrich 5093c18532 gd: support git move/rename
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.

Fixes wfxr/forgit#188
2022-03-11 18:37:30 +01:00
carlfriedrich 7d43115881 gd: support passing two revisions
Fixes wfxr/forgit#187
2022-03-10 11:35:54 +01:00
wallace 2aaa8fb6af Add missing support for FORGIT_GLO_FORMAT 2022-02-23 20:58:59 +02:00
Wenxuan e0d3552d45
Merge pull request #182 from sandr01d/gct
Implemented git checkout tag
2022-02-15 10:27:33 +08:00
sandroid ce19cc80ec
Added gct 2022-02-12 22:37:39 +01:00
Chris Apple 7b26cd46ac
Merge pull request #173 from cjappl/FixGaProblem
Reverted change b1c4c11959 to fix fish ga
2021-12-05 15:20:53 -08:00
Christopher Apple fe912482b5 Reverted change b1c4c11959 2021-12-05 15:17:05 -08:00
Chris Apple 4bea935fff
Merge pull request #171 from wfxr/FixFishGitAdd
Fix for: ga preview not working with fish
2021-12-05 15:03:26 -08:00
Chris Apple 656087369f Fixed git add for fish shell 2021-12-01 09:03:24 -08:00
Wenxuan 27d4a78756
Merge pull request #169 from p00f/fix_interactive_only_fish_preview
use fish to interpret preview command
2021-12-01 15:18:45 +08:00
Chinmay Dalal b1c4c11959
use fish to interpret preview command
fixes #168
2021-11-30 09:03:41 +05:30
Wenxuan Zhang b727321f2b
ci: remove outdated env 2021-10-26 18:45:45 +08:00
Wenxuan Zhang 5d15fd3532
refactor: ci lint 2021-10-26 18:40:26 +08:00
Peter Tri Ho ed51746687 fix: restore setting FORGIT_INSTALL_DIR in fish #165 2021-10-26 13:32:05 +11:00
Wenxuan Zhang a047bae35a
Revert "support fish shell" #164
This reverts commit 950a7352db.
2021-10-25 10:27:32 +08:00
Wenxuan eb6db722cd
Merge pull request #164 from wren/git-forgit-147 2021-10-22 10:41:00 +08:00
Wenxuan Zhang cef385bd44
docs: update git aliases description 2021-10-22 10:39:35 +08:00
Wenxuan Zhang b86dc4b0c8
refactor: reduce git alias config steps 2021-10-22 10:38:17 +08:00
Wenxuan Zhang 05ab1c5864
Revert "fix: gcb can switch to an existed branch"
This reverts commit 8107352941.
2021-10-20 10:55:53 +08:00
Wenxuan bb55cf3f0a
Merge pull request #163 from crazy-matt/fix-checkout-branch-with-slashes 2021-10-20 10:49:11 +08:00