Skip to content

Commit 3b445de

Browse files
committed
Minor merge issues, bump version, updates in readme
1 parent 711e4d6 commit 3b445de

File tree

2 files changed

+45
-9
lines changed

2 files changed

+45
-9
lines changed

browse-at-remote.el

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
;; Copyright © 2015-2016 Rustem Muslimov
44
;;
55
;; Author: Rustem Muslimov <r.muslimov@gmail.com>
6-
;; Version: 0.9.0
6+
;; Version: 0.10.0
77
;; Keywords: github, gitlab, bitbucket, convenience
88
;; Package-Requires: ((f "0.17.2") (s "1.9.0") (cl-lib "0.5"))
99

@@ -37,7 +37,7 @@
3737
(require 'url-parse)
3838

3939
(defgroup browse-at-remote nil
40-
"Open target on github/gitlab/bitbucket/stash"
40+
"Open target on github/gitlab/bitbucket/stash/etc."
4141
:prefix "browse-at-remote-"
4242
:group 'applications)
4343

@@ -53,7 +53,8 @@
5353
(const :tag "GitHub" "github")
5454
(const :tag "GitLab" "gitlab")
5555
(const :tag "Bitbucket" "bitbucket")
56-
(const :tag "Stash/BitBucket Server" "stash")))
56+
(const :tag "Stash/Bitbucket Server" "stash")
57+
(const :tag "git.savannah.gnu.org" "gnu")))
5758
:group 'browse-at-remote)
5859

5960
(defcustom browse-at-remote-prefer-symbolic t
@@ -185,7 +186,7 @@ If HEAD is detached, return nil."
185186
(let* ((domain (car target-repo))
186187
(remote-type-from-config (browse-at-remote--get-remote-type-from-config)))
187188
(or
188-
(if (member remote-type-from-config '("github" "bitbucket" "gitlab" "stash"))
189+
(if (s-present? remote-type-from-config)
189190
remote-type-from-config
190191
(cl-loop for pt in browse-at-remote-remote-type-domains
191192
when (string= (car pt) domain)

readme.rst

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
browse-at-remote.el
55
===================
66

7-
This package is easiest way to open particular link on *github*/*gitlab*/*bitbucket*/*stash* from Emacs. It supports various kind of emacs buffer, like:
7+
This package is easiest way to open particular link on *github*/*gitlab*/*bitbucket*/*stash*/*git.savannah.gnu.org* from Emacs. It supports various kind of emacs buffer, like:
88

99
- file buffer
1010
- dired buffer
@@ -29,13 +29,36 @@ Active keybindings for ``browse-at-remote`` function:::
2929

3030
(global-set-key (kbd "C-c g g") 'browse-at-remote)
3131

32-
If your repository is hosted on GitHub enterprise, you should add following setting to its config:::
32+
Customization
33+
-------------
34+
35+
By default `browse-at-remote` knows how to work with popular remote types (github/gitlab..). Knowledge how to work with certain remote-type comes from mapping `browse-at-remote-remote-type-domains`. It defines that `github.com` should be treat in github manner, `bitbucket.org` in bitbucket manner and so on.
36+
In your development you may have some specific git-url, and `browse-at-remote` will before confuse which remote-type map to your domain.
37+
38+
Two solution available:
39+
40+
1. In that case you can to customize that. (`M-x customize ... browse-at-remote-remote-type-domains`). For now our package supports next remote-types:
41+
42+
43+
- bitbucket.com
44+
- gitlab.com
45+
- github.com
46+
- Stash
47+
- git.savannah.gnu.org
48+
3349

34-
git config --add browseAtRemote.type "github"
50+
2. Set specific remote-type directly in git repo. For example, if your repository is hosted on GitHub enterprise, you should add following setting to its config::
3551

36-
For private Stash repitory use command:::
52+
git config --add browseAtRemote.type "github"
3753

38-
git config --add browseAtRemote.type "stash"
54+
or for private Stash repository use command::
55+
56+
git config --add browseAtRemote.type "stash"
57+
58+
Adding new remote type
59+
----------------------
60+
61+
You can your own remote if you need - PRs are welcome! Please see good examples here: gnu-savannah-remote_, or stash-remote_.
3962

4063

4164
Usage:
@@ -78,19 +101,27 @@ Usage:
78101
- Press `C-x v g` to call standard vc-annotate
79102
- Call `browse-at-remote` on target line
80103

104+
81105
Contributors:
82106
-------------
83107

108+
- `@rmuslimov`_
84109
- `@env0der`_
85110
- `@ben`_
86111
- `@duff`_
87112
- `@Wilfred`_
88113
- `@yauhen-l`_
114+
- `@ieure`_
115+
- `@wigust`_
89116

90117

91118
Changelog:
92119
--------
93120

121+
0.10.0
122+
******
123+
New remote type added **git.savannah.gnu.org** by `@wigust`_.
124+
94125
0.9.0
95126
*****
96127
Minor fixes, added Stash (bitbucket support) by `@yauhen-l`_.
@@ -123,9 +154,13 @@ TODO:
123154
- Add mercurial support
124155

125156

157+
.. _`@rmuslimov`: https://github.com/rmuslimov
126158
.. _`@env0der`: https://github.com/env0der
127159
.. _`@Wilfred`: https://github.com/Wilfred
128160
.. _`@ben`: https://github.com/ben
129161
.. _`@duff`: https://github.com/duff
130162
.. _`@ieure`: https://github.com/ieure
131163
.. _`@yauhen-l`: https://github.com/yauhen-l
164+
.. _`@wigust`_: https://github.com/wigust
165+
.. _stash-remote: https://github.com/rmuslimov/browse-at-remote/pull/34/files
166+
.. _gnu-savannah-remote: https://github.com/rmuslimov/browse-at-remote/pull/46/files

0 commit comments

Comments
 (0)