8000 GitHub - deniscormier/permalinker: Generate permalink URLs (Github, Gitlab, etc.) from a local file path
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

deniscormier/permalinker

< 8000 span class="prc-TooltipV2-Tooltip-cYMVY" data-direction="n" aria-hidden="true" id=":R3v5ab:">Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Permalinker

Generate permalink URLs (Github, Gitlab, etc.) from a local file path

Install

# Install by building from source
➜ go install github.com/denis-engcom/permalinker@latest

# Run without arguments or with `-h` or with `--help` to print usage
➜ permalinker

Example usage

# Navigate to a git repo
# ➜ cd <some-git-repo>pwd
/Users/denis/code/github.com/denis-engcom/permalinker

➜ git log -1 --oneline
4bc40a1 (HEAD -> main, origin/main) Initial commit

➜ ls
README.md go.mod    go.sum    main.go   notes.md

➜ permalinker main.go 20
https://github.com/denis-engcom/permalinker/blob/4bc40a14289d35d6d4ffed99dd1ef27559146b05/main.go#L20

Next feature(s) to implement

  • If we're behind origin, abort.
    • Perform a fetch, get current branch, check whether we're behind branch's origin.
    • Turn off fetch/check using --no-fetch

About

Generate permalink URLs (Github, Gitlab, etc.) from a local file path

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%
0