Commit graph

13 commits

Author SHA1 Message Date
Edwin Kofler b372bab52a
chore: Improve Bash variously (#1032) 2023-02-21 10:03:56 +08:00
Edwin Kofler 4611b24320
chore: Fix more Bash inconsistencies (#1021) 2023-01-20 18:17:49 +08:00
Edwin Kofler 35100b4e6f
chore: Improve quoting and builtin usage (#1015) 2023-01-04 08:58:31 +08:00
Peter Benjamin 7acc1de7fa
fix(bin/git-browse): fix commit hash
Retrieving commit hashes with the following command is not very reliable for
users who sign their commits with gpg/ssh keys:

```
git log -n1 --format=format:"%H" "${filename}" 2>/dev/null
```
2022-06-09 19:44:02 -07:00
Peter Benjamin 8a6e39d589
fix(bin/git-browse): fix bitbucket url 2022-06-09 19:32:47 -07:00
Peter Benjamin 006549d661
feat: open website at file & line number or range
Ported from
f544dadf88/git/bin/git-browse

Closes #980
2022-06-09 19:26:55 -07:00
spacewander d17f02979e git-browse/browse-ci: use powershell.exe only when it is available
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2022-04-19 20:51:22 +08:00
equt f66f7e484f
[ fix #891 ] Cast branch output if HEAD not exists 2020-11-11 22:38:19 +08:00
罗泽轩 6e77d950eb
Merge pull request #853 from bethesque/feat/git-browse-with-multiple-remotes
feat(browse): select remote of current branch, fallback to origin
2020-07-27 09:24:28 +08:00
Beth Skurrie 572ae0dd46
feat(browse): automatically select origin remote if one exists, fallback to first otherwise 2020-07-26 08:22:43 +10:00
Beth Skurrie edf7b060d2
fix(browse): update sed pattern to work on mac 2020-06-23 09:31:21 +10:00
Mark Pitman f6cf59c380 Implement suggested changes from code review
Use bash string replacement instead of sed for simple replacement
Use http URLs instead of https (sites that reuqire https should be
auto-redirecting anyway)

 #666
2020-03-17 21:12:07 -07:00
Mark Pitman 362a0c29ae Add git-browse command
Handles git@server and https://server remotes.
Allows specification of the remote to open
Closes #666
2020-03-15 01:40:09 -07:00