| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
|
| |
This allows us to run git commands outside of a git repo.
Fixes #3114.
|
| |
|
|
|
|
|
|
| |
These are the options between `git` and the subcommand.
Fixes #3087.
|
|
|
|
|
|
|
| |
This allows specifying a local branch to push to a certain remote
branch.
Fixes #3035.
|
| |
|
|
|
|
| |
It's about time I finally fixed my emacs config.
|
|
|
|
| |
characters are given
|
|
|
|
|
| |
Because it allows sub-subcommands, it has functions to determine which,
if any, is used. These were too simplistic.
|
| |
|
|
|
|
| |
This _should_ be all of them.
|
|
|
|
|
|
| |
Now we can easily add an option to multiple commmands.
This should also fix some edgecases.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
This signifies a force-push.
To avoid cluttering, only complete branches if a + is already given.
Fixes #2879.
|
|
|
|
|
|
|
| |
A few commands (fetch, pull and push at least) take a "repository" (aka
"remote") and then a "refspec" (we currently do branches here).
Fixes #2525 (seems that man is still alive)
|
|
|
| |
`git --help` is a valid command and fish should complete it as such
|
| |
|
|
|
|
|
|
|
| |
set-upstream was deprecated in git 1.8.0 as stated in [1] in favor
of set-upstream-to. this patch replaces the old flag in fish
completions
[1]: https://raw.githubusercontent.com/git/git/master/Documentation/RelNotes/1.8.0.txt
|
|
|
|
|
|
|
|
| |
I believe apm must have been buggy - example output that I found online
showed `tr` was mangling paths with spaces in it. Should be fixed.
Also, use dscl on OS X in __fish_complete_users.fish like
__fish_print_users.fish already does.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
That's probably the part where commit hashes are most used, we can add
the other subcommands later.
This generates a _lot_ of options, so hooking it up everywhere would be
unwise, though our pager helps quite nicely with filtering - typing
"Branch" will filter out the commits, and typing other things will
filter the subjects, which is quite cool.
|
|
|
|
| |
Fixes syntax error introduced in 4280df3aa2dab.
|
|
|
|
|
|
|
|
| |
* Add missing options to `git clone` in order to make the suggestions as
similar to the manual (https://git-scm.com/docs/git-clone) as
possible.
Signed-off-by: mr.Shu <mr@shu.io>
|
|
|
|
|
|
|
| |
* Add more options to `git cherry-pick` so that the suggested options
mimic the man page (https://www.git-scm.com/docs/git-cherry-pick/).
Signed-off-by: mr.Shu <mr@shu.io>
|
|
|
|
|
|
|
|
|
|
| |
* Make sure that the `git remote` subcommands are not repeatedly
suggested (that is do not suggest a subcommand if there already is one).
* Add both long and short options to `git remote` subcommands where
appropriate.
Signed-off-by: mr.Shu <mr@shu.io>
|
|
|
|
|
|
|
|
| |
* Add completion for missing `git remote` subcommands.
* Should fix #2567
Signed-off-by: mr.Shu <mr@shu.io>
|
| |
|
| |
|
|
|
|
| |
Fixes #2494
|
| |
|
|
|
|
|
|
|
|
| |
Not for _everything_ because that causes too many options to be
generated (which is an issue for git as it is), but for modified, staged
and added files - which is where it is most useful.
Fixes #901 as far as I'm concerned.
|
|
|
|
|
|
|
|
|
|
|
| |
git has options that can appear before commands, but not all of
them, and some of them need an argument. This means
`__fish_seen_subcommand_from` will give too many false-positives, while
`[ (count $cmd) -eq 2 ]` will give too many false-negatives.
Instead go through all arguments and check if they are in that list of
options that can be before a command and skip the argument for them, if
any.
|
|
|
|
| |
I could have sworn we had this already.
|
| |
|
|
|
|
|
|
| |
Cuts down on perl.
Also complete heads (i.e. tags and branches) always.
|
|
|
|
| |
Fixes #675
|
|
|
|
| |
Before we do anything else, remove this senseless piece of code
|
|
|
|
|
|
| |
Not all of them and only those that don't accept arguments for now
Fixes #1996
|
|
|
|
| |
Might print unrelated crap if we try to complete while not in a git repository
|
|
|
|
| |
Makes it harder to cause issues with aliases, see fish-shell#2245
|
| |
|
| |
|
|
|
|
| |
git reset allows for files and branches as completion results
|
|
|
|
| |
Staged files are now offered for completion
|
|
|
|
| |
Modified files are provided for completion
|
| |
|
|
|
|
| |
* Added completion for `git branch --merged`
* Added completion for `git branch --no-merged`
|