Commit graph

110 commits

Author SHA1 Message Date
Tim 3f00348d5c
Add keybinding ctrl+y for copying stash ID in gss (#295) 2023-03-18 16:35:18 +01:00
Tim 2a2ee36d56
Add git options for each forgit command (#292)
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.
2023-03-18 12:25:20 +01:00
Christian Fratta 065f7841f3
Meta: Include oh-my-zsh install instructions in README (#283) 2023-02-10 10:26:59 +01:00
Tim aa85792ec4
Add bash completions for forgit functions and aliases (#275)
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.
2023-01-30 17:46:52 +01:00
Tim 73aea65778
Add bash completions for git-forgit (#235)
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
2023-01-11 10:57:16 +01:00
sandr01d f8c0edfc17
Added git stash push selector 'gsp' (#251)
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.
2022-12-14 15:53:52 +01:00
carlfriedrich da9210e972 Meta: update documentation 2022-11-17 10:19:32 +01:00
ccoVeille f6040b21a0
fix typo in comments and README files (#230) 2022-08-09 19:07:59 -07:00
carlfriedrich 8d3ecb6ccf Add variables for diff context
Introduce FORGIT_DIFF_CONTEXT for the diff context when viewing a diff
and FORGIT_PREVIEW_CONTEXT for the diff context in the preview window.
2022-07-22 14:26:08 +02:00
carlfriedrich 53d0ea2f38 Add FORGIT_CHERRY_PICK_FZF_OPTS
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.
2022-07-12 16:35:54 +02:00
Wenxuan 98a5cc27a1
Merge pull request #211 from sandr01d/gb
Feature: Added interactive git blame
2022-06-17 22:14:12 +08:00
sandroid f8b1fc8545
Changed alias for forgit::blame to gbl 2022-06-16 22:34:13 +02:00
Ilkin Bayramli f1305dbdb0
Add Fig as an installation method to the README 2022-06-15 15:15:14 -07:00
sandroid 958e26add5
Added gb 2022-06-02 23:22:41 +02:00
Chris Apple 75e9d12bac
Adding support for git branch delete method (#200)
* 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>
2022-05-11 09:41:21 -07:00
sandroid 45cab4df9b
Added grc 2022-03-19 20:11:58 +01:00
sandroid ce19cc80ec
Added gct 2022-02-12 22:37:39 +01:00
Wenxuan Zhang cef385bd44
docs: update git aliases description 2021-10-22 10:39:35 +08:00
Jonathan Wren 5403f42acf add to readme 2021-10-17 23:42:26 -07:00
Jonathan Wren 96d0924aef fix typos in docs 2021-10-17 23:40:42 -07:00
Jonathan Wren d6fa65ec92 clean up documentation format for readme alias section 2021-10-17 23:18:46 -07:00
Jonathan Wren 800b35c687 update alias documentation 2021-10-17 23:16:13 -07:00
Wenxuan Zhang 7c1d3b859e
feat: add gco to checkout a commit 2021-04-07 17:23:00 +08:00
Wenxuan Zhang 6529356615
docs: add a link to #147 2021-04-01 09:40:18 +08:00
Wenxuan Zhang e45eff4904
docs: fix contributors badge 2021-03-29 12:15:58 +08:00
Ariel Davidov 69d6639220
feat: add fixup function (#146)
* 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>
2021-03-29 12:08:38 +08:00
rlanore 416ac0308f
fix: fix reset parameter in FORGIT_LOG_FORMAT default value (#145)
* Fix reset color int FORGIT_LOG_FORMAT default value

* Fix FORGIT_LOG_FORMAT default doc
2021-03-25 20:55:46 +08:00
rlanore 8538c052bf
feat: support custom git log format (#143)
* Add option to git log format tunnable

* Add FORGIT_LOG_FORMAT doc

* Fix shellchecks

* rename options misc

Co-authored-by: Wenxuan Zhang <wenxuangm@gmail.com>
2021-03-25 11:15:18 +08:00
Wenxuan c57c9f9172
Merge pull request #137 from wfxr/dev
Add license content as `mit-license.org` suggested.
2021-03-05 11:08:25 +08:00
Wenxuan Zhang 9a8ae69529
docs: add bedges 2021-03-01 11:44:37 +08:00
Abheyogy 06f5abb8e5
Update README.md
Adds installation option for zinit.
2021-02-26 15:05:28 +05:30
Chris Apple 7b18caa340
Fish checkout branch - updated internal function names to checkout::file and checkout::branch (#134)
* Initial commit, gcb working and function names fixed

* Fixing indentation
2021-02-18 11:51:54 +08:00
Yiannis 4cd46818a5
feat: add gcb to switch branches in a repo (#131 #26 #101)
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>
2021-02-07 18:21:51 +08:00
Tassiano Alencar e57310a8c6 Fix readme installation on fisher 2021-01-06 08:55:55 -03:00
Wenxuan Zhang dde028120e
docs: prefer delta to diff-so-fancy 2020-11-25 10:23:42 +08:00
Wenxuan Zhang 074059454d
docs: add grb docs 2020-11-03 15:49:55 +08:00
Wenxuan Zhang 50495dc421
docs: update fish shorten url etc (#116) 2020-10-14 12:33:00 +08:00
AoHiyuki 56f5aaafbc
feat: add fisher support for fish
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
2020-10-13 11:04:47 +08:00
Wenxuan Zhang 7235949cdf refactor: FORGIT_IGNORE_PAGER etc. (#112) 2020-09-11 16:55:35 +08:00
mirsella d8d530ec50
feat: add FORGIT_IGNORE_PAGER option (#112)
* 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
2020-09-11 16:33:55 +08:00
Jia Sui 3166756079
feat: add cherry-pick support (#106)
* Add cherry-pick support

* Fix shellcheck warnings
2020-08-27 11:02:43 +08:00
Kalle Jillheden e0573975ef feat: configurable pager
Former-commit-id: c91135251b74851241e453b460150c6bdf20170f
2020-08-21 16:03:32 +08:00
Wenxuan Zhang e69def2cbe ci: add shellcheck
Former-commit-id: 5698137887
2020-08-11 17:53:40 +08:00
Wenxuan Zhang b37ebeda9c doc: add ci badge
Former-commit-id: a3736afb3c
2020-08-11 17:42:56 +08:00
Wenxuan Zhang cac5976435 docs: misc
Former-commit-id: 57224696a9
2020-08-05 11:45:55 +08:00
Wenxuan Zhang 6dfd086244 docs: add descriptions. close #102
Former-commit-id: 64c93ae585
2020-08-05 11:12:27 +08:00
Christopher Apple 5d01219302 added toggle mark move down to README
Former-commit-id: 74f10f3eed
2020-07-02 08:39:23 -07:00
Wenxuan Zhang 77315d8dfc docs: shorten url
Former-commit-id: d0506a0f1c
2020-06-15 16:19:43 +08:00
Esse Woods 26e43e9778 The bug in fish <3.1 is resolved
The bug in 3.1 was solved by https://github.com/fish-shell/fish-shell/issues/6955

Resolves #87

Former-commit-id: 2782b0f2e6
2020-06-06 23:06:01 +02:00
Wenxuan 440b69f4cc docs: add badge.
Former-commit-id: 9faef0c523
2020-05-12 19:47:49 +08:00