Created
September 15, 2008 01:47
-
-
Save caged/10794 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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