-
Notifications
You must be signed in to change notification settings - Fork 635
Add clickable commit link #1120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -151,6 +151,9 @@ const defaultConfig = { | |
|
||
// a string of ip to bind to, default is `127.0.0.1` | ||
ungitBindIp: '127.0.0.1', | ||
|
||
// example { "/home/projects/ungit" : "https://github.com/FredrikNoren/ungit/commit/%H" } use %H for full commit hash and %h for short commit hash | ||
linkToCommit: {}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So we should need to do this, we could just extract from the remote repo location right? from there we can derive the url path There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No we can't, one repo may have many remotes (ie. one for github and one for heroku) so we can't decide which one win over the other. And some remotes can be privates (ie. git.example.com) and we can't derive the url path There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh yea, you are absolutely right. but I bet most repos have single remote and conjunction with this map override method, it would be much better user experience |
||
}; | ||
|
||
// Works for now but should be moved to bin/ungit | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Click operation is being hijacked for in other components for handling node click and node unclicks. You would have to touch up on
CommitViewModel.prototype.stopClickPropagation()