Skip to content

Instantly share code, notes, and snippets.

@caged
Created September 15, 2008 01:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caged/10794 to your computer and use it in GitHub Desktop.
Save caged/10794 to your computer and use it in GitHub Desktop.
# 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