FredrikNoren / ungit

The easiest way to use git. On any platform. Anywhere.
MIT License
10.45k stars 640 forks source link

Commit remote URL #1118

Open aromero86 opened 6 years ago

aromero86 commented 6 years ago

Hi guys, ungit is beautifull. I'have a question:

jung-kim commented 6 years ago

Ah... I'm not sure what you mean? Can you tell me by an example?

aromero86 commented 6 years ago

Sorry, my english is so poor.

For example, if I have my repo in github, it would be great copy url from a commit (already pushed) in UNGIT. Anohter great option would be open a browser with that URL. An example:

https://github.com/FredrikNoren/ungit/commit/846b794837951829a3094ff7ce4492e2007a801f

Thank you 😃

ylecuyer commented 6 years ago

That would be doable with a new config in ungitrc.

This new config would have the format of the link with two available substitutions: %h or %H (as in git format)

When configured the link would be clickable and href(_target=blank) to this formated link.

I'll make a PR for it @jung-kim if you're ok with what I described