Skip to content

Instantly share code, notes, and snippets.

@caged caged/gist:10794
Created Sep 15, 2008

Embed
What would you like to do?
# GNCommand event, url scope => current repo, NSURL that was dropped
GNCommand.on :drop, :scope => 'github.com' do |repo, url|
components = url.path.pathComponents
if components.include? 'tree'
end
if components.include? 'commit'
end
# #Forked repo was dragged
#
# #Unrelated repo URL was dragged
#
# #Commit hash was dragged
#
# #File was dragged
#
# #User was dragged
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.