https://github.com/andrewradev/ginitpull.vim
Open a pull request directly from Vim
https://github.com/andrewradev/ginitpull.vim
Last synced: about 2 months ago
JSON representation
Open a pull request directly from Vim
- Host: GitHub
- URL: https://github.com/andrewradev/ginitpull.vim
- Owner: AndrewRadev
- License: mit
- Created: 2016-11-12T13:58:32.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-12T13:59:44.000Z (over 8 years ago)
- Last Synced: 2025-03-08T17:52:08.639Z (about 2 months ago)
- Language: VimL
- Size: 3.91 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Usage
The plugin exposes a single command:
```
:Ginitpull [remote-name] [branch-name]
```Calling it initiates a github pull request in the default browser, from the given branch name to master on the given remote. Both arguments are tab-completed.
If called without any arguments, defaults to the "origin" remote and the current branch name, which is probably what you usually want.
At this time, it only works with Github remotes. If you'd like to add support for Bitbucket or Gitlab PRs, I would appreciate a PR, since I don't have any repositories of my own there to test with. Even if you don't make a PR, because you don't have the Vimscript skills, please open an issue and explain how PRs work on whatever platform you need. I'll try to implement it.
## Settings
The only "setting" of sorts is the mechanism to open URLs. If you have a global function defined named `OpenURL(url)`, the plugin will use that. If not, it will call the built-in `netrw#BrowseX` function, the same one that the `gx` mapping uses.